[SOLVED] Audio only coming from HDMI

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bifferos
Level 1
Level 1
Posts: 6
Joined: Fri Dec 24, 2021 10:18 am

[SOLVED] Audio only coming from HDMI

Post by bifferos »

My system was working perfectly for some time (> 1 year actually) however just recently it's switched to HDMI audio and I can't seem to get it back to HD-Audio, the built-in motherboard audio which I want. The motherboard is ASRock B450M Pro4.

Code: Select all

$ lspci | grep Audio
07:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
09:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller

Code: Select all

$ dmesg | grep audio
[    5.461976] snd_hda_intel 0000:07:00.1: Handle vga_switcheroo audio client
[    5.476871] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    5.476873] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.476873] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    5.476874] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    5.476874] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    5.476875] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    5.476876] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    5.476877] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
[ 1247.477578] snd_hda_codec_hdmi hdaudioC0D0: HDMI: invalid ELD data byte 25
[ 1253.801488] snd_hda_codec_hdmi hdaudioC0D0: HDMI: invalid ELD data byte 1

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #
pavucontrol is only showing a single device (the HDMI).

Any ideas?
Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Hoser Rob
Level 20
Level 20
Posts: 11776
Joined: Sat Dec 15, 2012 8:57 am

Re: Audio only coming from HDMI

Post by Hoser Rob »

I've never had any real audio problems so I don't think I'd be able to solve this, but I do know that the MB make/model isn't enough general system info.

Copy/paste the text output of inxi -Fxxxrz run in the terminal.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
Pierre
Level 21
Level 21
Posts: 13372
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Audio only coming from HDMI

Post by Pierre »

when running from an LinuxMint system,
into an desktop projector, via an HDMI cable,
it's often the video that works, and Not the sound from that HDMI cable.

the fix was to correct the audio feed in the Sound Output Icon in the Taskbar.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
bifferos
Level 1
Level 1
Posts: 6
Joined: Fri Dec 24, 2021 10:18 am

Re: Audio only coming from HDMI

Post by bifferos »

Here's the output from inxi

Code: Select all

$ inxi -Fxxxxrz
System:
  Kernel: 5.4.0-58-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.8.5 wm: muffin 4.8.0 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASRock model: B450M Pro4 serial: <filter> 
  UEFI: American Megatrends v: P5.30 date: 08/04/2021 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 
  L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 115200 
  Speed: 2201 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 
  1: 2197 2: 2198 3: 2200 4: 2199 5: 2200 6: 2194 7: 2199 8: 2200 9: 2201 
  10: 2200 11: 2199 12: 2198 13: 2200 14: 2200 15: 2199 16: 2200 
Graphics:
  Device-1: NVIDIA GK208B [GeForce GT 710] vendor: Micro-Star MSI 
  driver: nvidia v: 460.39 bus ID: 07:00.0 chip ID: 10de:128b 
  Display: x11 server: X.Org 1.20.8 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 2560x1440~60Hz 
  OpenGL: renderer: GeForce GT 710/PCIe/SSE2 v: 4.6.0 NVIDIA 460.39 
  direct render: Yes 
Audio:
  Device-1: NVIDIA GK208 HDMI/DP Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 07:00.1 chip ID: 10de:0e0f 
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock 
  driver: snd_hda_intel v: kernel bus ID: 09:00.4 chip ID: 1022:1487 
  Sound Server: ALSA v: k5.4.0-58-generic 
bifferos
Level 1
Level 1
Posts: 6
Joined: Fri Dec 24, 2021 10:18 am

Re: Audio only coming from HDMI

Post by bifferos »

I finally figured this one out today. In the BIOS, I played around with the onboard devices configuration.

Not Working:
Turn on LED in S5: Enabled
Gnb Hd Audio: Enabled
- Front Panel: HD
Restore on AC Power Loss: Power Off

Working:
Turn on LED in S5: Enabled
Gnb Hd Audio: Enabled
- Front Panel: AC 97
Restore on AC Power Loss: Power Off

In other words, switching from Front Panel HD -> AC97 fixed the problem and my audio now works out of the on-board card.

This problem is not specific to Mint, I found the same behaviour with MX Linux.

What may have been significant here is that I recently patched the BIOS. I'm certain that this motherboard wasn't fussy about that setting before, in fact I think I had the Gnb Hd Audio on 'auto'. So please bear this in mind if you patch your ASRock B450M Pro4 BIOS. Maybe they'll fix this in a future patch.
Locked

Return to “Beginner Questions”