Skip to contentSkip to conversation

ALSA: Tascam US-16x08 DSP mixer quirk

PATCH In review OnkelDead 2 participants 2 messages Feb 20, 2017 Sound

lore
Share & tools
lore

OnkelDead

author
#0 lore raw

PATCH v9 1/1 ALSA: Tascam US-16x08 DSP mixer quirk

constify all URB message templates and string arrays
use correkt union elements of snd_ctl_elem_value in get/put route callbacks add sanity check to all integer put callback functions

Add mixer quirk for Tascam US-16x08 usb interface. Even that this is an usb compliant device, the input channels and DSP functions (EQ/Compressor) arn't accessible by default.

---
 sound/usb/Makefile        |    1 +
 sound/usb/mixer_quirks.c  |    5 +
 sound/usb/mixer_us16x08.c | 1465 +++++++++++++++++++++++++++++++++++++++++++++
 sound/usb/mixer_us16x08.h |  122 ++++
 4 files changed, 1593 insertions(+)
 create mode 100644 sound/usb/mixer_us16x08.c
 create mode 100644 sound/usb/mixer_us16x08.h
sound/usb/Makefile +1 -0
index 2d2d122..42cb33b 100644
@@ -10,6 +10,7 @@ snd-usb-audio-objs := 	card.o \
 			mixer.o \
 			mixer_quirks.o \
 			mixer_scarlett.o \
+			mixer_us16x08.o \
 			pcm.o \
 			proc.o \
 			quirks.o \
sound/usb/mixer_quirks.c +5 -0
index 04991b0..4fa0053 100644
@@ -43,6 +43,7 @@
 #include "mixer.h"
 #include "mixer_quirks.h"
 #include "mixer_scarlett.h"
+#include "mixer_us16x08.h"
 #include "helper.h"
 
 extern struct snd_kcontrol_new *snd_usb_feature_unit_ctl;
@@ -1729,6 +1730,10 @@ int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer)
 		return err;
 
 	switch (mixer->chip->usb_id) {
+	/* Tascam US-16x08 */
+	case USB_ID(0x0644, 0x8047):
+		err = snd_us16x08_controls_create(mixer);
+		break;
 	case USB_ID(0x041e, 0x3020):
 	case USB_ID(0x041e, 0x3040):
 	case USB_ID(0x041e, 0x3042):
sound/usb/mixer_us16x08.c new file +1465 -0

1,465 lines not on this page · raw message

sound/usb/mixer_us16x08.h new file +122 -0

122 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw
Quoted 11 lines · OnkelDead

constify all URB message templates and string arrays
use correkt union elements of snd_ctl_elem_value in get/put route callbacks add sanity check to all integer put callback functions

Add mixer quirk for Tascam US-16x08 usb interface. Even that this is an usb compliant device, the input channels and DSP functions (EQ/Compressor) arn't accessible by default.

Now I merged this one, although it's too late for 4.11, strictly speaking. The patch has been submitted many times in the development cycle, so it's not something submitted too late out of sudden.

Thanks!

Takashi