mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
ALSA: usx2y: Fix unlocked snd_pcm_stop() call
commit 5be1efb4c2 upstream.
snd_pcm_stop() must be called in the PCM substream lock context.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4b06cd616f
commit
1ef08eb2a9
|
|
@ -273,7 +273,11 @@ static void usX2Y_clients_stop(struct usX2Ydev *usX2Y)
|
|||
struct snd_usX2Y_substream *subs = usX2Y->subs[s];
|
||||
if (subs) {
|
||||
if (atomic_read(&subs->state) >= state_PRERUNNING) {
|
||||
unsigned long flags;
|
||||
|
||||
snd_pcm_stream_lock_irqsave(subs->pcm_substream, flags);
|
||||
snd_pcm_stop(subs->pcm_substream, SNDRV_PCM_STATE_XRUN);
|
||||
snd_pcm_stream_unlock_irqrestore(subs->pcm_substream, flags);
|
||||
}
|
||||
for (u = 0; u < NRURBS; u++) {
|
||||
struct urb *urb = subs->urb[u];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user