Skip to content
Commit e99ddfde authored by Clemens Ladisch's avatar Clemens Ladisch
Browse files

ALSA: ua101, usx2y: fix broken MIDI output

Commit 88a8516a

 (ALSA: usbaudio: implement USB autosuspend) added
autosuspend code to all files making up the snd-usb-audio driver.
However, midi.c is part of snd-usb-lib and is also used by other
drivers, not all of which support autosuspend.  Thus, calls to
usb_autopm_get_interface() could fail, and this unexpected error would
result in the MIDI output being completely unusable.

Make it work by ignoring the error that is expected with drivers that do
not support autosuspend.

Reported-by: default avatarColin Fletcher <colin.m.fletcher@googlemail.com>
Reported-by: default avatarDevin Venable <venable.devin@gmail.com>
Reported-by: default avatarDr Nick Bailey <nicholas.bailey@glasgow.ac.uk>
Reported-by: default avatarJannis Achstetter <jannis_achstetter@web.de>
Reported-by: default avatarRui Nuno Capela <rncbc@rncbc.org>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: 2.6.39+ <stable@vger.kernel.org>
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent a0d271cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment