* Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U
@ 2023-11-16 11:10 Bagas Sanjaya
2023-11-16 18:36 ` Oliver Sieber
0 siblings, 1 reply; 6+ messages in thread
From: Bagas Sanjaya @ 2023-11-16 11:10 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Sound System,
Linux ALSA Development
Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
ollisieber
Hi,
I notice a bug report on Bugzilla [1]. Quoting from it:
> Hey,sound/soc/amd/renoir/rn-pci-acp3x.c has a hard-coded list of quirks. It seems like some product IDs may be missing. In my case, I am using a Lenovo Thinkpad t14s gen2 with an AMD Ryzen 7 PRO 5850U.
> My audio output is fine but my internal microphone cannot be found.
>
> Running `dmidecode` yields:
>
> Handle 0x000F, DMI type 1, 27 bytes
> System Information
> Manufacturer: LENOVO
> Product Name: 20XGS1KT02
> Version: ThinkPad T14s Gen 2a
>
> Could it be that one may have to add the product ID "20XGS1KT02" to the hard-coded list of quirks in rn-pci-acp3x.c?
>
>
> It seems as there have been similar problems in the past, e.g. https://bugzilla.kernel.org/show_bug.cgi?id=216270.
See Bugzilla for the full thread.
ollisieber, can you send the quirk patch?
Thanks.
[1]: https://bugzilla.kernel.org/show_bug.cgi?id=218148
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U 2023-11-16 11:10 Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U Bagas Sanjaya @ 2023-11-16 18:36 ` Oliver Sieber 2023-11-16 23:34 ` Bagas Sanjaya 0 siblings, 1 reply; 6+ messages in thread From: Oliver Sieber @ 2023-11-16 18:36 UTC (permalink / raw) To: Bagas Sanjaya, Linux Kernel Mailing List, Linux Sound System, Linux ALSA Development Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai [-- Attachment #1: Type: text/plain, Size: 1116 bytes --] Hi, thanks for your fast answer. I added my proposed patch as attachment. Please be aware that this is my first kernel patch. Thanks a lot! On 16.11.23 12:10, Bagas Sanjaya wrote: > Hi, > > I notice a bug report on Bugzilla [1]. Quoting from it: > >> Hey,sound/soc/amd/renoir/rn-pci-acp3x.c has a hard-coded list of quirks. It seems like some product IDs may be missing. In my case, I am using a Lenovo Thinkpad t14s gen2 with an AMD Ryzen 7 PRO 5850U. >> My audio output is fine but my internal microphone cannot be found. >> >> Running `dmidecode` yields: >> >> Handle 0x000F, DMI type 1, 27 bytes >> System Information >> Manufacturer: LENOVO >> Product Name: 20XGS1KT02 >> Version: ThinkPad T14s Gen 2a >> >> Could it be that one may have to add the product ID "20XGS1KT02" to the hard-coded list of quirks in rn-pci-acp3x.c? >> >> >> It seems as there have been similar problems in the past, e.g. https://bugzilla.kernel.org/show_bug.cgi?id=216270. > See Bugzilla for the full thread. > > ollisieber, can you send the quirk patch? > > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218148 > [-- Attachment #2: patch.diff --] [-- Type: text/x-patch, Size: 529 bytes --] diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c index b3812b70f5f9..754e24d55e6f 100644 --- a/sound/soc/amd/renoir/rn-pci-acp3x.c +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c @@ -199,6 +199,13 @@ static const struct dmi_system_id rn_acp_quirk_table[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "20NLCTO1WW"), } }, + { + /* Lenovo ThinkPad T14s Gen 2 */ + .matches = { + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "20XGS1KT02"), + } + }, {} }; ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U 2023-11-16 18:36 ` Oliver Sieber @ 2023-11-16 23:34 ` Bagas Sanjaya [not found] ` <78149e00-12b5-459b-8754-a17dd974916d@gmail.com> 0 siblings, 1 reply; 6+ messages in thread From: Bagas Sanjaya @ 2023-11-16 23:34 UTC (permalink / raw) To: Oliver Sieber, Linux Kernel Mailing List, Linux Sound System, Linux ALSA Development Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai On 11/17/23 01:36, Oliver Sieber wrote: > Hi, > > thanks for your fast answer. I added my proposed patch as attachment. > > Please be aware that this is my first kernel patch. > Please don't top-post; reply inline with appropriate context instead. Your patch is attached, please send it inline instead. See Documentation/process/submitting-patches.rst for how to do that. Thanks. -- An old man doll... just what I always wanted! - Clara ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <78149e00-12b5-459b-8754-a17dd974916d@gmail.com>]
* Re: Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U [not found] ` <78149e00-12b5-459b-8754-a17dd974916d@gmail.com> @ 2023-11-17 13:32 ` Takashi Iwai [not found] ` <826bb4f4-c6ea-4c45-a0e0-5ca826f0cfe0@gmail.com> 0 siblings, 1 reply; 6+ messages in thread From: Takashi Iwai @ 2023-11-17 13:32 UTC (permalink / raw) To: Oliver Sieber Cc: Bagas Sanjaya, Linux Kernel Mailing List, Linux Sound System, Linux ALSA Development, Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai On Fri, 17 Nov 2023 08:17:48 +0100, Oliver Sieber wrote: > > > Hi, > > in the following I provide my proposed patch for the bug report on Bugzilla > [1]. Let me quote from it: > > Hey,sound/soc/amd/renoir/rn-pci-acp3x.c has a hard-coded list of quirks. It seems like some product IDs may be missing. In my case, I am using a Lenovo Thinkpad t14s gen2 with an AMD Ryzen 7 PRO 5850U. > My audio output is fine but my internal microphone cannot be found. > > Running `dmidecode` yields: > > Handle 0x000F, DMI type 1, 27 bytes > System Information > Manufacturer: LENOVO > Product Name: 20XGS1KT02 > Version: ThinkPad T14s Gen 2a > > Could it be that one may have to add the product ID "20XGS1KT02" to the hard-coded list of quirks in rn-pci-acp3x.c? > > It seems as there have been similar problems in the past, e.g. https://bugzilla.kernel.org/show_bug.cgi?id=216270. > > My proposed diff looks as follows: > > diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/ > rn-pci-acp3x.c > index b3812b70f5f9..754e24d55e6f 100644 > --- a/sound/soc/amd/renoir/rn-pci-acp3x.c > +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c > @@ -199,6 +199,13 @@ static const struct dmi_system_id rn_acp_quirk_table[] = > { > DMI_EXACT_MATCH(DMI_BOARD_NAME, "20NLCTO1WW"), > } > }, > + { > + /* Lenovo ThinkPad T14s Gen 2 */ > + .matches = { > + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "LENOVO"), > + DMI_EXACT_MATCH(DMI_BOARD_NAME, "20XGS1KT02"), > + } > + }, > {} > }; > > Please have in mind that this is my first patch for the kernel. The kernel patch should be in a proper format, so that it can be merged to the upstream. e.g. The Subject line should have a brief description with the proper prefix for the corresponding subsystem (in your case, something like "ASoC: amd:"). It'll follow the patch description, as well as your proper Signed-off-by tag. The details are found in https://docs.kernel.org/process/submitting-patches.html Could you resubmit the patch in a proper format? thanks, Takashi ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <826bb4f4-c6ea-4c45-a0e0-5ca826f0cfe0@gmail.com>]
* Re: Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U [not found] ` <826bb4f4-c6ea-4c45-a0e0-5ca826f0cfe0@gmail.com> @ 2023-11-19 13:51 ` Bagas Sanjaya 2023-11-20 8:18 ` [PATCH] Subject: ASoC: AMD Renoir - add DMI entry for Lenovo ThinkPad T14s Gen 2 Oliver Sieber 0 siblings, 1 reply; 6+ messages in thread From: Bagas Sanjaya @ 2023-11-19 13:51 UTC (permalink / raw) To: Oliver Sieber, Takashi Iwai Cc: Linux Kernel Mailing List, Linux Sound System, Linux ALSA Development, Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai [-- Attachment #1: Type: text/plain, Size: 2676 bytes --] On Sun, Nov 19, 2023 at 09:54:32AM +0100, Oliver Sieber wrote: > Hi, > > in the following I provide my proposed patch for the bug report on Bugzilla > [1]. Let me quote from it: > > Hey,sound/soc/amd/renoir/rn-pci-acp3x.c has a hard-coded list of quirks. It seems like some product IDs may be missing. In my case, I am using a Lenovo Thinkpad t14s gen2 with an AMD Ryzen 7 PRO 5850U. > > My audio output is fine but my internal microphone cannot be found. > > > > Running `dmidecode` yields: > > > > Handle 0x000F, DMI type 1, 27 bytes > > System Information > > Manufacturer: LENOVO > > Product Name: 20XGS1KT02 > > Version: ThinkPad T14s Gen 2a > > > > Could it be that one may have to add the product ID "20XGS1KT02" to the hard-coded list of quirks in rn-pci-acp3x.c? > > > > > > It seems as there have been similar problems in the past, e.g.https://bugzilla.kernel.org/show_bug.cgi?id=216270. > > My proposed diff looks as follows: > > Subject: ASoC: AMD Renoir - add DMI entry for Lenovo ThinkPad T14s Gen 2 > From: Oliver Sieber > The ThinkPad T14s Gen 2 laptop does not have the internal digital > microphone connected to the AMD's ACP bridge, but it's advertised > via BIOS. The internal microphone is connected to the HDA codec. > > Use DMI to block the microphone PCM device for this platform. > > Signed-off-by: Oliver Sieber <ollisieber@gmail.com> > --- > diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c > b/sound/soc/amd/renoir/rn-pci-acp3x.c > index b3812b70f5f9..754e24d55e6f 100644 > --- a/sound/soc/amd/renoir/rn-pci-acp3x.c > +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c > @@ -199,6 +199,13 @@ static const struct dmi_system_id rn_acp_quirk_table[] > = { > DMI_EXACT_MATCH(DMI_BOARD_NAME, "20NLCTO1WW"), > } > }, > + { > + /* Lenovo ThinkPad T14s Gen 2 */ > + .matches = { > + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "LENOVO"), > + DMI_EXACT_MATCH(DMI_BOARD_NAME, "20XGS1KT02"), > + } > + }, > {} > > }; > Hi Oliver, Did you forget Takashi's suggestion to follow formal patch submission procedure [1]? Hint: It is suggested to use git-send-email(1) when sending patches, as it handles them as-is (e.g. no wordwrapping, tabs preserved). Thanks. [1]: https://lore.kernel.org/alsa-devel/87sf54jyjl.wl-tiwai@suse.de/ -- An old man doll... just what I always wanted! - Clara [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] Subject: ASoC: AMD Renoir - add DMI entry for Lenovo ThinkPad T14s Gen 2 2023-11-19 13:51 ` Bagas Sanjaya @ 2023-11-20 8:18 ` Oliver Sieber 0 siblings, 0 replies; 6+ messages in thread From: Oliver Sieber @ 2023-11-20 8:18 UTC (permalink / raw) To: bagasdotme Cc: alsa-devel, broonie, lgirdwood, linux-kernel, linux-sound, ollisieber, perex, tiwai, tiwai The ThinkPad T14s Gen 2 latop does not have the internal digital microphone connected to the AMD's ACP bridge, but it's advertised via BIOS. The internal microphone is connected to the HDA codec. Use DMI to block the microphone PCM device for this platform. Signed-off-by: Oliver Sieber <ollisieber@gmail.com> --- sound/soc/amd/renoir/rn-pci-acp3x.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c index b3812b70f5f9..754e24d55e6f 100644 --- a/sound/soc/amd/renoir/rn-pci-acp3x.c +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c @@ -199,6 +199,13 @@ static const struct dmi_system_id rn_acp_quirk_table[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "20NLCTO1WW"), } }, + { + /* Lenovo ThinkPad T14s Gen 2 */ + .matches = { + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "20XGS1KT02"), + } + }, {} }; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-11-20 8:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16 11:10 Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U Bagas Sanjaya
2023-11-16 18:36 ` Oliver Sieber
2023-11-16 23:34 ` Bagas Sanjaya
[not found] ` <78149e00-12b5-459b-8754-a17dd974916d@gmail.com>
2023-11-17 13:32 ` Takashi Iwai
[not found] ` <826bb4f4-c6ea-4c45-a0e0-5ca826f0cfe0@gmail.com>
2023-11-19 13:51 ` Bagas Sanjaya
2023-11-20 8:18 ` [PATCH] Subject: ASoC: AMD Renoir - add DMI entry for Lenovo ThinkPad T14s Gen 2 Oliver Sieber
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox