On Mon, 3 Feb 2003, Stuart Clarke wrote:

> 'Lo all,
> 
> I'm attempting to play XVID movies (with AC3 sound) using mplayer and the ALSA 
> 0.9 system of sound drivers.  I only have one sound card (ICH - Intel 
> 82801CA-ICH3) which has an SP/DIF output port.  I would therefore like to 
> route the movies' AC3 sound through the SP/DIF port to my external decoder.  
> Now, as I understand it, ALSA normally places a sound card's digital 
> pass-through device at device number 3 (index 2) of a particular card.  

Not really. It's hardware dependant. We have abstract names for S/PDIF out 
(iec958 or spdif) and alsa-lib routes signal to right device.

> Listing the sound card devices in /proc/asound/card0, however, gives the 
> following:
> 
> beef@weenerbo:~$ ls -la /proc/asound/card0     
> total 0
> dr-xr-xr-x    5 root     root            0 Feb  3 02:06 .
> dr-xr-xr-x    6 root     root            0 Feb  3 02:06 ..
> -rw-r--r--    1 root     root            0 Feb  3 02:06 ac97#0
> -rw-r--r--    1 root     root            0 Feb  3 02:06 ac97#0regs
> -rw-r--r--    1 root     root            0 Feb  3 02:06 ac97#1-1
> -rw-r--r--    1 root     root            0 Feb  3 02:06 ac97#1-1regs
> -r--r--r--    1 root     root            0 Feb  3 02:06 id
> -rw-r--r--    1 root     root            0 Feb  3 02:06 intel8x0
> -rw-r--r--    1 root     root            0 Feb  3 02:06 oss_mixer
> dr-xr-xr-x    3 root     root            0 Feb  3 02:06 pcm0c
> dr-xr-xr-x    3 root     root            0 Feb  3 02:06 pcm0p
> dr-xr-xr-x    3 root     root            0 Feb  3 02:06 pcm1c
> beef@weenerbo:~$ 
> 
> Shouldn't there be a directory entry called 'pcm2p'?
> 
> I've tried to use the hw:0,0 device instead, but it simply gives me sound from 
> my laptop's speakers.

Try to use the 'spdif' device (aplay -Dplug:spdif <somefile>).

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to