]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: line6: Fix the error recovery in line6_pcm_acquire()
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jan 2015 13:34:42 +0000 (14:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2015 06:20:53 +0000 (07:20 +0100)
commitd4601dd10b3c6f18babc5f4dd9c4cffcc95b0b3c
tree65b7e343e00c4cca5e5ecce0a0d7deffd9c62368
parent6431f8cbafadd8e1bf8999e2bf2524545821d2a6
ALSA: line6: Fix the error recovery in line6_pcm_acquire()

line6_pcm_acquire() tries to restore the newly obtained resources at
the error path.  But some flags aren't recorded and released properly
when the corresponding buffer is already present.  These bits have to
be cleared in the error recovery, too.

Also, "flags_final" can be initialized to zero since we pass only the
subset of "channels" bits.

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