]> 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)
commit6ccc5f8b8975901784c1a92294ee48ee96297ecb
tree8b9c547475e928678582f6892286310f3a53abe0
parent9ae7247637075d165be441f621e4714b05393f06
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