ALSA: usb-audio: Add boot quirk for MOTU M Series
Add delay to make sure that audio urbs are not sent too early. Otherwise the device hangs. Windows driver makes ~2s delay, so use about the same time delay value. snd_usb_apply_boot_quirk() is called 3 times for my MOTU M4, which is an overkill. Thus a quirk that is called only once is implemented. Also send two vendor-specific control messages before and after the delay. This behaviour is blindly copied from the Windows driver. Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Link: https://lore.kernel.org/r/20200112102358.18085-1-alexander@tsoy.me Signed-off-by: Takashi Iwai <tiwai@suse.de>
Цей коміт міститься в:

зафіксовано
Takashi Iwai

джерело
791a485f2d
коміт
73ac9f5e5b
@@ -20,6 +20,11 @@ int snd_usb_apply_boot_quirk(struct usb_device *dev,
|
||||
const struct snd_usb_audio_quirk *quirk,
|
||||
unsigned int usb_id);
|
||||
|
||||
int snd_usb_apply_boot_quirk_once(struct usb_device *dev,
|
||||
struct usb_interface *intf,
|
||||
const struct snd_usb_audio_quirk *quirk,
|
||||
unsigned int usb_id);
|
||||
|
||||
void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
|
||||
struct audioformat *fmt);
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача