Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Kernel 6.0 upgrade broke sound to TV over HDMI
Date: Sat, 26 Nov 2022 04:40:26
Message-Id: ddc1f175-477f-6c2c-7d0b-f6242b0e94c2@gmail.com
1 Howdy,
2
3 I found a new version of the nvidia-drivers.  I figured it might work
4 with the new 6.0 kernel so I tested it.  Sure enough, it compiled and
5 installed.  So, new kernel, new nvidia-driver.  Keep that in mind. When
6 I booted into the new kernel using the new nvidia drivers, sound worked
7 everywhere except on my TV which is connected by HDMI cable.  The TV
8 works with old kernel and new drivers.  The new kernel seems to be what
9 is breaking my TV sound.  I think the nvidia drivers can be ruled out at
10 this point but one never knows. 
11
12 My usual setup.  I use ALSA for my sound, built into the kernel.  I
13 don't use pulse, pulseaudio or whatever for my sound.  I use Smplayer to
14 play videos on my TV which I refer to as screen 2.  Some places refer to
15 it as screen one, count starting from 0 instead of 1.  So, to avoid
16 confusion, TV screen means HDMI port used for TV.  Main screen, 1 in
17 most places, means monitor that I look at for everything other than
18 watching TV.  It is connected with a DB15HD port.  I have Smplayer set
19 to display on TV screen unless I manually drag it over to main screen to
20 adjust something. 
21
22 To get sound to go to the TV screen, I set this in Smplay preferences
23 for audio where it says Output driver:  alsa:device=hw=1.7  Until now,
24 that has always worked and that is several years and even a few kernel
25 upgrades.  Sound for Smplayer goes to TV screen but all other sound goes
26 to the main speakers through the little jack and a amp I have hooked to
27 it. 
28
29 This is some info, I'm getting same info for both kernels. 
30
31
32 Kernel 5.14 
33 ------------------------------------------------------------------------------------
34
35 aplay -l
36 **** List of PLAYBACK Hardware Devices ****
37 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
38   Subdevices: 1/1
39   Subdevice #0: subdevice #0
40 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
41   Subdevices: 1/1
42   Subdevice #0: subdevice #0
43 card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
44   Subdevices: 1/1
45   Subdevice #0: subdevice #0
46 card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
47   Subdevices: 1/1
48   Subdevice #0: subdevice #0
49 card 1: NVidia [HDA NVidia], device 7: HDMI 1 [LG TV        ]
50   Subdevices: 0/1
51   Subdevice #0: subdevice #0
52 card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
53   Subdevices: 1/1
54   Subdevice #0: subdevice #0
55 card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
56   Subdevices: 1/1
57   Subdevice #0: subdevice #0
58 card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
59   Subdevices: 1/1
60   Subdevice #0: subdevice #0
61 card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
62   Subdevices: 1/1
63   Subdevice #0: subdevice #0
64 root@fireball ~ # aplay -L
65 null
66     Discard all samples (playback) or generate zero samples (capture)
67 default:CARD=SB
68     HDA ATI SB, VT2020 Analog
69     Default Audio Device
70 sysdefault:CARD=SB
71     HDA ATI SB, VT2020 Analog
72     Default Audio Device
73 front:CARD=SB,DEV=0
74     HDA ATI SB, VT2020 Analog
75     Front output / input
76 surround21:CARD=SB,DEV=0
77     HDA ATI SB, VT2020 Analog
78     2.1 Surround output to Front and Subwoofer speakers
79 surround40:CARD=SB,DEV=0
80     HDA ATI SB, VT2020 Analog
81     4.0 Surround output to Front and Rear speakers
82 surround41:CARD=SB,DEV=0
83     HDA ATI SB, VT2020 Analog
84     4.1 Surround output to Front, Rear and Subwoofer speakers
85 surround50:CARD=SB,DEV=0
86     HDA ATI SB, VT2020 Analog
87     5.0 Surround output to Front, Center and Rear speakers
88 surround51:CARD=SB,DEV=0
89     HDA ATI SB, VT2020 Analog
90     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
91 surround71:CARD=SB,DEV=0
92     HDA ATI SB, VT2020 Analog
93     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
94 iec958:CARD=SB,DEV=0
95     HDA ATI SB, VT2020 Digital
96     IEC958 (S/PDIF) Digital Audio Output
97 hdmi:CARD=NVidia,DEV=0
98     HDA NVidia, HDMI 0
99     HDMI Audio Output
100 hdmi:CARD=NVidia,DEV=1
101     HDA NVidia, LG TV       
102     HDMI Audio Output
103 hdmi:CARD=NVidia,DEV=2
104     HDA NVidia, HDMI 2
105     HDMI Audio Output
106 hdmi:CARD=NVidia,DEV=3
107     HDA NVidia, HDMI 3
108     HDMI Audio Output
109 hdmi:CARD=NVidia,DEV=4
110     HDA NVidia, HDMI 4
111     HDMI Audio Output
112 hdmi:CARD=NVidia,DEV=5
113     HDA NVidia, HDMI 5
114     HDMI Audio Output
115 root@fireball ~ #
116
117
118
119 Kernel 6.0 
120 ------------------------------------------------------------------------------------
121
122 root@fireball ~ # aplay -l
123 **** List of PLAYBACK Hardware Devices ****
124 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
125   Subdevices: 1/1
126   Subdevice #0: subdevice #0
127 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
128   Subdevices: 1/1
129   Subdevice #0: subdevice #0
130 card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
131   Subdevices: 1/1
132   Subdevice #0: subdevice #0
133 card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
134   Subdevices: 1/1
135   Subdevice #0: subdevice #0
136 card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
137   Subdevices: 0/1
138   Subdevice #0: subdevice #0
139 card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
140   Subdevices: 1/1
141   Subdevice #0: subdevice #0
142 card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
143   Subdevices: 1/1
144   Subdevice #0: subdevice #0
145 card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
146   Subdevices: 1/1
147   Subdevice #0: subdevice #0
148 card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
149   Subdevices: 1/1
150   Subdevice #0: subdevice #0
151 root@fireball ~ # aplay -L
152 null
153     Discard all samples (playback) or generate zero samples (capture)
154 default:CARD=SB
155     HDA ATI SB, VT2020 Analog
156     Default Audio Device
157 sysdefault:CARD=SB
158     HDA ATI SB, VT2020 Analog
159     Default Audio Device
160 front:CARD=SB,DEV=0
161     HDA ATI SB, VT2020 Analog
162     Front output / input
163 surround21:CARD=SB,DEV=0
164     HDA ATI SB, VT2020 Analog
165     2.1 Surround output to Front and Subwoofer speakers
166 surround40:CARD=SB,DEV=0
167     HDA ATI SB, VT2020 Analog
168     4.0 Surround output to Front and Rear speakers
169 surround41:CARD=SB,DEV=0
170     HDA ATI SB, VT2020 Analog
171     4.1 Surround output to Front, Rear and Subwoofer speakers
172 surround50:CARD=SB,DEV=0
173     HDA ATI SB, VT2020 Analog
174     5.0 Surround output to Front, Center and Rear speakers
175 surround51:CARD=SB,DEV=0
176     HDA ATI SB, VT2020 Analog
177     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
178 surround71:CARD=SB,DEV=0
179     HDA ATI SB, VT2020 Analog
180     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
181 iec958:CARD=SB,DEV=0
182     HDA ATI SB, VT2020 Digital
183     IEC958 (S/PDIF) Digital Audio Output
184 hdmi:CARD=NVidia,DEV=0
185     HDA NVidia, HDMI 0
186     HDMI Audio Output
187 hdmi:CARD=NVidia,DEV=1
188     HDA NVidia, HDMI 1
189     HDMI Audio Output
190 hdmi:CARD=NVidia,DEV=2
191     HDA NVidia, HDMI 2
192     HDMI Audio Output
193 hdmi:CARD=NVidia,DEV=3
194     HDA NVidia, HDMI 3
195     HDMI Audio Output
196 hdmi:CARD=NVidia,DEV=4
197     HDA NVidia, HDMI 4
198     HDMI Audio Output
199 hdmi:CARD=NVidia,DEV=5
200     HDA NVidia, HDMI 5
201     HDMI Audio Output
202 root@fireball ~ #
203
204
205 I noticed something different between the two.  In old kernel, it shows
206 'card 1: NVidia [HDA NVidia], device 7: HDMI 1 *[LG TV ]*' which is my
207 TV.  However, under the new kernel, it does not show that.  It still
208 shows device 7 but it seems to not connect to my TV or list it.  Keep in
209 mind, the picture is on the TV.  Just no sound.
210
211 I went into make menuconfig and looked for some option that might affect
212 this but if it is there, I couldn't find it.  Maybe it isn't obvious. 
213 Maybe it is some hidden thing that only shows up when something
214 unrelated is enabled.  Since the new drivers work with the old kernel,
215 I'd think that rules the nvidia drivers out.  I'm thinking this is a
216 kernel config problem but google isn't helping. 
217
218 Should I bite the bullet and start using that pulse, pulseaudio or
219 whatever thing?  Is the old ALSA way just getting to outdated?  When I
220 googled, it was not a lot of hits regarding alsa.  The pulse thing did
221 have hits but couldn't figure out how to apply its info to this. 
222
223 Thoughts?  Options?  Need more info? 
224
225 Dale
226
227 :-)  :-)

Replies

Subject Author
Re: [gentoo-user] Kernel 6.0 upgrade broke sound to TV over HDMI Arve Barsnes <arve.barsnes@×××××.com>
Re: [gentoo-user] Kernel 6.0 upgrade broke sound to TV over HDMI Rich Freeman <rich0@g.o>