]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Save mixer status only once at suspend
authorTakashi Iwai <tiwai@suse.de>
Fri, 2 May 2014 16:14:42 +0000 (18:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 May 2014 16:14:42 +0000 (18:14 +0200)
commit20c37a5921388a1e3be75570ad335f46fc797198
tree63d9f275184d0ccd6d2be62d92b6e8d7c2e670f8
parentcd11d253ffd750821347288e5729351b324ed054
ALSA: usb-audio: Save mixer status only once at suspend

The suspend callback of usb-audio driver may be called multiple times
per suspend when multiple USB interfaces are bound to a single sound
card instance.  In such a case, it's superfluous to save the mixer
values multiple times.  This patch fixes it by checking the counter.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c