Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Audio through second HDMI output on GPU?
Date: Fri, 21 May 2021 20:47:40
Message-Id: CAK2H+ecS65EaYs2RMHoVsyviL90sb+QBpYDd9vwS0C4sKvkkQw@mail.gmail.com
In Reply to: [gentoo-user] Audio through second HDMI output on GPU? by Arve Barsnes
1 On Thu, May 20, 2021 at 2:35 AM Arve Barsnes <arve.barsnes@×××××.com> wrote:
2 >
3 > Hello,
4 >
5 > Resending this message, as the last time it was derailed by a question
6 > about DE and pulseaudio, neither of which are relevant to this
7 > low-level problem (and also not installed anyway, as I run a simple
8 > openbox WM with alsa only).
9 >
10 > Does anyone know anything about how to check audio through Nvidia HDMI
11 outputs?
12 >
13 > My regular audio is through the motherboard output, and I also have a
14 > USB soundcard that I regularly use without trouble, but my HDMI is a
15 > different matter.
16 >
17 > I have a GTX 1080 card with two HDMI outputs, the first connected to
18 > my main monitor, and the second connected to a TV. I've managed to
19 > play sound through my monitor with aplay, but no luck with the TV.
20 >
21 > aplay reports:
22 > $ aplay -l
23 > card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
24 > Subdevices: 1/1
25 > Subdevice #0: subdevice #0
26 > card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
27 > Subdevices: 1/1
28 > Subdevice #0: subdevice #0
29 > card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
30 > Subdevices: 1/1
31 > Subdevice #0: subdevice #0
32 > card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
33 > Subdevices: 1/1
34 > Subdevice #0: subdevice #0
35 > card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
36 > Subdevices: 1/1
37 > Subdevice #0: subdevice #0
38 > card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
39 > Subdevices: 1/1
40 > Subdevice #0: subdevice #0
41 > card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
42 > Subdevices: 1/1
43 > Subdevice #0: subdevice #0
44 >
45 > To get sound through the monitor:
46 > aplay -D plughw:1,7 sample.wav
47 >
48 > No luck on any of the other 6 devices reported. I suspect there might
49 > be a setting somewhere on the Nvidia side that limits sound output to
50 > one of these, and if that is so, I'd rather have the TV able to get
51 > sound, as my computer have separate speakers and no need for the HDMI
52 > sound output.
53 >
54 > Any ideas for troubleshooting this welcome.
55 >
56 > Regards,
57 > Arve
58
59 Arve,
60 I'm very sorry that when you asked this question a month ago you didn't
61 like my answer. It was never my intention to 'derail' your question with DE
62 or pulseaudio. That said no one else has answered that question nor have
63 they responded to this one that you posted yesterday. I think you are in a
64 fairly unique setup that most people don't deal with but it is an
65 interesting area. I'd still like to help if I can.
66
67 To start please run the following command and let's see what ALSA tells
68 us:
69
70 cat /proc/asound/card*/eld#0.*
71
72 Good luck,
73 Mark

Replies

Subject Author
Re: [gentoo-user] Audio through second HDMI output on GPU? Arve Barsnes <arve.barsnes@×××××.com>