summaryrefslogtreecommitdiff
path: root/sound/usb/pcm.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-12-03 10:30:50 (GMT)
committerTakashi Iwai <tiwai@suse.de>2012-12-04 06:27:44 (GMT)
commitf5f165418cabf2218eb466c0e94693b8b1aee88b (patch)
treecc5bb9658be8d83c1f4c0533468f52ac2a5348be /sound/usb/pcm.c
parent59866da9e4ae54819e3c4e0a8f426bdb0c2ef993 (diff)
downloadlinux-fsl-qoriq-f5f165418cabf2218eb466c0e94693b8b1aee88b.tar.xz
ALSA: usb-audio: Fix missing autopm for MIDI input
The commit [88a8516a: ALSA: usbaudio: implement USB autosuspend] added the support of autopm for USB MIDI output, but it didn't take the MIDI input into account. This patch adds the following for fixing the autopm: - Manage the URB start at the first MIDI input stream open, instead of the time of instance creation - Move autopm code to the common substream_open() - Make snd_usbmidi_input_start/_stop() more robust and add the running state check Reviewd-by: Clemens Ladisch <clemens@ladisch.de> Tested-by: Clemens Ladisch <clemens@ladisch.de> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/pcm.c')
0 files changed, 0 insertions, 0 deletions