]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: amd: amd_sdw: add machine driver quirk for Lenovo models
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Wed, 18 Feb 2026 10:45:34 +0000 (16:15 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 18 Feb 2026 17:12:38 +0000 (17:12 +0000)
This patch adds a quirk to include the codec amplifier function for Lenovo
models listed in the quirk table.

Note: In these models, the RT722 codec amplifier is excluded, and an
external amplifier is used instead.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20260218104734.3641481-3-Vijendar.Mukunda@amd.com
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-sdw-legacy-mach.c

index 9cb55d592c3c6bd88ad5413a8a4cc67da7cc863b..c93fc0920a3e6dce1b49c5a2d241026c3b73c3c4 100644 (file)
@@ -95,6 +95,22 @@ static const struct dmi_system_id soc_sdw_quirk_table[] = {
                },
                .driver_data = (void *)(ASOC_SDW_CODEC_SPKR),
        },
+       {
+               .callback = soc_sdw_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "21YW"),
+               },
+               .driver_data = (void *)(ASOC_SDW_CODEC_SPKR),
+       },
+       {
+               .callback = soc_sdw_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "21YX"),
+               },
+               .driver_data = (void *)(ASOC_SDW_CODEC_SPKR),
+       },
        {}
 };