]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: amd: acp: Add DMI quirk for Lenovo Legion 7 15ASH11
authorJackie Dong <xy-jackie@139.com>
Mon, 27 Jul 2026 04:14:51 +0000 (12:14 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jul 2026 23:14:01 +0000 (00:14 +0100)
Lenovo Legion 7 15ASH11 with AMD RYZEN AI MAX+ 392 (Strix Halo, ACP
7.0) uses Realtek ALC287 series codec and no any DMIC connected by ACP.
All DMICs directly connet with ALC codec.

Without this quirk, Input Device of Gnome Sound settings shows Internal
Stereo Microphone and Digital Microphone by default. In fact, Digital
Microphone of ACP doesn't work due to no connecting with ALC287 codec,
the Internal Stereo Microphone as analog device based on snd_hda_intel
driver can work well.

Add a DMI quirk to override the flag to 0, consistent with the existing
entry for the Lenovo Yoga Pro 7 15ASH11.

Signed-off-by: Jackie Dong <xy-jackie@139.com>
Link: https://patch.msgid.link/20260727041452.16701-1-xy-jackie@139.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-config.c

index 0519465627258104caa26a04e31e842b9322ccc5..88e4230d66c3dd7183aaa95981ea84fa3411ccaa 100644 (file)
@@ -44,6 +44,13 @@ static const struct dmi_system_id acp70_acpi_flag_override_table[] = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "83W5"),
                },
        },
+       {
+               /* Lenovo Legion 7 15ASH11 (Strix Halo, ACP 7.0) */
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "83V9"),
+               },
+       },
        {
                .matches = {
                        DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK COMPUTER INC"),