aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98088.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-04-25 07:38:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-07 19:57:25 -0700
commit430c701136b9168fbb63b6391af0b8f4216817a9 (patch)
treec9c54005568ba3ac72b45e15b6498c9e79bd571d /sound/soc/codecs/max98088.c
parent7d4dcfcf2e4351369720bbd8e6a65df56e0458d7 (diff)
downloadkernel_samsung_smdk4412-430c701136b9168fbb63b6391af0b8f4216817a9.zip
kernel_samsung_smdk4412-430c701136b9168fbb63b6391af0b8f4216817a9.tar.gz
kernel_samsung_smdk4412-430c701136b9168fbb63b6391af0b8f4216817a9.tar.bz2
ALSA: usb-audio: Fix autopm error during probing
commit 60af3d037eb8c670dcce31401501d1271e7c5d95 upstream. We've got strange errors in get_ctl_value() in mixer.c during probing, e.g. on Hercules RMX2 DJ Controller: ALSA mixer.c:352 cannot get ctl value: req = 0x83, wValue = 0x201, wIndex = 0xa00, type = 4 ALSA mixer.c:352 cannot get ctl value: req = 0x83, wValue = 0x200, wIndex = 0xa00, type = 4 .... It turned out that the culprit is autopm: snd_usb_autoresume() returns -ENODEV when called during card->probing = 1. Since the call itself during card->probing = 1 is valid, let's fix the return value of snd_usb_autoresume() as success. Reported-and-tested-by: Daniel Schürmann <daschuer@mixxx.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/codecs/max98088.c')
0 files changed, 0 insertions, 0 deletions