diff options
author | Adam Goode <agoode@google.com> | 2014-08-05 18:44:50 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-08-05 20:08:00 +0200 |
commit | f7881e5e8ef305e62084bf3d31b5b0d827fdf511 (patch) | |
tree | 8b9c547475e928678582f6892286310f3a53abe0 /sound/usb/midi.h | |
parent | sound/oss/pss: Remove typedefs pss_mixerdata and pss_confdata (diff) | |
download | linux-f7881e5e8ef305e62084bf3d31b5b0d827fdf511.tar.xz linux-f7881e5e8ef305e62084bf3d31b5b0d827fdf511.zip |
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>
Diffstat (limited to 'sound/usb/midi.h')
-rw-r--r-- | sound/usb/midi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/midi.h b/sound/usb/midi.h index 2fca80b744c0..46e5b65e81e7 100644 --- a/sound/usb/midi.h +++ b/sound/usb/midi.h @@ -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 */ |