diff options
Diffstat (limited to 'sound/soc/omap/omap-pcm.c')
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 4e6fef29b51..28cc3a61b63 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -235,6 +235,11 @@ static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd) | |||
235 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | 235 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: |
236 | prtd->period_index = -1; | 236 | prtd->period_index = -1; |
237 | omap_stop_dma(prtd->dma_ch); | 237 | omap_stop_dma(prtd->dma_ch); |
238 | /* Since we are using self linking, there is a | ||
239 | chance that the DMA as re-enabled the channel | ||
240 | just after disabling it */ | ||
241 | while (omap_get_dma_active_status(prtd->dma_ch)) | ||
242 | omap_stop_dma(prtd->dma_ch); | ||
238 | break; | 243 | break; |
239 | default: | 244 | default: |
240 | ret = -EINVAL; | 245 | ret = -EINVAL; |