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

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

  • Posts: 389
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2355
  • Message 51 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 15:36 PM

@ Iluha wrote:

@ osnix wrote:

~$ sudo journalctl | grep Mic= | grep -v snd_hda_codec_realtek

< nothing >

 

Same here, BUT I have it both working: HDMI Audio and Mic.

BTW: Gnome Settings reports a "Digital Microphone" (see screenshot)

 

I' done no custom settings. Just a fully updated Fedora 34 with default kernel (currently 5.12.8) and GRUB.

 

 

cat /sys/devices/virtual/dmi/id/{board_name,product_sku}
20UJS00K00
LENOVO_MT_20UJ_BU_Think_FM_ThinkPad T14s Gen 1

 

 

It looks like it depends on what SKU that is. I don't have access to any docs so I cannot tell

which may work and which may not. P14s seems to get either HDMI sound or the MIC.

Reply
Options

51 Posts

08-19-2020

Germany

87 Signins

555 Page Views

  • Posts: 51
  • Registered: ‎08-19-2020
  • Location: Germany
  • Views: 555
  • Message 52 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 15:43 PM

And here is output from pipewire for ACP mic device:

 

pw-dump | jq '.[].info.props | select(."device.profile.description" == "Digital Microphone" )' 
{
  "object.path": "alsa:pcm:1:hw:acp:capture",
  "api.alsa.path": "hw:acp",
  "api.alsa.pcm.card": 1,
  "api.alsa.pcm.stream": "capture",
  "audio.channels": 2,
  "audio.position": "FL,FR",
  "device.routes": 1,
  "alsa.mixer_device": "hw:Generic_1",
  "alsa.resolution_bits": 32,
  "device.api": "alsa",
  "device.class": "sound",
  "alsa.class": "generic",
  "alsa.subclass": "generic-mix",
  "alsa.name": 0,
  "alsa.id": "DMIC capture dmic-hifi-0",
  "alsa.subdevice": 0,
  "alsa.subdevice_name": "subdevice #0",
  "alsa.device": 0,
  "alsa.card": 2,
  "alsa.card_name": "acp",
  "alsa.long_card_name": "acp",
  "alsa.driver_name": "snd_acp3x_rn",
  "device.profile.name": "HiFi: hw:acp: source",
  "device.profile.description": "Digital Microphone",
  "card.profile.device": 1,
  "device.id": 42,
  "factory.name": "api.alsa.pcm.source",
  "priority.driver": 1936,
  "priority.session": 1936,
  "media.class": "Audio/Source",
  "node.nick": "HD-Audio Generic",
  "node.name": "alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source",
  "node.description": "Family 17h (Models 10h-1fh) HD Audio Controller Digital Microphone",
  "device.icon-name": "audio-input-microphone",
  "node.pause-on-idle": false,
  "factory.id": 18,
  "client.id": 31,
  "node.driver": true,
  "factory.mode": "split",
  "audio.adapt.follower": 0,
  "library.name": "audioconvert/libspa-audioconvert",
  "object.id": 51,
  "node.max-latency": "1024/48000"
}

 

 

Reply
Options

51 Posts

08-19-2020

Germany

87 Signins

555 Page Views

  • Posts: 51
  • Registered: ‎08-19-2020
  • Location: Germany
  • Views: 555
  • Message 53 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 16:36 PM

@ osnix   are you using pipewire?

If so, could you check what inputs/outputs does it detects (possible toggling your workaround for HDMI-Audio)?

 


pw-play --list-targets
Available targets ("*" denotes default): alsa_output.pci-0000_07_00.1.HiFi__hw_Generic_7__sink
        50: description="Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones" prio=936
        61: description="HD-Audio Generic HDMI3 Output" prio=616
*       47: description="HD-Audio Generic HDMI2 Output" prio=632
        83: description="HD-Audio Generic HDMI1 Output" prio=696

 

 

pw-record --list-targets                                                                                                                                                                                                
Available targets ("*" denotes default): alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source
*       51: description="Family 17h (Models 10h-1fh) HD Audio Controller Digital Microphone" prio=1936
        52: description="Family 17h (Models 10h-1fh) HD Audio Controller Headphones Stereo Microphone" prio=1936

 

 

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 54 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 17:10 PM

@osnix wrote:

It looks like we either get sound or the MIC.

That's what I'm seeing as well.  You can get the MIC input or speaker output, but not both (even though both analog mic and speaker output worked for me previously).

However, with the patch, one could boot with =1 instead of =0 and force the MIC.

I'll test this again, but booting with `=1` always seems to break my speaker output regardless of whether the patch is applied.  Are you on BIOS 1.32?   Maybe I'll try upgrading to 1.32 again.

 

