summaryrefslogtreecommitdiff
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorBanajit Goswami <bgoswa@codeaurora.org>2013-02-14 18:24:08 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:09:54 -0700
commit7b3d99edbb0b03d7fb331db268dca2ca9d53246e (patch)
treecb804decc2fc2b36600a6281e4616074905d546b /sound/soc/soc-pcm.c
parent5d092152c955a90c1fb820692a522e801e94e767 (diff)
ASoC: Avoid putting stream state to STOP when stream paused
When multiple Front-end are using the same Back-end, putting the stream state for a Front-end to STOP will make the the Backend stream to be released, when the front-end is paused. This will avoid the Backend to be released (when another active front-end stream is present). Instead, put the stream state to PAUSED, which will keep the Back-end ON. Change-Id: Ic31bf90a09b605b91f6b9fe3c09361b1145581fb CRs-fixed: 428825 Signed-off-by: Banajit Goswami <bgoswa@codeaurora.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index c86dc96e8986..71be0806a174 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2072,9 +2072,11 @@ static int dpcm_fe_dai_do_trigger(struct snd_pcm_substream *substream, int cmd)
break;
case SNDRV_PCM_TRIGGER_STOP:
case SNDRV_PCM_TRIGGER_SUSPEND:
- case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP;
break;
+ case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
+ fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED;
+ break;
}
out: