Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

  • Posts: 407
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2420
  • Message 61 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-03, 7:35 AM

@ jbaldassari wrote:

@ osnix wrote:

@jbaldassari ,

 

I may have a workaround.

 

( for me it worked only like this, you can try just the last 2 steps if you wish )

( also BIOS 1.32 here )

 

1) Have a kernel without the patch or use =1 to make the thing fail. ( keep =1 with patch )

2) Reboot the box and go to BIOS settings.

2a) in the power menu set Windows 10, save, and reboot to OS.

   ( That sets other code for Windoze including ACP )

2b) once up shut down, power on, and go again to BIOS, change back to Linux, and boot up.

3) Connect an HDMI cable to some TV/Monitor.

4) Open alsamixer ( or other tools to unblock/unmute sound ).

     With alsamixer hit F6 ( Fn+F6 ), verify you have HD-Generic 0,1 and ACP.

     Switch to HD 0 and check S/PDIF 1, should be MM as well S/PDIF 2, MM too.

     Change S/PDIF 1 to OO, S/PDIF 2 to OO. 

 

I only quickly tested, the sound, browser -> youtube->opened the first video. Sound was there,

MIC looked like working, how well no idea.

 

The only issue it will switch back on each reboot, you have to unmute/unlock again.

probably a script will do it.

 

@osnix unfortunately I have been unable to reproduce your results when running BIOS 1.32 on an unpatched 5.12.8 kernel.  I do have a couple of questions for clarification:

 

Step 2a: Are you referring to the sleep state setting?  That was the only one I could find in the power settings that referenced Windows:

 

 

After changing that setting to Windows and then back to Linux I plugged in the HDMI cable to an external monitor and verified the settings in alsamixer.  I also tried unmuting the master control in card 1 (Realtek ALC257):

 

 

After changing all of these settings I still do not have any audio coming out of the laptop speakers, and when changing the volume the system is reporting the device as HDMI3 rather than speakers.  Here is what pavucontrol shows for output devices:

 

 

Is this similar to what you are seeing?

 

Yes, 2a) is about sleep states.

While it says sleep states, it changes way more.

(If bored sometimes, boot with Windows 10 set and dump your ACPI tables,

then do the same while Linux set and compare :) )

 

Also yes it is similar to what I see, the working output is on HDMI2 here.

 

 

Reply
Options

9 Posts

06-02-2021

United States of America

7 Signins

25 Page Views

  • Posts: 9
  • Registered: ‎06-02-2021
  • Location: United States of America
  • Views: 25
  • Message 62 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-03, 13:56 PM

I made some progress this morning.  First, I blacklisted the renoir audio modules:

 

```

$ cat /etc/modprobe.d/blacklist.conf 
blacklist snd-rn-pci-acp3x
blacklist snd-acp3x-pdm-dma
blacklist snd-acpx-rn

```

 

Then I restarted.  After booting up my speakers were working, but I did not have any mic input.  Next, I manually added two of the renoir modules one at a time (because I wasn't really sure what each one was responsible for):

 

```

$ modprobe snd-acp3x-pdm-dma

$ modprobe snd-rn-pci-acp3x

```

 

Immediately after adding the snd-rn-pci-acp3x module my analog mic was detected, and it didn't break my speaker output.  So what I'm thinking now is that the order in which these modules are loaded is important, and the snd_hda_* modules must be loaded before the renoir modules.  I'm interested in hearing if anyone has similar results.

Reply
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

  • Posts: 407
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2420
  • Message 63 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-03, 14:11 PM

@ jbaldassari wrote:

I made some progress this morning.  First, I blacklisted the renoir audio modules:

 

```

$ cat /etc/modprobe.d/blacklist.conf 
blacklist snd-rn-pci-acp3x
blacklist snd-acp3x-pdm-dma
blacklist snd-acpx-rn

```

 

Then I restarted.  After booting up my speakers were working, but I did not have any mic input.  Next, I manually added two of the renoir modules one at a time (because I wasn' really sure what each one was responsible for):

 

```

$ modprobe snd-acp3x-pdm-dma

$ modprobe snd-rn-pci-acp3x

```

 

Immediately after adding the snd-rn-pci-acp3x module my analog mic was detected, and it didn' break my speaker output.  So what I' thinking now is that the order in which these modules are loaded is important, and the snd_hda_* modules must be loaded before the renoir modules.  I' interested in hearing if anyone has similar results.

 

It is possible, but in my testing, I didn't do that.

 

You could try such a modprobe conf without blacklisting,

like this:

 

~$ cat sample.conf
#install snd_hda_intel before those RN mods.
install snd_rn_pci_acp3x /sbin/modprobe snd_hda_intel ; /sbin/modprobe --ignore-install snd_rn_pci_acp3x
install snd-acp3x-pdm-dma /sbin/modprobe snd_hda_intel ; /sbin/modprobe --ignore-install snd-acp3x-pdm-dma

 

I cannot test myself, still traveling ;) maybe tonight :)

 

