ALSA: line6: Clear prev_fbuf and prev_fsize properly
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Jan 2015 15:17:26 +0000 (16:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2015 06:22:30 +0000 (07:22 +0100)
Clearing prev_fsize in line6_pcm_acquire() is pretty racy.
This can be called at any time while the stream is being played.
Rather better to clear prev_fbuf and prev_fsize at the proper place
like the stream stop for capture, and just after copying the monitor /
impulse data inside the spinlock.

Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/pcm.c
sound/usb/line6/playback.c

Simple merge
Simple merge