diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-12-08 05:33:24 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-08 05:33:24 -0500 |
commit | 77de61c3975da6f2200935c341e84018ece6ce36 (patch) | |
tree | 36508cf93ef62a80c988fa18c86eda1274e03877 /sound/soc | |
parent | 66139a48cee1530c91f37c145384b4ee7043f0b7 (diff) | |
parent | 048184540171672a724ab8f8bada7fcc0762f5c6 (diff) |
Merge branch 'for-next' into for-linus
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/atmel/atmel-pcm-dma.c | 4 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_dma.c | 9 |
2 files changed, 2 insertions, 11 deletions
diff --git a/sound/soc/atmel/atmel-pcm-dma.c b/sound/soc/atmel/atmel-pcm-dma.c index b79a2a864513..33fb3bb133df 100644 --- a/sound/soc/atmel/atmel-pcm-dma.c +++ b/sound/soc/atmel/atmel-pcm-dma.c | |||
@@ -80,9 +80,7 @@ static void atmel_pcm_dma_irq(u32 ssc_sr, | |||
80 | 80 | ||
81 | /* stop RX and capture: will be enabled again at restart */ | 81 | /* stop RX and capture: will be enabled again at restart */ |
82 | ssc_writex(prtd->ssc->regs, SSC_CR, prtd->mask->ssc_disable); | 82 | ssc_writex(prtd->ssc->regs, SSC_CR, prtd->mask->ssc_disable); |
83 | snd_pcm_stream_lock(substream); | 83 | snd_pcm_stop_xrun(substream); |
84 | snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN); | ||
85 | snd_pcm_stream_unlock(substream); | ||
86 | 84 | ||
87 | /* now drain RHR and read status to remove xrun condition */ | 85 | /* now drain RHR and read status to remove xrun condition */ |
88 | ssc_readx(prtd->ssc->regs, SSC_RHR); | 86 | ssc_readx(prtd->ssc->regs, SSC_RHR); |
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index a609aafc994d..b2b108805b24 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c | |||
@@ -151,14 +151,7 @@ static const struct snd_pcm_hardware fsl_dma_hardware = { | |||
151 | */ | 151 | */ |
152 | static void fsl_dma_abort_stream(struct snd_pcm_substream *substream) | 152 | static void fsl_dma_abort_stream(struct snd_pcm_substream *substream) |
153 | { | 153 | { |
154 | unsigned long flags; | 154 | snd_pcm_stop_xrun(substream); |
155 | |||
156 | snd_pcm_stream_lock_irqsave(substream, flags); | ||
157 | |||
158 | if (snd_pcm_running(substream)) | ||
159 | snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN); | ||
160 | |||
161 | snd_pcm_stream_unlock_irqrestore(substream, flags); | ||
162 | } | 155 | } |
163 | 156 | ||
164 | /** | 157 | /** |