]> 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)
commit76f92d4caaf5f11387d80920df865f88b4c77e6e
tree4526ab3f05ab536e6fcbbb3ebc95b84cdcad254f
parent2f64b0e355d1fa155264035644e2173146afefd7
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