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

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®