]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Apply async workaround for Scarlett 2i4 2nd gen
authorAlexander Tsoy <alexander@tsoy.me>
Tue, 21 Apr 2020 19:09:08 +0000 (22:09 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Apr 2020 19:30:28 +0000 (21:30 +0200)
commitd982b74a006cd6e4dc21d6e84f27bb78341db1f3
tree4526ab3f05ab536e6fcbbb3ebc95b84cdcad254f
parent6f7ad7c4e5eb3c5d993be51874a86b719a46a692
ALSA: usb-audio: Apply async workaround for Scarlett 2i4 2nd gen

Due to rounding error driver sometimes incorrectly calculate next packet
size, which results in audible clicks on devices with synchronous playback
endpoints. For example on a high speed bus and a sample rate 44.1 kHz it
loses one sample every ~40.9 seconds. Fortunately playback interface on
Scarlett 2i4 2nd gen has a working explicit feedback endpoint, so we can
switch playback data endpoint to asynchronous mode as a workaround.

Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Link: https://lore.kernel.org/r/20200421190908.462860-1-alexander@tsoy.me
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks.c