]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:57 +0000 (21:17 -0600)
commit00242ce789f0ffe4ce01fa90f3badc9f86b72fe2
tree45a3eae5a26a23a6a915cd8bb4509729277541b3
parent3db0fc8919bd422d0453e2f068f55feb4b41021e
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>
(cherry picked from commit 868a6ca84ee7e547ae01a5e04e232e4a392c50b8)
sound/soc/soc-pcm.c