?

Log in

brad's life - LazyWeb: Debian, ALSA, SPDIF HOWTO? [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

LazyWeb: Debian, ALSA, SPDIF HOWTO? [Dec. 13th, 2005|09:19 pm]
Brad Fitzpatrick
[Tags|, , , , ]

Here's what I gots:

0000:00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
0000:00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
0000:00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
0000:00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
0000:00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
0000:02:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
0000:02:04.0 RAID bus controller: Promise Technology, Inc. PDC20378 (FastTrak 378/SATA 378) (rev 02)
0000:02:05.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)
0000:02:09.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
0000:02:09.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
0000:02:0a.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
0000:02:0a.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
0000:02:0c.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 08)

How can I get the frickin' coax (SPDIF?) digital audio cable (RCA) to output sound? I have it going into my receiver, but nothing. The receiver's fine... works with my DVD player. Maybe it's the wrong type? DVD player says "Coax digital audio out" or something. Receiver says "Coax.". There's also another digital RCA input on the receiver labeled "Dolby AC-3" or something, but it doesn't work either.

I'm using ALSA.
myth@myth:~$ lsmod | grep snd
snd_intel8x0           35552  4
snd_ac97_codec         94972  1 snd_intel8x0
snd_ac97_bus            3200  1 snd_ac97_codec
snd_pcm_oss            53664  1
snd_mixer_oss          19840  3 snd_pcm_oss
snd_pcm                91140  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              26116  1 snd_pcm
snd                    54116  8 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,
                                snd_mixer_oss,snd_pcm,snd_timer
soundcore              10976  4 snd
snd_page_alloc         11656  2 snd_intel8x0,snd_pcm
Any ideas? Thanks.
LinkReply

Comments:
[User Picture]From: matthew
2005-12-14 05:42 am (UTC)
what do the mixer levels look like?
(Reply) (Thread)
[User Picture]From: scsi
2005-12-14 06:05 am (UTC)
Yeah, ditto.

ALSA always has whacky mixer settings. Run alsamixer and make sure stuff isnt muted.
(Reply) (Parent) (Thread)
[User Picture]From: brad
2005-12-14 07:44 am (UTC)
Up, unmuted.
(Reply) (Parent) (Thread)
From: nathanmocks
2005-12-14 05:55 am (UTC)
In the settings try changing the audio output device to 'ALSA:spdif'.
(Reply) (Thread)
From: (Anonymous)
2005-12-14 11:24 pm (UTC)

Audio Out

It may be that you'll only get this working with programs that have ALSA well integrated, such as mplayer, xine, etc.

I remember having to specify the device when I did this, something like:

mplayer -ao alsa9:spdif -srate 48000 testing.avi
(Reply) (Parent) (Thread)
(Deleted comment)
[User Picture]From: scsi
2005-12-14 06:04 am (UTC)
SPDIF is copper. Looks like an RCA jack thats yellow.

Fiber is Optical Out.
(Reply) (Parent) (Thread)
[User Picture]From: grahams
2005-12-14 02:23 pm (UTC)
Actually SPDIF can be carried over fiber or coax... It's just a protocol...
(Reply) (Parent) (Thread)
[User Picture]From: newscane
2005-12-14 06:08 am (UTC)
Technically, SPDIF is a format. It can be carried over optical (fiber) or coax (looks like RCA) connections. Good photos here:
http://www.hardwaresecrets.com/article/82/2
(Reply) (Parent) (Thread)
[User Picture]From: xaosenkosmos
2005-12-14 06:31 am (UTC)
You might want to double-check the audio output rates. I had a hell of a time getting the audio-out into my docking station to work under linux. It was set to 48k by default, while Dell wanted 44.1k or some such. Lame.

And now i've been in Windows too long to remember what the utility i used to change it, sorry.
(Reply) (Thread)
From: narfer
2005-12-15 10:33 pm (UTC)
hey, no help here, but..
i think i vaguely remember reading off your journal about a hifi component that ripped cds, tagged them appropriately, stored them on a hdd, and had an ipod-like interface. was it yours? and if so, do you remember the name of the device? (i thought it was eriks at first, but he's got nothing for me).

anyway, onwards and upwards.
(Reply) (Thread)