Gabriel

 

Reply
Options

9 Posts

06-02-2021

United States of America

7 Signins

25 Page Views

  • Posts: 9
  • Registered: ‎06-02-2021
  • Location: United States of America
  • Views: 25
  • Message 64 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-04, 6:11 AM

@ osnix wrote:

@ jbaldassari wrote:

I made some progress this morning.  First, I blacklisted the renoir audio modules:

 

```

$ cat /etc/modprobe.d/blacklist.conf 
blacklist snd-rn-pci-acp3x
blacklist snd-acp3x-pdm-dma
blacklist snd-acpx-rn

```

 

Then I restarted.  After booting up my speakers were working, but I did not have any mic input.  Next, I manually added two of the renoir modules one at a time (because I wasn' really sure what each one was responsible for):

 

```

$ modprobe snd-acp3x-pdm-dma

$ modprobe snd-rn-pci-acp3x

```

 

Immediately after adding the snd-rn-pci-acp3x module my analog mic was detected, and it didn' break my speaker output.  So what I' thinking now is that the order in which these modules are loaded is important, and the snd_hda_* modules must be loaded before the renoir modules.  I' interested in hearing if anyone has similar results.

 

It is possible, but in my testing, I didn' do that.

 

You could try such a modprobe conf without blacklisting,

like this:

 

~$ cat sample.conf
#install snd_hda_intel before those RN mods.
install snd_rn_pci_acp3x /sbin/modprobe snd_hda_intel ; /sbin/modprobe --ignore-install snd_rn_pci_acp3x
install snd-acp3x-pdm-dma /sbin/modprobe snd_hda_intel ; /sbin/modprobe --ignore-install snd-acp3x-pdm-dma

 

I cannot test myself, still traveling ;) maybe tonight :)

 

Gabriel

 

 

Thanks for the suggestions.  Unfortunately the modprobe install directive did not work.  The system booted up with broken speakers and working analog mic as before.  Maybe more time is needed between loading snd-hda-intel and loading the renoir modules.  Anyway I _was_ able to come up with a smaller change that gives me working speakers and a working analog mic by following these steps:

 

1. Blacklist only the snd-rn-pci-acp3x module:

$ cat /etc/modprobe.d/blacklist.conf 
blacklist snd-rn-pci-acp3x

 

2. Auto-load snd-acp3x-pdm-dma because loading this module does not break the speakers, but it is needed for the analog mic

$ cat /etc/modules-load.d/audio.conf

snd-acp3x-pdm-dma

 

3. Boot system; log into desktop.  At this point snd-hda-intel and related audio modules are loaded, and the speakers work, but no mic is detected.

 

4. Load snd-rn-pci-acp3x

$ modprobe snd-rn-pci-acp3x

 

The analog mic is now detected, and the speakers still work.  I don't know what else to try at this point, but at least I have a workaround.  I may try to automate this with a systemd user service, which isn't a perfect solution, but at least it will give me a working system with no manual steps required on boot.

Reply
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

  • Posts: 407
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2420
  • Message 65 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-04, 13:32 PM

@ jbaldassari wrote:

...

 

Thanks for the suggestions.  Unfortunately the modprobe install directive did not work.  The system booted up with broken speakers and working analog mic as before.  Maybe more time is needed between loading snd-hda-intel and loading the renoir modules.  Anyway I _was_ able to come up with a smaller change that gives me working speakers and a working analog mic by following these steps:

 

Ok, then we probably need a soft dep on the codec itself.

 

