From: Brent Lu Date: Thu, 12 Sep 2024 12:03:04 +0000 (+0800) Subject: ASoC: Intel: ehl_rt5660: do not check common_hdmi_codec_drv X-Git-Tag: v6.12-rc1~169^2~1^2~4^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c80bcc27557b5db4aca8a0c621fc7d5cd10cf7e;p=thirdparty%2Fkernel%2Flinux.git ASoC: Intel: ehl_rt5660: do not check common_hdmi_codec_drv The variable common_hdmi_codec_drv is always true on SOF platform so we could remove the reference in machine driver. Signed-off-by: Brent Lu Reviewed-by: Péter Ujfalusi Signed-off-by: Bard Liao Link: https://patch.msgid.link/20240912120308.134762-4-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/ehl_rt5660.c b/sound/soc/intel/boards/ehl_rt5660.c index 26289e8fdd873..90d93e667bd9e 100644 --- a/sound/soc/intel/boards/ehl_rt5660.c +++ b/sound/soc/intel/boards/ehl_rt5660.c @@ -256,8 +256,7 @@ static void hdmi_link_init(struct snd_soc_card *card, { int i; - if (mach->mach_params.common_hdmi_codec_drv && - (mach->mach_params.codec_mask & IDISP_CODEC_MASK)) { + if (mach->mach_params.codec_mask & IDISP_CODEC_MASK) { ctx->idisp_codec = true; return; }