]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Avoid unnecessary or invalid connector selection at resume
authorTakashi Iwai <tiwai@suse.de>
Thu, 29 Jul 2021 18:51:26 +0000 (20:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 30 Jul 2021 06:47:01 +0000 (08:47 +0200)
commit31c027afc42549fc0bf0298a41f4ab9ad67c7237
treecdb1bdb21cafe9707fa641dd4af6d339f970fc64
parente3cb65a882159603b737f4bc3f401af2ef6b9121
ALSA: usb-audio: Avoid unnecessary or invalid connector selection at resume

The recent fix for the resume on Lenovo machines seems causing a
regression on others.  It's because the change always triggers the
connector selection no matter which widget node type is.

This patch addresses the regression by setting the resume callback
selectively only for the connector widget.

Fixes: 8a83a5027eba ("ALSA: usb-audio: Check connector value on resume")
Cc: <stable@vger.kernel.org>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=213897
Link: https://lore.kernel.org/r/20210729185126.24432-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c