ASoC: qcom: sdw: do not restart soundwire ports for every prepare
[platform/kernel/linux-starfive.git] / sound / soc / qcom / sdw.c
index 1024951..1a41419 100644 (file)
@@ -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)