[Daniel writes] How to get AC3/DTS out from the spdif?
[Daniel answers] For some reason the digital output gets messed up. In order to fix it, mute the spdif output, play something on that output (alsa:hw:0,2) and then unmute again and everything should work using for instance:
pci device / vendor seems to correctly indicate this as the 6stack-digout in the code doesnt look like it was being selected for some reason though
however I've noticed that I usually need to mute and unmute the IEC958 chanel in the mixer at least once per boot before the spdif will work. perhaps there is still a bug here I added amixer set 'IEC958' off and the equivalent on command but this didnt seem to help (I'm running xine and mplayer under KDE so perhaps this is also interfering or causing the problem :).
I also noticed that xine uses iec958:ASE0=0x06,AES1=0x82,AES2=0x00,AES3=0x02, however mplayer iec958:ASE0=0x02,AES1=0x82,AES2=0x00,AES3=0x02 perhaps its just me but I didnt think it worked reliably with AES0=0x06 (these flags are described somewhere at http://sourceforge.net/mailarchive/message.php?msg_id=8560868 - think the dif relates to a copyright flag)
I'm having trouble with getting the optical output to work. I've tried just using snd-hda-intel with the autodetected options, with model=6stack-digout and with model=5stack-digout. When I un-mute the IEC958 channel, the speakers give a little 'pop' and the display (on the decoder) briefly flashes to something else before switching back to "no input". It's too quick to read what it says though.
What I'd like is for all two-channel output to be sent as stereo down the optical link, and for 5.1 channel output from xine (and myth if that's possible) to be sent as 5.1 to the speakers (also down the optical link).
Any ideas how to: 1) get optical output working at all? 2) get it to send 5.1 or stereo as appropriate?
This issue might be fixed in alsa 1.0.14