ASoC: wcd934x: fix order of Slimbus unprepare/disable
[platform/kernel/linux-starfive.git] / sound / soc / codecs / wcd934x.c
index f56907d..28175c7 100644 (file)
@@ -1913,8 +1913,8 @@ static int wcd934x_trigger(struct snd_pcm_substream *substream, int cmd,
        case SNDRV_PCM_TRIGGER_STOP:
        case SNDRV_PCM_TRIGGER_SUSPEND:
        case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
-               slim_stream_unprepare(dai_data->sruntime);
                slim_stream_disable(dai_data->sruntime);
+               slim_stream_unprepare(dai_data->sruntime);
                break;
        default:
                break;