diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2023-03-23 17:44:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-06 15:45:12 +0200 |
commit | e2e530886359246ae782c779be248c59bc2ed111 (patch) | |
tree | 9291c18b364fe8074957efd8763840fed4dc766d /sound/soc/qcom | |
parent | ASoC: qcom: q6apm-lpass-dai: close graphs before opening a new one (diff) | |
download | linux-e2e530886359246ae782c779be248c59bc2ed111.tar.xz linux-e2e530886359246ae782c779be248c59bc2ed111.zip |
ASoC: qcom: sdw: do not restart soundwire ports for every prepare
unpreparing/disabling and preparing/reenabling soundwire ports is not required
for every prepare call, this add lots of click and pop noise if we do this in
middle of playback or capture.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230323164403.6654-3-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r-- | sound/soc/qcom/sdw.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/qcom/sdw.c b/sound/soc/qcom/sdw.c index 10249519a39e..1a41419c7eb8 100644 --- a/sound/soc/qcom/sdw.c +++ b/sound/soc/qcom/sdw.c @@ -32,11 +32,8 @@ int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream, return 0; } - if (*stream_prepared) { - sdw_disable_stream(sruntime); - sdw_deprepare_stream(sruntime); - *stream_prepared = false; - } + if (*stream_prepared) + return 0; ret = sdw_prepare_stream(sruntime); if (ret) |