Sound card - Abit UA-11, which is "USB-to-S/PDIF" device. Detected as "KC USB Audio Device", module snd-usb-audio.
With Mplayer
mplayer -ao alsa:device-hw=0.0 -ac hwac3, filename.avi
mplayer -ao alsa:device-hw=0.0 -ac hwac3, dvd://
all works just fine - a Dolby Digital decoder connected to the sound card via an optical cable detects AC3 stream.
VLC (0.8.6a) is set to use ALSA and that sound card (in ALSA preferences, hw:0,0). There is "A/52 over S/PDIF" in the menu, so that VLC detects S/PDIF. But whenever I select it, my decoder has no a signal on its input. Just silence.
Messages are full with "main debug: audio output is too slow (-412177), trashing 32000us". As I understand, this is the reason...
All the same with AVI and DVDs.
Fedora Core 6, if it matters, with all the latest updates.
So what can I do do pass AC3 (and, ideally, DTS) stream to the S/PDIF? Please don't offer to stick with MPlayer