From: Wei Lixiang <weilixiang@kylinos.cn>
To: Vijendar Mukunda <Vijendar.Mukunda@amd.com>,
Mark Brown <broonie@kernel.org>
Cc: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Zhang Heng <zhangheng@kylinos.cn>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ASoC: amd: yc: drop duplicated DMI quirk entries
Date: Wed, 4 Nov 2026 09:50:58 +0800 [thread overview]
Message-ID: <20261104015058.6-1-weilixiang@kylinos.cn> (raw)
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
next reply other threads:[~2026-11-04 1:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 1:50 Wei Lixiang [this message]
2026-11-04 2:25 ` Zhang Heng
2026-11-05 0:28 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261104015058.6-1-weilixiang@kylinos.cn \
--to=weilixiang@kylinos.cn \
--cc=Vijendar.Mukunda@amd.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=venkataprasad.potturu@amd.com \
--cc=zhangheng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®