aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/caiaq/caiaq-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/caiaq/caiaq-device.c')
-rw-r--r--sound/usb/caiaq/caiaq-device.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/caiaq-device.c
index 4709347326f9..58af8142c571 100644
--- a/sound/usb/caiaq/caiaq-device.c
+++ b/sound/usb/caiaq/caiaq-device.c
@@ -41,9 +41,10 @@
41#endif 41#endif
42 42
43MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); 43MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>");
44MODULE_DESCRIPTION("caiaq USB audio, version 1.1.0"); 44MODULE_DESCRIPTION("caiaq USB audio, version 1.2.0");
45MODULE_LICENSE("GPL"); 45MODULE_LICENSE("GPL");
46MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2}," 46MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2},"
47 "{Native Instruments, RigKontrol3},"
47 "{Native Instruments, Kore Controller}," 48 "{Native Instruments, Kore Controller},"
48 "{Native Instruments, Audio Kontrol 1}" 49 "{Native Instruments, Audio Kontrol 1}"
49 "{Native Instruments, Audio 8 DJ}}"); 50 "{Native Instruments, Audio 8 DJ}}");
@@ -85,6 +86,11 @@ static struct usb_device_id snd_usb_id_table[] = {
85 { 86 {
86 .match_flags = USB_DEVICE_ID_MATCH_DEVICE, 87 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
87 .idVendor = USB_VID_NATIVEINSTRUMENTS, 88 .idVendor = USB_VID_NATIVEINSTRUMENTS,
89 .idProduct = USB_PID_RIGKONTROL3
90 },
91 {
92 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
93 .idVendor = USB_VID_NATIVEINSTRUMENTS,
88 .idProduct = USB_PID_KORECONTROLLER 94 .idProduct = USB_PID_KORECONTROLLER
89 }, 95 },
90 { 96 {
@@ -226,7 +232,7 @@ int snd_usb_caiaq_set_auto_msg (struct snd_usb_caiaqdev *dev,
226static void setup_card(struct snd_usb_caiaqdev *dev) 232static void setup_card(struct snd_usb_caiaqdev *dev)
227{ 233{
228 int ret; 234 int ret;
229 char val[3]; 235 char val[4];
230 236
231 /* device-specific startup specials */ 237 /* device-specific startup specials */
232 switch (dev->chip.usb_id) { 238 switch (dev->chip.usb_id) {
@@ -237,6 +243,14 @@ static void setup_card(struct snd_usb_caiaqdev *dev)
237 val[2] = 0x01; 243 val[2] = 0x01;
238 send_command(dev, EP1_CMD_WRITE_IO, val, 3); 244 send_command(dev, EP1_CMD_WRITE_IO, val, 3);
239 break; 245 break;
246 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_RIGKONTROL3):
247 /* RigKontrol2 - display two centered dashes ('--') */
248 val[0] = 0x00;
249 val[1] = 0x40;
250 val[2] = 0x40;
251 val[3] = 0x00;
252 send_command(dev, EP1_CMD_WRITE_IO, val, 4);
253 break;
240 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AK1): 254 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AK1):
241 /* Audio Kontrol 1 - make USB-LED stop blinking */ 255 /* Audio Kontrol 1 - make USB-LED stop blinking */
242 val[0] = 0x00; 256 val[0] = 0x00;