View Full Version : HDMI audio only L/R channels


mattbrown
01-24-09, 04:37 PM
I installed Alsa 1.0.19 today in hopes of getting HDMI audio working. Upon installation and reboot I got the first piece of good news:

matt@mythbuntu:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

And then:
aplay -Dplughw:0,3 -fcd falcon_flyby.wav
produced audio. Success!

matt@mythbuntu:~$ speaker-test -Dplughw:0,3 -c6
produced pink noise only in the left and right though it tried all 6 channels. So, its a good start. I just started learning about alsa today, so I guess I should add that I do not have a ~/.asoundrc or /etc/asound.conf on the system.

Matt

mattbrown
01-24-09, 10:56 PM
Well, I found a /etc/asound.conf example online and put it in. Now I'm getting 6 channel sound in Myth, but I'm still not getting more than L/R when I run the speaker-test or aplay from the cmd line. I haven't tried playing anything from Myth in hours. Who knows how long ago it got fixed.

I did update the nvidia driver to 180.22, so maybe right around then. Myth was defintely 2 channel earlier today.

PeteCool
02-07-09, 12:26 PM
Could you post a copy of that asound.conf file please? Thanks!

mattbrown
02-07-09, 05:05 PM
pcm.!default {
type plug
slave {
pcm multi
rate 48000
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}

ctl.!default hdmiout

pcm.optical {
type hw
card 0
device 1
}

ctl.optical {
type hw
card 0
device 1
}

pcm.hdmiout {
type hw
card 0
device 3
}

ctl.hdmiout {
type hw
card 0
device 3
}

pcm.multi {
type multi
slaves.a.pcm "hdmiout"
slaves.a.channels 2
slaves.b.pcm "optical"
slaves.b.channels 2

bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1

bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}

ctl.multi {
type hw
card 0
}

zim2dive
02-09-09, 08:42 AM
pcm.!default {
type plug
slave {
pcm multi
rate 48000
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}

ctl.!default hdmiout

pcm.optical {
type hw
card 0
device 1
}

ctl.optical {
type hw
card 0
device 1
}

pcm.hdmiout {
type hw
card 0
device 3
}

ctl.hdmiout {
type hw
card 0
device 3
}

pcm.multi {
type multi
slaves.a.pcm "hdmiout"
slaves.a.channels 2
slaves.b.pcm "optical"
slaves.b.channels 2

bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1

bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}

ctl.multi {
type hw
card 0
}


That seems like an overkill for .asoundrc.

Have you run sudo alsaconf

then run alsamixer to be sure volume is not muted

could you try either of the configs I have in this post ? http://www.avsforum.com/avs-vb/showpost.php?p=15729130&postcount=20

Also try speaker-test without plug.. just hw.

Edit: welcome to the world of linux sound :) http://blogs.adobe.com/penguin.swf/2007/05/

mattbrown
02-09-09, 08:54 PM
Yeah it looked like overkill to me too, but somehow it worked and I got 5.1 channels over HDMI through Myth. After spending almost 2 days working on it, I cut my loses. I ran the alsaconf and alsamixer .... I think I did that right after installing the latest alsa source and thats when i got the tones from the command line working.

I'll try your config files when i get the chance. Its always unnerving to play with a working MythTV box though.

zim2dive
02-10-09, 08:29 AM
Yeah it looked like overkill to me too, but somehow it worked and I got 5.1 channels over HDMI through Myth. After spending almost 2 days working on it, I cut my loses. I ran the alsaconf and alsamixer .... I think I did that right after installing the latest alsa source and thats when i got the tones from the command line working.

I'll try your config files when i get the chance. Its always unnerving to play with a working MythTV box though.

It is amazingly easy to take a box with 90% function and quickly reduce it to 20% :)

I never used plug for my HDMI audio.

mattbrown
02-10-09, 02:11 PM
And I'm probably still considering myself at 90%. Example, enable Vsync to blank for XVideo in the Nvidia settings, my program guide is essentially unusable unless I pause TV.

Disable Vsync to blank for Xvideo and my guide flies but I get constant video tearing. Nice.