linux/sound/usb/line6
Takashi Iwai f2bb614bb6 ALSA: line6: Clear prev_fbuf and prev_fsize properly
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>
2015-01-28 07:22:30 +01:00
..
capture.c ALSA: line6: Fix racy loopback handling 2015-01-28 07:22:23 +01:00
capture.h ALSA: line6: Consolidate PCM stream buffer allocation and free 2015-01-28 07:21:39 +01:00
driver.c ALSA: line6: Minor tidy up in line6_probe() 2015-01-28 07:22:16 +01:00
driver.h ALSA: line6: Let snd_card_new() allocate private data 2015-01-28 07:22:07 +01:00
Kconfig ALSA: line6/toneport: Implement LED controls via LED class 2015-01-28 07:20:08 +01:00
Makefile ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
midi.c ALSA: line6: Reduce superfluous spinlock in midi.c 2015-01-28 07:20:34 +01:00
midi.h ALSA: line6: Reduce superfluous spinlock in midi.c 2015-01-28 07:20:34 +01:00
midibuf.c ALSA: line6: Remove driver version from header comment 2015-01-20 09:52:40 +01:00
midibuf.h ALSA: line6: Remove driver version from header comment 2015-01-20 09:52:40 +01:00
pcm.c ALSA: line6: Clear prev_fbuf and prev_fsize properly 2015-01-28 07:22:30 +01:00
pcm.h ALSA: line6: Rearrange PCM structure 2015-01-28 07:21:18 +01:00
playback.c ALSA: line6: Clear prev_fbuf and prev_fsize properly 2015-01-28 07:22:30 +01:00
playback.h ALSA: line6: Consolidate PCM stream buffer allocation and free 2015-01-28 07:21:39 +01:00
pod.c ALSA: line6: Let snd_card_new() allocate private data 2015-01-28 07:22:07 +01:00
podhd.c ALSA: line6: Let snd_card_new() allocate private data 2015-01-28 07:22:07 +01:00
revision.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
toneport.c ALSA: line6: Let snd_card_new() allocate private data 2015-01-28 07:22:07 +01:00
usbdefs.h ALSA: line6: Remove driver version from header comment 2015-01-20 09:52:40 +01:00
variax.c ALSA: line6: Let snd_card_new() allocate private data 2015-01-28 07:22:07 +01:00