]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: usb-audio: Improve filtering of sample rates on Focusrite devices
authorAlexander Tsoy <alexander@tsoy.me>
Mon, 30 Jun 2025 01:33:57 +0000 (04:33 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Jun 2025 07:11:39 +0000 (09:11 +0200)
commit05f254a6369ac020fc0382a7cbd3ef64ad997c92
tree2606c780a7fd3f9014ab0848366be949ddcd775e
parentce174b48aebb3fa18fe48c59a3d10a89c414fdf2
ALSA: usb-audio: Improve filtering of sample rates on Focusrite devices

Previously we were filtering out only upper unsupported sampling rates.
This patch adds filtering of the lower unsupported sampling rates. As a
result there is 1:1 mapping between altsetting and supported rates.

The issue was found on a Scarlett 3rd Gen card (see linked bug), but the
same filtering is likely needed for the Scarlett 1st and 2nd Gen as well
as the older Clarett cards which lacks Valid Alternate Setting Control.

Patch was not tested on a real hardware.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=214493
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Link: https://patch.msgid.link/20250630013357.1327420-1-alexander@tsoy.me
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c