]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix superfluous autosuspend recovery
authorTakashi Iwai <tiwai@suse.de>
Mon, 26 Jul 2021 06:26:56 +0000 (08:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Jul 2021 16:49:50 +0000 (18:49 +0200)
commit803a8844cbefbcb015ddd1c78bad5eaf3d4c7436
tree9dd619210476f2c6715d2d2c5138be84f2897647
parent7bdfd433962bdf81dc22b016d88c13d9ea8de612
ALSA: usb-audio: Fix superfluous autosuspend recovery

The change to restore the autosuspend from the disabled state uses a
wrong check: namely, it should have been the exact comparison of the
quirk_type instead of the bitwise and (&).  Otherwise it matches
wrongly with the other quirk types.

Although re-enabling the autosuspend for the already enabled device
shouldn't matter much, it's better to fix the unbalanced call.

Fixes: cccf42efcae0 ("ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/s5hr1flh9ov.wl-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c