From: Srinivasa Rao Mandadapu Date: Tue, 19 Apr 2022 13:18:49 +0000 (+0530) Subject: ASoC: qcom: SC7280: Update machine driver startup, shutdown callbacks X-Git-Tag: v5.19-rc1~152^2~2^2~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c85f533d51ca42a461a61303322b0cf74fb75a6b;p=thirdparty%2Fkernel%2Flinux.git ASoC: qcom: SC7280: Update machine driver startup, shutdown callbacks Update machine driver startup, shutdown callback functions to avoid sound card registration failure on other platforms. Without this change, platforms with WCD codec is failing to register sound card. Fixes: c5198db82d4c ("ASoC: qcom: Add driver support for ALC5682I-VS") Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Link: https://lore.kernel.org/r/1650374329-7279-1-git-send-email-quic_srivasam@quicinc.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/sc7280.c b/sound/soc/qcom/sc7280.c index dfcb7ed44331d..34cdb99d4ed6a 100644 --- a/sound/soc/qcom/sc7280.c +++ b/sound/soc/qcom/sc7280.c @@ -291,13 +291,7 @@ static void sc7280_snd_shutdown(struct snd_pcm_substream *substream) SNDRV_PCM_STREAM_PLAYBACK); } break; - case MI2S_SECONDARY: - break; - case LPASS_DP_RX: - break; default: - dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, - cpu_dai->id); break; } } @@ -312,14 +306,8 @@ static int sc7280_snd_startup(struct snd_pcm_substream *substream) case MI2S_PRIMARY: ret = sc7280_rt5682_init(rtd); break; - case MI2S_SECONDARY: - break; - case LPASS_DP_RX: - break; default: - dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, - cpu_dai->id); - return -EINVAL; + break; } return ret; }