Richard Krehbie
2006-10-02, 06:07 AM CDT
I'm building a mythtv system, and I'm stumped on the SPDIF problem.
I have an MSI K9NGM2-FID - Socket AM2, nVidia GeForce 6150, and I'm using on-board sound with Intel HDA drivers (snd-intel-8x0). I installed Fedora Core 5 and "current" updates (as of two weeks ago, anyway - kernel 2.6.17-1.2174_FC5smp). I've got a coax from my SPDIF out to my Onkyo 304 receiver, and Onkyo set to consume coax (it works from an actual DVD player).
I haven't done any ALSA configuration. I looked into it, but frankly ALSA is impenetrable (is there a readable doc? I haven't seen one) - plus I've read comments saying it should work out of the box.
I've got a DVD in right now. I'll play it:
mplayer -v -ao alsa -afm hwac3 -monitoraspect 16:9 -dvd-device /dev/cdrom dvd://1
I get a nice picture, but no sound.
The log from mplayer says:
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
No accelerated IMDCT transform found
hwac3: switched to AC3, 448000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
================================================== ========================
Building audio filter chain for 48000Hz/2ch/ac3 -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: using ALSA 1.0.11rc2
alsa-spdif-init: playing AC3, 2 channels
alsa-init: using device iec958:{CARD 0 AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
alsa-lib: pcm_hw.c:1217:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: No such file or directory
alsa-init: playback open error: No such file or directory
Could not open/initialize audio device -> no sound.
My /dev/snd directory contains pcmC0D0c, pcmC0D0p, pcmC0D1c, and pcmC0D2p. Which seems to be a clue - I need to change a 1 to a 2 (or a 2 to a 1) somewhere.
Please, help. ALSA's gettin' me down.
I have an MSI K9NGM2-FID - Socket AM2, nVidia GeForce 6150, and I'm using on-board sound with Intel HDA drivers (snd-intel-8x0). I installed Fedora Core 5 and "current" updates (as of two weeks ago, anyway - kernel 2.6.17-1.2174_FC5smp). I've got a coax from my SPDIF out to my Onkyo 304 receiver, and Onkyo set to consume coax (it works from an actual DVD player).
I haven't done any ALSA configuration. I looked into it, but frankly ALSA is impenetrable (is there a readable doc? I haven't seen one) - plus I've read comments saying it should work out of the box.
I've got a DVD in right now. I'll play it:
mplayer -v -ao alsa -afm hwac3 -monitoraspect 16:9 -dvd-device /dev/cdrom dvd://1
I get a nice picture, but no sound.
The log from mplayer says:
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
No accelerated IMDCT transform found
hwac3: switched to AC3, 448000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
================================================== ========================
Building audio filter chain for 48000Hz/2ch/ac3 -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: using ALSA 1.0.11rc2
alsa-spdif-init: playing AC3, 2 channels
alsa-init: using device iec958:{CARD 0 AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
alsa-lib: pcm_hw.c:1217:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: No such file or directory
alsa-init: playback open error: No such file or directory
Could not open/initialize audio device -> no sound.
My /dev/snd directory contains pcmC0D0c, pcmC0D0p, pcmC0D1c, and pcmC0D2p. Which seems to be a clue - I need to change a 1 to a 2 (or a 2 to a 1) somewhere.
Please, help. ALSA's gettin' me down.