Hi,
Am Freitag, 8. Februar 2008 schrieb Takashi Iwai:
At Thu, 7 Feb 2008 23:04:00 +0100, Martin Egge wrote:
Am Donnerstag, 7. Februar 2008 schrieb Takashi Iwai:
If my guess is correct, you can propbably get SPDIF output via "spdif" output. What happens with the below?
% aplay -Dplug:spdif foo.wav
You are right. Choosing plug:spdif plays the sound cia the SDIF-Out. Of course this does not play the sound via the internal speakers when no SPDIF is connected.
But I'd prefer the old behavior from 1.0.15 where the default device was playing sound via SPDIF when connected and via internal speakers when SDIF is not connected.
Try the patch below. This adds the mixer switch "Analog To SPDIF". If this is on, the supported format is more limited so that the default PCM can route to SPDIF. If this switch is off, dmix will choose 32bit automatically.
The patch works perfectly for me. I like this new switch. Perhaps you should rename it to "Analog to IEC958 Output". I've seen this name on some other cards with ALSA.
Regards, Martin