[pulseaudio-discuss] [PATCH] fix profile configurations for IEC/SPDIF outputs

pl bossart bossart.nospam at gmail.com
Tue Jun 22 10:20:45 PDT 2010

> I really think iec958 is very much the *right* think to do. Have a look
> at the alsa config files that set these things up. They are not rocket
> science but they do allow this kind of thing to work, and perhaps the
> ALSA_IEC958_DEVICE environment variable is exactly what you want but it
> works *with* iec958, not against it.

Boy, I had never looked into ALSA configuration files, always used hw
devices to bypass all this..
But it turns out that you are right. The ALSA configuration of the
iec958 plugin relies on a slave hw device with an index of 1, which
ends-up being the same as the hw:0,1 configuration I was using. Bottom
line using iec958 only entails some memory copies but no big deal. It
seems that the bug I encountered is on the receiver side, I have a
power-up sequence where it always works. Added benefit of the two
variables ALSA_IEC958_CARD and ALSA_IEC958_DEVICE is that the user can
change the settings without having to modify the pulseaudio files. I
did just that to play on my M-Audio Transit usb instead of default
HDAudio, works fine.
Will rework the patch then. Thanks for your feedback.

More information about the pulseaudio-discuss mailing list