PDA

View Full Version : Anyone got sound over hdmi with 8.12?


gsmd
01-02-2009, 12:55 PM
Got a 780g mobo, gentoo, alsa-lib-1.0.18, xorg-server-1.5.3, ati-drivers-8.561 (which is 8.12).
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
No problem getting sound out of 0:0, can't test 0:1, no sound over 1:3.
That's the way I try to test it: alsamix -> unmute everything, startx (the image shows up on lcd tv), mplayer -ao alsa:device=hw=1.3 my.mp3.
Nothing.

Any suggestions would be highly appreciated. TIA.

gbee
01-03-2009, 08:55 AM
I have sound over HDMI with 8.11 and earlier. Are you sure the mp3 you are attempting to play is 44Khz and not 41Khz? Digital audio must be 44Khz and 41Khz samples just won't work unless they are upconverted.

You should be using the alsa plug plugin to do on the fly rate conversion to 48Khz.

Following the following section of the MythTV wiki on configuring Alsa for digital sound could be useful. It includes an alsa config which creates four new devices, you would want to use digital-dmix which automatically rate converts to 48Khz, "mplayer -ao alsa:device=digital-dmix my.mp3" or something similar for mplayer.

http://www.mythtv.org/wiki/index.php/Configuring_Digital_Sound#Setting_up_ALSA.27s_.aso undrc.2C_Properly

You would need to edit the config to change the device and card numbers, see the comments.

gsmd
01-04-2009, 03:15 AM
gbee
Thanks for your reply.
Yes, the mp3 is 44100.
Are you able to get sound with
speaker-test -c2 --device cards.pcm.iec958 --rate 44100
speaker-test -c2 --device cards.pcm.iec958 --rate 48000

?
Could you please share the following info:
1) kernel, alsa versions
2) alsa, xorg configs

Thanks a bunch.

gsmd
01-04-2009, 10:30 AM
Solved! http://forums.gentoo.org/viewtopic.php?p=5361959#5361959