Message ID | 1399896725-28083-1-git-send-email-Guangyu.Chen@freescale.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 868a6ca84ee7e547ae01a5e04e232e4a392c50b8 |
Headers | show |
On Mon, May 12, 2014 at 08:12:05PM +0800, Nicolin Chen wrote: > The regular state before we execute SNDRV_PCM_TRIGGER_SUSPEND should be > SNDRV_PCM_TRIGGER_START, not SNDRV_PCM_TRIGGER_STOP. Thus fix it. Applied, thanks.
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 88230ea..49930bd 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1666,7 +1666,7 @@ int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; break; 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; if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream))
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> --- sound/soc/soc-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)