@ Iluha wrote:

I' done no custom settings. Just a fully updated Fedora 34 with default kernel (currently 5.12.8) and GRUB.

I see that you're running a T14s, so maybe there is some difference between the T14s and P14s there.

Which BIOS version are you on?

Could you maybe post some info like `dmesg` output, kernel config, boot parameters, etc.?

Reply
Options

51 Posts

08-19-2020

Germany

87 Signins

555 Page Views

  • Posts: 51
  • Registered: ‎08-19-2020
  • Location: Germany
  • Views: 555
  • Message 55 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 17:26 PM

@ jbaldassari wrote:

I see that you' running a T14s, so maybe there is some difference between the T14s and P14s there.

Which BIOS version are you on?

Could you maybe post some info like `dmesg` output, kernel config, boot parameters, etc.?

 

 

Now I'm on 1.32, but had noticed no (audio) problems with 1.29 before.

 

Kernel config is default for distro, so this should be it.

 

Boot parameters are also default:

 

dmesg | head -n 2
[    0.000000] Linux version 5.12.8-300.fc34.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.1.1 20210428 (Red Hat 11.1.1-1), GNU ld version 2.35.1-41.fc34) #1 SMP Fri May 28 15:20:54 UTC 2021
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.12.8-300.fc34.x86_64 root=/dev/mapper/t14s-root ro resume=/dev/mapper/t14s-swap rd.lvm.lv=t14s/root rd.luks.uuid=luks-3bxxxxxxxxb4 rd
.lvm.lv=t14s/swap rhgb quiet

 

Audio related dmesg (HDMI was not connected on boot):

 

 

 

dmesg | grep -i audio
[    0.428744] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[   18.160136] snd_hda_intel 0000:07:00.1: Handle vga_switcheroo audio client
[   18.182513] snd_hda_intel 0000:07:00.1: bound 0000:07:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[   18.199582] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input11
[   18.199697] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input12
[   18.199824] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input13
[   18.234833] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC257: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[   18.234843] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   18.234847] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   18.234850] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[   18.234852] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[   18.234854] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[   18.289707] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1/input14
[   18.289851] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1/input15

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

  • Posts: 389
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2355
  • Message 56 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 17:30 PM

@ Iluha wrote:

@ osnix   are you using pipewire?

If so, could you check what inputs/outputs does it detects (possible toggling your workaround for HDMI-Audio)?

 

 

 

 

             No, I don't but I can set it up tonight or tomorrow. 

             Traveling right now.

 

 

 


pw-play --list-targets
Available targets ("*" denotes default): alsa_output.pci-0000_07_00.1.HiFi__hw_Generic_7__sink
        50: description="Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones" prio=936
        61: description="HD-Audio Generic HDMI3 Output" prio=616
*       47: description="HD-Audio Generic HDMI2 Output" prio=632
        83: description="HD-Audio Generic HDMI1 Output" prio=696

 

 

pw-record --list-targets                                                                                                                                                                                                
Available targets ("*" denotes default): alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source
*       51: description="Family 17h (Models 10h-1fh) HD Audio Controller Digital Microphone" prio=1936
        52: description="Family 17h (Models 10h-1fh) HD Audio Controller Headphones Stereo Microphone" prio=1936

 

 

 

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

  • Posts: 389
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2355
  • Message 57 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 17:34 PM

@ jbaldassari wrote:

@osnix wrote:

It looks like we either get sound or the MIC.

That' what I' seeing as well.  You can get the MIC input or speaker output, but not both (even though both analog mic and speaker output worked for me previously).

However, with the patch, one could boot with =1 instead of =0 and force the MIC.

I' test this again, but booting with `=1` always seems to break my speaker output regardless of whether the patch is applied.  Are you on BIOS 1.32?   Maybe I' try upgrading to 1.32 again.

 

 

        Sorry for not being accurate. Yes you either break the one or the other, what I meant is even with the patch in one

         could revert to no-sound-but-mic by swapping 0 to 1.

 

 

 

Reply
Options

687 Posts

07-22-2019

Canada

477 Signins

5456 Page Views

  • Posts: 687
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5456
  • Message 58 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 17:46 PM

I've reverted the patch upstream (was really unfortunate - it had just been accepted...sigh)

 

I'll do some more digging and figure out how we get the correct solution for this.

 

Mark

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

  • Posts: 389
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2355
  • Message 59 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-02, 18:40 PM

@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.

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 60 of 71

Re:T14s AMD no HDMI audio on Linux

2021-06-03, 6:41 AM

@ 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?

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