This:

 

softdep snd_rn_pci_acp3x pre: snd_hda_codec_realtek

 

I just tested the boot with that, will be home later on today.

 

```

 

~$ dmesg | grep snd
[    2.123342] snd_hda_intel 0000:07:00.1: enabling device (0000 -> 0002)
[    2.123523] snd_hda_intel 0000:07:00.1: Handle vga_switcheroo audio client
[    2.123668] snd_hda_intel 0000:07:00.6: enabling device (0000 -> 0002)
[    2.133735] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC257: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    2.133741] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.133745] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    2.133746] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    2.133747] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    2.133748] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    2.161595] snd_rn_pci_acp3x 0000:07:00.5: enabling device (0000 -> 0002)
[    2.201606] acp_pdm_mach acp_pdm_mach.0: snd_soc_register_card(acp) failed: -517
[    3.097735] snd_hda_intel 0000:07:00.1: bound 0000:07:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

 

```

 

Gabriel

Reply
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

  • Posts: 407
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2420
  • Message 66 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-04, 16:35 PM

@jbaldassari,

 

you are correct, blacklisting, the modprobing makes the dmic & sound work.

 

But here like explained in my first workaround post it works by unblocking

S/PDIF too... I'm out of ideas right now, it is almost like we have different HW :)

 

Gabriel 

Reply
Options

9 Posts

06-02-2021

United States of America

7 Signins

25 Page Views

  • Posts: 9
  • Registered: ‎06-02-2021
  • Location: United States of America
  • Views: 25
  • Message 67 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-07, 6:07 AM

@ osnix wrote:

softdep snd_rn_pci_acp3x pre: snd_hda_codec_realtek

 

Adding the softdep did not work for me.  I also tried several alternatives to `snd_hda_codec_realtek`.  So far only blacklisting `snd_rn_pci_acp3x` and then manually loading it after desktop login has worked.

 

it is almost like we have different HW :)

 

Yes, what a strange problem :)

Reply
Options

52 Posts

02-28-2021

Isle of Man

68 Signins

460 Page Views

  • Posts: 52
  • Registered: ‎02-28-2021
  • Location: Isle of Man
  • Views: 460
  • Message 68 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-08, 9:15 AM

I'm not quite following what is going here but suddenly after yesterday system update on Arch, MIC disappear and is no longer available. It was working up until now but maybe was not properly recognized as you seem to suggest.

 

This is from logs:

 

alsactl[755]: alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfd3c8000 irq 108)
alsactl[755]: alsa-lib main.c:1402:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6

 

And these are relevant modules loaded on my system:

 

snd_soc_dmic           16384  1
snd_acp3x_rn           16384  0
snd_acp3x_pdm_dma      16384  1
snd_soc_core          364544  3 snd_acp3x_rn,snd_soc_dmic,snd_acp3x_pdm_dma
snd_hda_codec_realtek   176128  1
snd_compress           32768  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_codec_generic   114688  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     86016  1
snd_hda_intel          57344  4
snd_intel_dspcfg       28672  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_hda_codec         180224  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          114688  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               163840  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_acp3x_pdm_dma,snd_pcm_dmaengine
snd_timer              45056  1 snd_pcm
ledtrig_audio          16384  2 snd_hda_codec_generic,thinkpad_acpi
snd_rn_pci_acp3x       20480  0
snd                   122880  19 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
snd_pci_acp3x          20480  0
soundcore              16384  1 snd

 

If I can be of any help just let me know.

Reply
Options

52 Posts

02-28-2021

Isle of Man

68 Signins

460 Page Views

  • Posts: 52
  • Registered: ‎02-28-2021
  • Location: Isle of Man
  • Views: 460
  • Message 69 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-10, 13:39 PM

Finally the issue has been solved partially. Now the mic works and shows up on sound applet but...

  • Keyboard LED is always ON (but toggles)
  • alsa-lib errors on boot still present
Reply
Options

10 Posts

06-04-2021

Germany

18 Signins

200 Page Views

  • Posts: 10
  • Registered: ‎06-04-2021
  • Location: Germany
  • Views: 200
  • Message 70 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-11, 19:35 PM

Same issue on 20UG here, Mark.

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms

Most Liked Authors

(Last 7 days)

View All