From cde9fe99ac35a72b6d8590a264d6fa1a390d6dec Mon Sep 17 00:00:00 2001 From: Brent Lu Date: Wed, 30 Aug 2023 02:18:33 +0800 Subject: [PATCH] fixup! ASoC: Intel: sof_rt5682: use ssp-common module to detect codec c3184771f965 ("ASoC: Intel: sof_rt5682: use ssp-common module to detect codec") uses codec_type to identify speaker amplifier type which is incorrect. Should use amp_type instead. Signed-off-by: Brent Lu --- sound/soc/intel/boards/sof_rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index 7181eb8251d99e..e817be1edaba03 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -508,7 +508,7 @@ static int sof_card_late_probe(struct snd_soc_card *card) struct sof_hdmi_pcm *pcm; int err; - if (ctx->codec_type == CODEC_MAX98373) { + if (ctx->amp_type == CODEC_MAX98373) { /* Disable Left and Right Spk pin after boot */ snd_soc_dapm_disable_pin(dapm, "Left Spk"); snd_soc_dapm_disable_pin(dapm, "Right Spk");