ASoC: pcm: Fix incorrect condition check for case SNDRV_PCM_TRIGGER_SUSPEND
authorNicolin Chen <Guangyu.Chen@freescale.com>
Mon, 12 May 2014 12:12:05 +0000 (20:12 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 20:16:06 +0000 (21:16 +0100)
commit868a6ca84ee7e547ae01a5e04e232e4a392c50b8
treebd57c5ca6eb72845ec20f348740c3790c87b38b5
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
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>
sound/soc/soc-pcm.c