]> git.karo-electronics.de Git - linux-beck.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)
commit5343ecf4e5c94aecdd6a859b76c125c3544865d1
tree65b7e343e00c4cca5e5ecce0a0d7deffd9c62368
parent6aa7f8ef293f27215f685b2f94e980c7f3a337d5
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