aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivasa Rao Mandadapu <[email protected]>2022-04-19 18:48:49 +0530
committerMark Brown <[email protected]>2022-04-26 15:13:42 +0100
commitc85f533d51ca42a461a61303322b0cf74fb75a6b (patch)
treef723658b5dbcc39654e9a109fb3e6d55b72cc1ed
parent3a2c9a553f4785555408b32d59ebfe125d8b9f09 (diff)
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 <[email protected]> Co-developed-by: Venkata Prasad Potturu <[email protected]> Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/qcom/sc7280.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/qcom/sc7280.c b/sound/soc/qcom/sc7280.c
index dfcb7ed44331..34cdb99d4ed6 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;
}