OSDN Git Service

ALSA: usb-audio: Add support for Presonus Studio 1810c
authorNick Kossifidis <mickflemm@gmail.com>
Sat, 15 Feb 2020 01:23:35 +0000 (03:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 15 Feb 2020 08:46:16 +0000 (09:46 +0100)
commit8dc5efe3d17cd572328ac4f1ebde629c83317f54
treed60a6e26a042aa9641d197fba3c051adb90d469b
parent146f66975bafbcfab349901c9f9c9f521ac96cbb
ALSA: usb-audio: Add support for Presonus Studio 1810c

This patch adds support for Presonus Studio 1810c, a usb interface
that's UAC2 compliant with a few quirks and a few extra hw-specific
controls. I've tested all 3 altsettings and the added switch
controls and they work as expected.

More infos on the card:
https://www.presonus.com/products/Studio-1810c

Note that this work is based on packet inspection with
usbmon. I just wanted to get this card to work for using
it on our open-source radio station:
https://github.com/UoC-Radio

v2 address issues reported by Takashi:
* Properly get/set enum type controls
* Prevent race condition on switch_get/set
* Various control naming changes
* Various coding style fixes

v3 improve readability of sample rate filtering
and some other minor changes.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Link: https://lore.kernel.org/r/5e47481a.1c69fb81.befb3.8dac@mx.google.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/Makefile
sound/usb/format.c
sound/usb/mixer_quirks.c
sound/usb/mixer_s1810c.c [new file with mode: 0644]
sound/usb/mixer_s1810c.h [new file with mode: 0644]
sound/usb/quirks.c