commit | 3d3ae4454deb94bbad9ad0b2b559cbf6c0db4ec2 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Tue Jan 27 12:50:44 2015 +0100 |
committer | Takashi Iwai <tiwai@suse.de> | Wed Jan 28 07:22:23 2015 +0100 |
tree | 6d8e7f46288f73c352cfcedbaca9212524a4b11d | |
parent | d6ca69d82522cb0e59777deea3673c85c7db7f45 [diff] |
ALSA: line6: Fix racy loopback handling The impulse and monitor handling in submit_audio_out_urb() isn't protected thus this can be racy with the capture stream handling. This patch extends the range to protect via each stream's spinlock (now the whole submit_audio_*_urb() are covered), and take the capture stream lock additionally for the impulse and monitor handling part. Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>