Bug 218437 - Lenovo ThinkBook 16p Gen4 IRH no sound (reporting with more information)
Summary: Lenovo ThinkBook 16p Gen4 IRH no sound (reporting with more information)
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P3 high
Assignee: Jaroslav Kysela
URL:
Keywords:
: 217880 217930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-30 09:34 UTC by Huayu Zhang
Modified: 2024-05-11 15:16 UTC (History)
5 users (show)

See Also:
Kernel Version: v6.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
the output of acpidump of Lenovo ThinkBook 16p Gen4 IRH (4.07 MB, text/plain)
2024-01-30 09:34 UTC, Huayu Zhang
Details
the alsa-info output (33.49 KB, text/plain)
2024-01-30 09:36 UTC, Huayu Zhang
Details

Description Huayu Zhang 2024-01-30 09:34:55 UTC
Created attachment 305791 [details]
the output of acpidump of Lenovo ThinkBook 16p Gen4 IRH

The model called "Lenovo ThinkBook 16p Gen4 IRH" has no sound support.

Here is the output of alsa-info script: http://alsa-project.org/db/?f=529313bfbb432fd84bf9540c1f9e8be4eb084cf6

And the attached file is the output of `acpidump`.

The known SSID reported from community has following: 0x17aa38a9 and 0x17aa38ab.

Thanks a lot.
Comment 1 Huayu Zhang 2024-01-30 09:36:25 UTC
Created attachment 305792 [details]
the alsa-info output
Comment 2 Huayu Zhang 2024-01-30 09:37:04 UTC
*** Bug 217880 has been marked as a duplicate of this bug. ***
Comment 3 Huayu Zhang 2024-01-30 09:37:33 UTC
*** Bug 217930 has been marked as a duplicate of this bug. ***
Comment 4 Huayu Zhang 2024-01-30 09:42:22 UTC
The related discussion on Github Gist: https://gist.github.com/levihuayuzhang/6137ae4ae46301a355fd37c63e0d876a
Comment 5 Huayu Zhang 2024-01-30 09:47:14 UTC
Also mentioned in https://bugzilla.kernel.org/show_bug.cgi?id=216194#c106
Comment 6 vorminator 2024-02-17 10:47:37 UTC
Added CC to the Cirrus team (patches@opensource.cirrus.com), which recently fixed similar issues for several devices in the Linux kernel.
Comment 7 Huayu Zhang 2024-02-22 12:09:49 UTC
Cheers.
Comment 8 Huayu Zhang 2024-04-12 10:12:22 UTC
Hi, Thanks for Linux Sound teams helps.
But the patch in https://lore.kernel.org/linux-sound/20240301160154.158398-2-sbinding@opensource.cirrus.com/ may have some problem.

The upfacing (with higher frequency) speakers works well with the volumn changing.
But the downfacing (bass) speakers not controled by the system volumn control (alsa-mixer nor gnome&kde).

Wondering this is related to the kernel or should be reporterd to ALSA team?
Comment 9 sbinding 2024-04-12 15:13:44 UTC
Hi,

Firstly, just to clarify, but the issue you are seeing is related to the Volume Control, rather than audio playback?
Are you able to have audio playback via the amps at all?

Regarding the Volume Control, there is no mechanism for controlling the volume via the CS35L41 HDA driver. Instead, the intention is that volume is controlled via the HDA Codec itself, before the audio is sent to the amp.
The Windows driver works under the same principle.

It is likely that there is a configuration issue in the realtek hda driver (patch_realtek.c), specifically regarding the Fixup used for this model.
The laptops you are referring to use the fixup ALC287_FIXUP_CS35L41_I2C_2:

	SND_PCI_QUIRK(0x17aa, 0x38a9, "Thinkbook 16P", ALC287_FIXUP_CS35L41_I2C_2),
	SND_PCI_QUIRK(0x17aa, 0x38ab, "Thinkbook 16P", ALC287_FIXUP_CS35L41_I2C_2),

Which adds support for the CS35L41 amps via HDA supplied by the Realtek Codec.

Its possible that the realtek codec is not configured in a way that its volume control changes the volume on the stream it provides to the CS35L41 amps.
Unfortunately, you would have to speak to Realtek themselves to confirm how to do that.

There are several other fixups used by Lenovo laptops to connect to CS35L41 via I2C:
- ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD
- ALC287_FIXUP_CS35L41_I2C_2_THINKPAD_ACPI

It's possible that one of these may configure the Realtek codec correctly, otherwise you would have to contact Realtek.

Thanks,
Stefan
Comment 10 Huayu Zhang 2024-04-13 11:43:05 UTC
Thank you very much Stefan! Finally, it got fix now.

I test it with the config of 

 - ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD

as you've mentioned, and the volumn control now work as expected.

Thanks again for all you guys helps.

Note You need to log in before you can comment on or make changes to this bug.