]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Respond to suspend and resume callbacks for MIDI input
authorAdam Goode <agoode@google.com>
Tue, 5 Aug 2014 16:44:50 +0000 (12:44 -0400)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Aug 2014 18:08:00 +0000 (20:08 +0200)
commitb9c8a187e4be0abf132c3e973ae53671d7686311
tree8b9c547475e928678582f6892286310f3a53abe0
parentf02ab6b6a113c73f6e4cd35af557cafdb9027e5e
ALSA: usb-audio: Respond to suspend and resume callbacks for MIDI input

sound/usb/card.c registers USB suspend and resume but did not previously
kill the input URBs. This means that USB MIDI devices left open across
suspend/resume had non-functional input (output still usually worked,
but it looks like that is another issue). Before this change, we would
get ESHUTDOWN for each of the input URBs at suspend time, killing input.

Signed-off-by: Adam Goode <agoode@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/midi.c
sound/usb/midi.h