]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: intel: sof_sdw: add quirk for Dell SKU
authorMac Chiang <mac.chiang@intel.com>
Mon, 28 Oct 2024 07:26:30 +0000 (15:26 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Oct 2024 12:35:14 +0000 (12:35 +0000)
This patch adds a quirk to include the codec amplifier
function for this Dell SKU.

Note: In this SKU '0CF0', the RT722 codec amplifier is
excluded, and an external amplifier is used instead.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20241028072631.15536-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c

index a6e391791bad05680f972c71c10a4e3a56573708..5614e706a0bbedfb86d9a8a1cee0e8679ddb868a 100644 (file)
@@ -639,6 +639,14 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
                },
                .driver_data = (void *)(SOC_SDW_CODEC_SPKR),
        },
+       {
+               .callback = sof_sdw_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0CF0")
+               },
+               .driver_data = (void *)(SOC_SDW_CODEC_SPKR),
+       },
        /* Pantherlake devices*/
        {
                .callback = sof_sdw_quirk_cb,