[PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries

From: Wei Lixiang

Date: Tue Nov 03 2026 - 20:52:08 EST


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