]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Don't abort resume upon errors
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2022 12:57:11 +0000 (13:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2022 12:57:51 +0000 (13:57 +0100)
commit3815703b0ea0c35955f7ab2866e3a117bcc3785b
tree536d19b149028ce6abc13b82c2681dcbacb903cb
parent720b7b4b45cfcde9ad46f5c4cf7307d1b815aefe
ALSA: usb-audio: Don't abort resume upon errors

The default mixer resume code treats the errors at restoring the
modified mixer items as a fatal error, and it returns back to the
caller.  This ends up in the resume failure, and the device will be
come unavailable, although basically those errors are intermittent and
can be safely ignored.

The problem itself has been present from the beginning, but it didn't
hit usually because the code tries to resume only the modified items.
But now with the recent commit to forcibly initialize each item at the
probe time, the problem surfaced more often, hence it appears as a
regression.

This patch fixes the regression simply by ignoring the errors at
resume.

Fixes: a1634c51228e ("ALSA: usb-audio: Initialize every feature unit once at probe time")
Cc: <stable@vger.kernel.org>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215561
Link: https://lore.kernel.org/r/20220214125711.20531-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c