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>
This commit is contained in:
@@ -46,5 +46,7 @@ int snd_usbmidi_create(struct snd_card *card,
|
||||
void snd_usbmidi_input_stop(struct list_head* p);
|
||||
void snd_usbmidi_input_start(struct list_head* p);
|
||||
void snd_usbmidi_disconnect(struct list_head *p);
|
||||
void snd_usbmidi_suspend(struct list_head *p);
|
||||
void snd_usbmidi_resume(struct list_head *p);
|
||||
|
||||
#endif /* __USBMIDI_H */
|
||||
|
Reference in New Issue
Block a user