]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: sdw_utils: Add a quirk to allow the cs42l43 mic DAI to be ignored
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 16 Oct 2024 03:03:42 +0000 (11:03 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 17 Oct 2024 11:11:46 +0000 (12:11 +0100)
To support some systems using host microphones add a quirk to allow the
cs42l43 microphone DAI link to be ignored.

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-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc_sdw_utils.h
sound/soc/sdw_utils/soc_sdw_utils.c

index e16fccd48e6bc82970ee4e2fc2985d601a9fad08..a25f94d6eb678cd03ebbff8f60e43fdd983f0243 100644 (file)
@@ -28,6 +28,7 @@
  *   - SOC_SDW_CODEC_SPKR | SOF_SIDECAR_AMPS - Not currently supported
  */
 #define SOC_SDW_SIDECAR_AMPS           BIT(16)
+#define SOC_SDW_CODEC_MIC              BIT(17)
 
 #define SOC_SDW_UNUSED_DAI_ID          -1
 #define SOC_SDW_JACK_OUT_DAI_ID                0
index f86d55cdaaf68a2c06c7de0b8faae263fb75e10e..6f6bff0f69fcccc871813a823f421a2bf5486ddc 100644 (file)
@@ -528,6 +528,8 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                                .rtd_init = asoc_sdw_cs42l43_dmic_rtd_init,
                                .widgets = generic_dmic_widgets,
                                .num_widgets = ARRAY_SIZE(generic_dmic_widgets),
+                               .quirk = SOC_SDW_CODEC_MIC,
+                               .quirk_exclude = true,
                        },
                        {
                                .direction = {false, true},