[mythtv-users] spdif:alsa does not work

Nick knowledgejunkie at gmail.com
Fri Jun 23 21:53:31 UTC 2006


On 23/06/06, Gregg <3gemail at gmail.com> wrote:

> I ran 'aplay -L', But I do not know what to look for it looks like a copy of
> my .asoundrc Below is the output :

Here are the ALSA device names that you can use with ALSA:devicename

> cards 'cards.pcm'
> front 'cards.pcm.front'
> rear 'cards.pcm.rear'
>  center_lfe 'cards.pcm.center_lfe'
> side 'cards.pcm.side'
> surround40 'cards.pcm.surround40'
> surround41 'cards.pcm.surround41'
> surround50 'cards.pcm.surround50'
> surround51 'cards.pcm.surround51'
> surround71 ' cards.pcm.surround71'
> iec958 'cards.pcm.iec958'
> spdif 'cards.pcm.iec958'
> modem 'cards.pcm.modem'
> phoneline 'cards.pcm.phoneline'
> dmix 'cards.pcm.dmix'
> dsnoop 'cards.pcm.dsnoop'

As spdif exists as a name, this made me think whether your asound.conf
was set up correctly. Checking your output further down:

> analog-hw {
>     type hw
>     card 0
> }
> digital-hw {
>     type hw
>     card 0
>     device 0

This tells me that you have configured you analog and digital sound
using the same device -  the first device on the soundcard, which is
likely wrong as typically the default device (0,0) is for analog
output.

If you run 'aplay -l' it will tell you which device number you need to
use for your digital sound definition - look for IEC958 playback if
the soundcard has more than one digital device (i.e. some may have
digital input support.)

For example, if I run 'aplay' I get the following information for my SPDIF:

card 0: CK8S [NVidia CK8S], device 2: Intel ICH - IEC958 [NVidia CK8S - IEC958]

Using this info I then amend asound.conf to read:

digital-hw {
        type hw
        card 0
        device 2
}

which tells ALSA to use device 2 for digital output.

I'm pretty sure this is what's stopping you. Try this and let us know
if digital sound is working again.

Nick

-- 
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users


More information about the mythtv-users mailing list