]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: Intel: sof_sdw: Add quirk for cs42l43 system using host DMICs
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 16 Oct 2024 03:03:43 +0000 (11:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:49 +0000 (20:03 +0100)
[ Upstream commit ea657f6b24e11651a39292082be84ad81a89e525 ]

Add quirk to inform the machine driver to not bind in the cs42l43
microphone DAI link.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20241016030344.13535-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/intel/boards/sof_sdw.c

index 4a0ab50d1e50dcb5737bbf95db7d6e690c31db20..fa937cc4d8cd10ab5716d06487ea44151f633cc1 100644 (file)
@@ -580,6 +580,15 @@ 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, "LENOVO"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "233C")
+               },
+               /* Note this quirk excludes the CODEC mic */
+               .driver_data = (void *)(SOC_SDW_CODEC_MIC),
+       },
 
        /* ArrowLake devices */
        {