]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add boot quirk for MOTU M Series
authorAlexander Tsoy <alexander@tsoy.me>
Sun, 12 Jan 2020 10:23:58 +0000 (13:23 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Jan 2020 09:47:56 +0000 (10:47 +0100)
commit3725d20ee68dcbdb1d5721b32ba0e9cd5300d622
treedd9e57dc62f3f57a62366d74ace0d7885ad3b214
parentb707b36e78d23e92e1a013100f3ae77584d98cc1
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>
sound/usb/card.c
sound/usb/quirks.c
sound/usb/quirks.h