From: Mac Chiang Date: Mon, 28 Oct 2024 07:26:29 +0000 (+0800) Subject: ASoC: sdw_utils: Add quirk to exclude amplifier function X-Git-Tag: v6.13-rc1~123^2~2^2~63^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=358ee2c1493e5d2c59820ffd8087eb0e367be4c6;p=thirdparty%2Flinux.git ASoC: sdw_utils: Add quirk to exclude amplifier function When SKUs use the multi-function codec, which integrates Headset, Amplifier and DMIC. The corresponding quirks provide options to support internal amplifier/DMIC or not. In the case of RT722, this SKU excludes the internal amplifier and use an additional amplifier instead. Signed-off-by: Mac Chiang Signed-off-by: Bard Liao Link: https://patch.msgid.link/20241028072631.15536-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sdw_utils/soc_sdw_utils.c b/sound/soc/sdw_utils/soc_sdw_utils.c index 8196177ff5e79..6610efe8af185 100644 --- a/sound/soc/sdw_utils/soc_sdw_utils.c +++ b/sound/soc/sdw_utils/soc_sdw_utils.c @@ -418,6 +418,8 @@ struct asoc_sdw_codec_info codec_info_list[] = { .num_controls = ARRAY_SIZE(generic_spk_controls), .widgets = generic_spk_widgets, .num_widgets = ARRAY_SIZE(generic_spk_widgets), + .quirk = SOC_SDW_CODEC_SPKR, + .quirk_exclude = true, }, { .direction = {false, true},