You are not logged in.

#1 2016-02-28 19:19:48

aauthor
Member
Registered: 2016-02-28
Posts: 1

Trouble getting sound out of HDMI card (with two devices) with ALSA

Hello everyone!  Long time lurker, first time poster. wink

I have a Lenovo x140e with Generic (internal speakers/headphone jack) and an HDMI card.  The problem I'm having is I can't get sound to come out of my HDMI device, nor do I see volume controls for the HDMI card in the ALSA mixer, only: S/PDIF and S/PDIF 1.†

Interestingly, there are two HDMI devices on the same card:

➤ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

When I target the first device (3) with

aplay -D plughw:1,3 /usr/share/sounds/alsa/Noise.wav

I do hear sound out of the HDMI monitor.

When I target the second device (7) with

aplay -D plughw:1,7 /usr/share/sounds/alsa/Noise.wav

I do not hear sound out of the HDMI monitor.

When I try to set

ALSA_CARD=HDMI

I get an error:

➤ env ALSA_CARD=HDMI aplay /usr/share/sounds/alsa/Noise.wav
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
aplay: main:722: audio open error: No such file or directory

(Doing the same with ALSA_CARD=Generic does successfully play sound out of the internal speakers.)

Other things that might be helpful:

➤ lspci | grep Audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)

I don't think I modified my /usr/share/alsa/alsa.conf (github gist), but here it is .

I'm pretty inexperienced with configuring ALSA, so any help/explanation would be greatly appreciated.  Thanks!

-----------

†: I'm only vaguely familiar with S/PDIF cards, and maybe I'm not supposed to see volume (as the TV presumably has it's own volume control), though ALSA controlled volume *would* be nice.

Last edited by aauthor (2016-02-28 19:21:21)

Offline

Board footer

Powered by FluxBB