mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries
@ 2026-11-04  1:50 Wei Lixiang
  2026-11-04  2:25 ` Zhang Heng
  2026-11-05  0:28 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Lixiang @ 2026-11-04  1:50 UTC (permalink / raw)
  To: Vijendar Mukunda, Mark Brown
  Cc: Venkata Prasad Potturu, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Zhang Heng, linux-sound, linux-kernel

Two entries of yc_acp_quirk_table[] are present twice, so the second
copy of each can never match: dmi_first_match() returns the first hit
and the rest of the table is only walked when that lookup fails.

The LENOVO/21D0 entry was added twice in October 2022, once for the
ThinkBook 14/16 Gen 4+ ARA (a450b5c87392) and again ten days later for
the ThinkBook 14+ 2022 (a75481fa00cc).

The ASUSTeK/BM1403CDA entry was added for the ExpertBook BM1403CDA
(f200b2f9a810) and then duplicated when that fix was merged into the
development branch by commit 5a306bef5988 ("ASoC: Merge up fixes"),
which kept both copies while resolving the conflict.

Removing the redundant copies keeps the table easy to audit when new
quirks are added; the set of matched machines is unchanged.

Signed-off-by: Wei Lixiang <weilixiang@kylinos.cn>
---
 sound/soc/amd/yc/acp6x-mach.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c
index ae26524453e8..034957508e51 100644
--- a/sound/soc/amd/yc/acp6x-mach.c
+++ b/sound/soc/amd/yc/acp6x-mach.c
@@ -87,13 +87,6 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "21D0"),
 		}
 	},
-	{
-		.driver_data = &acp6x_card,
-		.matches = {
-			DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "21D0"),
-		}
-	},
 	{
 		.driver_data = &acp6x_card,
 		.matches = {
@@ -878,13 +871,6 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "BM1403CDA"),
 		}
 	},
-	{
-		.driver_data = &acp6x_card,
-		.matches = {
-			DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "BM1403CDA"),
-		}
-	},
 	{
 		.driver_data = &acp6x_card,
 		.matches = {
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries
  2026-11-04  1:50 [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries Wei Lixiang
@ 2026-11-04  2:25 ` Zhang Heng
  2026-11-05  0:28 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang Heng @ 2026-11-04  2:25 UTC (permalink / raw)
  To: weilixiang
  Cc: Vijendar.Mukunda, broonie, lgirdwood, linux-kernel, linux-sound,
	perex, tiwai, venkataprasad.potturu, zhangheng

Reviewed-by: Zhang Heng <zhangheng@kylinos.cn>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries
  2026-11-04  1:50 [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries Wei Lixiang
  2026-11-04  2:25 ` Zhang Heng
@ 2026-11-05  0:28 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-11-05  0:28 UTC (permalink / raw)
  To: Vijendar Mukunda, Wei Lixiang
  Cc: Venkata Prasad Potturu, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Zhang Heng, linux-sound, linux-kernel

On Wed, 04 Nov 2026 09:50:58 +0800, Wei Lixiang wrote:
> ASoC: amd: yc: drop duplicated DMI quirk entries

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4

Thanks!

[1/1] ASoC: amd: yc: drop duplicated DMI quirk entries
      https://git.kernel.org/broonie/sound/c/cf09d02dc0c4

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-05 10:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04  1:50 [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries Wei Lixiang
2026-11-04  2:25 ` Zhang Heng
2026-11-05  0:28 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®