mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
saa7134: Fix unlocked snd_pcm_stop() call
commit e6355ad7b1
upstream.
snd_pcm_stop() must be called in the PCM substream lock context.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[wml: Backported to 3.4: Adjust filename]
Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c28414d349
commit
d54ecc0f3e
1 changed files with 2 additions and 0 deletions
|
@ -172,7 +172,9 @@ static void saa7134_irq_alsa_done(struct saa7134_dev *dev,
|
|||
dprintk("irq: overrun [full=%d/%d] - Blocks in %d\n",dev->dmasound.read_count,
|
||||
dev->dmasound.bufsize, dev->dmasound.blocks);
|
||||
spin_unlock(&dev->slock);
|
||||
snd_pcm_stream_lock(dev->dmasound.substream);
|
||||
snd_pcm_stop(dev->dmasound.substream,SNDRV_PCM_STATE_XRUN);
|
||||
snd_pcm_stream_unlock(dev->dmasound.substream);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue