[MPlayer-dev-eng] [PATCH] iec958
Clemens Ladisch
cladisch at fastmail.net
Wed Aug 30 13:00:26 CEST 2006
Remus Koos wrot
> > Well, hardcoding the card number as zero isn't guaranteed to be correct.
> > This is one of the things I always wanted to change.
>
> Maybe we should be able to specify the card number in the command line, no ?
We already have the device name.
> I also have a somewhat related question. Is it possible to play audio through
> the SPDIF interface and the analog interface at the same time ?
Yes. AC'97 codecs can be configured to take the SPDIF data from the
front channels (set the SPSA control to zero).
If the hardware doesn't support this, it's possible to route the data to
both devices with an ALSA plugin. Put the following into your
~/.asoundrc or /etc/asound.conf:
pcm.analog_and_spdif {
type plug
slave.pcm {
type multi
slaves.analog {
pcm front
channels 2
}
slaves.spdif {
pcm iec958
channels 2
}
bindings [
{ slave analog channel 0 }
{ slave analog channel 1 }
{ slave spdif channel 0 }
{ slave spdif channel 1 }
]
}
ttable [
[ 1 0 1 0 ]
[ 0 1 0 1 ]
]
}
HTH
Clemens
More information about the MPlayer-dev-eng
mailing list