Volumio on Mac, toslink spdif does not work

Volumio Information

Volumio Version: volumio-2.873-2021-02-19-x86
Hardware: Macbook 2009
DAC: Rega DAC-R through Toslink

Hi,

just got volumio installed on Macbook 2009, and it works. Output through USB and analog works. But when switching to SPDIF for music output I have problems. The toslink adapter is not emitting light, and obviously no signal arrives at DAC.

For issues related to limitations on my DAC for USB, I would prefer a toslink.

To verify Mac HW in general, I installed on a Mac Mini. USB, analog, HDMI sound works, but not toslink. Difference to Macbook however, is that light is emitting from the adapter. And when switching to SPDIF and then starting play of a title, I get a “Failed to Open alsa” in volumio. I googled it was related to link to DAC, unplugged toslink cable, then I was able to press play, song stated, and I could plug the cable. But no sound arrived to DAC.

When running both Macbook and Mac Mini with Apple OS, both work through SPDIF toslink to DAC.

Any suggestions on how to fix it ?

Thanks, Flemming

We try to support Macs as well as we can with the means and resources we have to our disposal.
While doing most of the integration work, I only have pc hardware to work with, no Macbook or Mac mini.
You could try our latest Beta Version
It has miles better hardware and firmware support, you may be lucky.
Let us know.

Hi,

thank you for your reply. However it was not successful to install the beta.

On Macbook it booted, the initial setup failed to provide me selection for SPDIF - the selection field was greyed out after my first try to push it, and I selected next a couple of times to get it going past that. After initial setup I was able to enter settings, and selct SPDIF as output. I did not work however, and still there was no light emitting from adapter (like before).

I shut it down, and moved USB to Mac Mini. During boot, it said selected output was not available but continued boot. After it was up and running, I went to settings and set it to SPDIF (which was an option anyway), and continued to play a song. When I pressed play I had the same ‘Error Failed to open “alsa” (alsa); Failed to open ALSA device “volumio”: No such device’. So that was pretty much the same as last time, but this time there was no light emitting from the toslink adapter on the Mac Mini, just like on the MacBook, but unlike what it did before, where light actually was emitting from the Mac Mini.

So - unfortunately…

Thanks Flemming Smit

Shame, hoped for more but then this is as good as it gets for you for the time being.
Not having any Mac equipment to work with does not help, perhaps there is some Apple propriety driver that we don’t have, I really don’t know.
Perhaps SPDIF is muted (though I think it would still emit light), let’s have a final look.
Please do a log after booting, I may have a specific question after that.
Howto: Send a log

USB Audio would be a good alternative, with x86 (incl. Mac) there are plenty of DACs to choose from.
Personally, I would prefer one over SPDIF, but that is a different story.

Hi again,

I refreshed the USB’s to clear excessive logs, and booted on both versions at Macbook…

volumio-2.873-2021-02-19-x86
Smooth initial dialog, started playvack, but no sound or light emitting.
Log: http://logs.volumio.org/volumio/FGflPQC.html

Volumiobuster-3.061-2021-04-12-x86_amd64
After boot could no configure, since touchpad did not work. Mouse could only go up and down, not sideways.
Started to configure through web-interface.
Same problem as last, could not initially configure SPDIF as output, dialog was unresponsive. Managed to go past that.
Log: http://logs.volumio.org/volumiobuster/FpsXYdm.html

Thanks, Flemming

This is the alsamixer on volumio-2.873-2021-02-19-x86

just what I wanted to know!!
SPDIF seems muted, could you tab to SPDIF and hit the m-key?
That should unmute and change display to “00” like the one next to it

pressing m doesn’t change it, but arrow up and down toggles between Disabled and Enabled. I set it to Disabled.
exit’ed and
root@volumio:~# alsactl store
root@volumio:~#

But still no light emitting

Silly me, got it wrong - sorry.
Was already focused on “auto-mute”. I did what you say and I have light :wink:

AND IT WORKS !!!. Halleluja :wink:
Had to move it to my HiFi setup to verify. Uncabled network and had to reboot it to get it going.
Works after boot also.
Thank you very much.

Glad to hear this, I will add it to the Intel sound init stuff so it works out of the box for other mac users when you give me the output of
amixer -c0

I had to wait 45 minutes before I could post - ran out of replies for my first day, apparently ;-).

And a short question, the “volumio” app in the Apple iPhone app store, is that an official app ?. It has only one review (one star unfortunately), and has not been updated for a year ?

root@volumio:~# amixer -c0
Simple mixer control ‘Master’,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 33 [52%] [-31.00dB] [on]
Simple mixer control ‘Headphone’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on]
Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control ‘Speaker’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on]
Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control ‘Bass Speaker’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on]
Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control ‘PCM’,0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control ‘Line’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control ‘Line Boost’,0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control ‘Mic’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control ‘Mic Boost’,0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control ‘IEC958’,0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [on] Capture [off]
Simple mixer control ‘IEC958 Default PCM’,0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control ‘Beep’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control ‘Capture’,0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 28 [61%] [12.00dB] [on]
Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control ‘Capture’,1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [off]
Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control ‘Capture’,2
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [off]
Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control ‘Auto-Mute Mode’,0
Capabilities: enum
Items: ‘Disabled’ ‘Enabled’
Item0: ‘Enabled’
Simple mixer control ‘Input Source’,0
Capabilities: cenum
Items: ‘Mic’ ‘Line’
Item0: ‘Mic’
Simple mixer control ‘Input Source’,1
Capabilities: cenum
Items: ‘Mic’ ‘Line’
Item0: ‘Mic’
Simple mixer control ‘Input Source’,2
Capabilities: cenum
Items: ‘Mic’ ‘Line’
Item0: ‘Mic’
root@volumio:~#

to verify that I’ve got it right, could you play something and then do
/usr/bin/amixer -c 0 set IEC958 mute
followed by
/usr/bin/amixer -c 0 set IEC958 unmute

Does that mute and then unmute correctly?

Yes. While playing first command muted (no sound), second unmuted (sound came back without me having to press or do anything at the player)

root@volumio:~# /usr/bin/amixer -c 0 set IEC958 mute
Simple mixer control ‘IEC958’,0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [off] Capture [off]
root@volumio:~#
root@volumio:~#
root@volumio:~# /usr/bin/amixer -c 0 set IEC958 unmute
Simple mixer control ‘IEC958’,0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [on] Capture [off]
root@volumio:~#

Is it possible to have volume control over the toslink ?. I can change the sound level in volumio, but there is no effect at actual level of sound.

Regards Flemming

No, there are no mixers for SPDIF, volume control needs to be done at the receiving end.

If you really need to control volume from Volumio, you can still use software volume mixer In playback settings.

@balbuze - I can not get that working ?.
what exactly are you doing to do that.
Thanks.