diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-11-23 09:53:08 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-11-23 15:11:22 +0100 |
commit | 4974b7950929e4a28d4eaee48e4ad07f168ac132 (patch) | |
tree | 924ad436ded7e564eb9d6cced4092fc65f4d12e1 /sound/usb/format.c | |
parent | bc4e94aa8e72e79598e63a0b73febdcd8aeb541f (diff) | |
download | linux-4974b7950929e4a28d4eaee48e4ad07f168ac132.tar.gz linux-4974b7950929e4a28d4eaee48e4ad07f168ac132.tar.bz2 linux-4974b7950929e4a28d4eaee48e4ad07f168ac132.zip |
ALSA: usb-audio: Don't call usb_set_interface() at trigger callback
The PCM trigger callback is atomic, hence we must not call a function
like usb_set_interface() there. Calling it from there would lead to a
kernel Oops.
Fix it by moving the usb_set_interface() call to set_sync_endpoint().
Also, apply the snd_usb_set_interface_quirk() for consistency, too.
Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/format.c')
0 files changed, 0 insertions, 0 deletions