You are not logged in.

#1 2016-10-30 15:36:16

sdellysse
Member
Registered: 2009-12-15
Posts: 33

Cannot get HDMI audio working

I'm trying to get audio over HDMI working on my freshly-installed system. I'm just using ALSA for now, might switch to pulseaudio in the future but do not have pulseaudio installed. I have onboard sound on my motherboard (Gigabyte 990FXA-UD3) and also a second video card (Radeon 7770) that also have audio outs but I'm trying to get the NVidia 960 HDMI out working

[root@blackbox etc]# lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 0fba (rev a1)
[root@blackbox etc]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC889 Digital [ALC889 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

It looks like I want

hw:1,3

for the speaker-test:

[root@blackbox etc]# speaker-test -c2 -D hw:1,3

speaker-test 1.1.2

Playback device is hw:1,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
^CTime per period = 6.543532

the speaker-test doesn't error but it also doesn't produce any sound.

shawn on blackbox in /etc $ cat /proc/asound/card1/eld#0.1
monitor_present		1
eld_valid		1
monitor_name		SE42UGT
     
connection_type		HDMI
eld_version		[0x2] CEA-861D or below
edid_version		[0x3] CEA-861-B, C or D
manufacture_id		0xab4c
product_id		0x30
port_id			0x200
support_hdcp		0
support_ai		0
audio_sync_delay	0
speakers		[0x1] FL/FR
sad_count		2
sad0_coding_type	[0x1] LPCM
sad0_channels		2
sad0_rates		[0xe0] 32000 44100 48000
sad0_bits		[0xe0000] 16 20 24
sad1_coding_type	[0x2] AC-3
sad1_channels		2
sad1_rates		[0xe0] 32000 44100 48000
sad1_max_bitrate	48000

This shows the card and device that I need to work, connected to my HDTV (the volume is up on the TV)

alsamixer isn't much help here:

┌────────────────────────────────────────────── AlsaMixer v1.1.2 ───────────────────────────────────────────────┐
│ Card: HDA NVidia                                                                      F1:  Help               │
│ Chip: Nvidia GPU 72 HDMI/DP                                                           F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                              F6:  Select sound card  │
│ Item: S/PDIF [Off]                                                                    Esc: Exit               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                           ┌───── Sound Card ──────┐                                           │
│                                           │-  (default)           │                                           │
│                                           │0  HDA ATI SB          │                                           │
│                                           │1  HDA NVidia          │                                           │
│                                        ┌──│2  HDA ATI HDMI        │──┐                                        │
│                                        │MM│3  HD Webcam C525      │MM│                                        │
│                                        └──│   enter device name...│──┘                                        │
│                                     < S/PD└───────────────────────┘DIF 3                                      │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────── AlsaMixer v1.1.2 ───────────────────────────────────────────────┐
│ Card: HDA NVidia                                                                      F1:  Help               │
│ Chip: Nvidia GPU 72 HDMI/DP                                                           F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                              F6:  Select sound card  │
│ Item: S/PDIF [Off]                                                                    Esc: Exit               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                        ┌──┐     ┌──┐     ┌──┐     ┌──┐                                        │
│                                        │MM│     │MM│     │MM│     │MM│                                        │
│                                        └──┘     └──┘     └──┘     └──┘                                        │
│                                     < S/PDIF >S/PDIF 1 S/PDIF 2 S/PDIF 3                                      │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
│                                                                                                               │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

No matter what I'm still not getting sound. I'm running out of ideas. Any help?

Offline

#2 2016-11-02 02:50:12

heldiho53
Member
Registered: 2013-03-14
Posts: 48

Re: Cannot get HDMI audio working

Just use pulseaudio with pavucontrol. From there you can just choose your  desired output. Don't even bother messing with alsa.

Offline

#3 2016-11-02 02:57:51

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Cannot get HDMI audio working

I've always had great results with PulseAudio.  As said, I second using that - just remember to install pulseaudio-alsa so your legacy ALSA applications get routed properly through pulse.

Offline

#4 2016-11-02 08:10:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: Cannot get HDMI audio working

While I second the notion on pulse, what makes you sure that 1,3 is the correct output? It could be 1,3 1,7 1,8 or 1,9 depending on which output port you plug your HDMI in, ALSA is not going to figure that out for you automatically (which is why people suggest to use pulse, because it does do that with varying degrees of success, but it attempts to make the correct choice at least) , so try that as well. (And all of your outputs are muted, they should read 00 instead of MM in alsamixer, so make sure you do that as well)

Last edited by V1del (2016-11-02 13:37:48)

Offline

#5 2016-11-08 23:16:43

Wild Penguin
Member
Registered: 2015-03-19
Posts: 320

Re: Cannot get HDMI audio working

What V1del said.

Back when I used to use ALSA, this was exactly the reason (I had difficulties outputting from my NVidia card via HDMI) - there was no way to tell which output it actually is.

I also want to say that I used to hate pulseaudio, but that was because it used to be an infant. Now it has matured and is a lot more solid, with way more software support smile (some quarries I have with pulseaudio are certain MIDI soft synthesizers and MT32 emulation, but that's about it)

Last edited by Wild Penguin (2016-11-08 23:17:20)

Offline

Board footer

Powered by FluxBB