ASoC: pcm: Fix incorrect condition check for case SNDRV_PCM_TRIGGER_SUSPEND
The regular state before we execute SNDRV_PCM_TRIGGER_SUSPEND should be SNDRV_PCM_TRIGGER_START, not SNDRV_PCM_TRIGGER_STOP. Thus fix it. Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
c9eaa447e7
commit
868a6ca84e
|
@ -1675,7 +1675,7 @@ int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream,
|
||||||
be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP;
|
be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP;
|
||||||
break;
|
break;
|
||||||
case SNDRV_PCM_TRIGGER_SUSPEND:
|
case SNDRV_PCM_TRIGGER_SUSPEND:
|
||||||
if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)
|
if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream))
|
if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream))
|
||||||
|
|
Loading…
Reference in a new issue