]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:49 +0000 (07:20 -0500)
[ Upstream commit 3acf517e1ae05ef66561b7a2782690387ce46e21 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/amd/acp/acp-sdw-legacy-mach.c

index fae94b9edd5a3fed2ac6e78b62602f9b8a649ed5..4f92de33a71a0d947c38f56bb0862657143abb95 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),
+       },
        {}
 };