Lines Matching +full:channel +full:- +full:2

1 // SPDX-License-Identifier: GPL-2.0-or-later
24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info()
25 int pos = kcontrol->private_value; in control_info()
29 uinfo->count = 1; in control_info()
32 switch (cdev->chip.usb_id) { in control_info()
37 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
38 uinfo->value.integer.min = 0; in control_info()
39 uinfo->value.integer.max = 2; in control_info()
54 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
55 uinfo->value.integer.min = 0; in control_info()
56 uinfo->value.integer.max = maxval; in control_info()
58 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in control_info()
59 uinfo->value.integer.min = 0; in control_info()
60 uinfo->value.integer.max = 1; in control_info()
70 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_get()
71 int pos = kcontrol->private_value; in control_get()
74 ucontrol->value.integer.value[0] in control_get()
75 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get()
77 ucontrol->value.integer.value[0] in control_get()
78 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get()
87 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_put()
88 int pos = kcontrol->private_value; in control_put()
89 int v = ucontrol->value.integer.value[0]; in control_put()
92 switch (cdev->chip.usb_id) { in control_put()
107 cdev->control_state[i] = v; in control_put()
109 if (cdev->chip.usb_id == in control_put()
113 cdev->ep8_out_buf[0] = i; in control_put()
114 cdev->ep8_out_buf[1] = v; in control_put()
116 usb_bulk_msg(cdev->chip.dev, in control_put()
117 usb_sndbulkpipe(cdev->chip.dev, 8), in control_put()
118 cdev->ep8_out_buf, sizeof(cdev->ep8_out_buf), in control_put()
120 } else if (cdev->chip.usb_id == in control_put()
132 cdev->control_state + offset, in control_put()
136 cdev->control_state, sizeof(cdev->control_state)); in control_put()
140 cdev->control_state[pos / 8] |= 1 << (pos % 8); in control_put()
142 cdev->control_state[pos / 8] &= ~(1 << (pos % 8)); in control_put()
145 cdev->control_state, sizeof(cdev->control_state)); in control_put()
167 { "LED left", 2 },
175 { "LED 2", 4 },
177 { "LED 4", 2 },
202 { "LED 7seg_1c", 0 + 2 },
211 { "LED 7seg_2c", 8 + 2 },
220 { "LED 7seg_3c", 16 + 2 },
229 { "LED 7seg_4c", 24 + 2 },
237 { "LED 2", 32 + 1 },
238 { "LED 3", 32 + 2 },
258 { "LED touch3", 2 | CNT_INTVAL },
285 { "GND lift for phono mode", 24 + 2 },
296 { "LED FX A: 2", 5 | CNT_INTVAL },
299 { "LED FX B: 1", 2 | CNT_INTVAL },
300 { "LED FX B: 2", 1 | CNT_INTVAL },
345 { "LED: Channel A: >", 4 | CNT_INTVAL },
346 { "LED: Channel A: <", 5 | CNT_INTVAL },
347 { "LED: Channel A: Meter 1", 97 | CNT_INTVAL },
348 { "LED: Channel A: Meter 2", 98 | CNT_INTVAL },
349 { "LED: Channel A: Meter 3", 99 | CNT_INTVAL },
350 { "LED: Channel A: Meter 4", 100 | CNT_INTVAL },
351 { "LED: Channel A: Meter 5", 101 | CNT_INTVAL },
352 { "LED: Channel A: Meter 6", 102 | CNT_INTVAL },
353 { "LED: Channel A: Meter clip", 103 | CNT_INTVAL },
354 { "LED: Channel A: Active", 114 | CNT_INTVAL },
355 { "LED: Channel A: Cue", 116 | CNT_INTVAL },
356 { "LED: Channel A: FX1", 149 | CNT_INTVAL },
357 { "LED: Channel A: FX2", 148 | CNT_INTVAL },
359 { "LED: Channel B: >", 2 | CNT_INTVAL },
360 { "LED: Channel B: <", 3 | CNT_INTVAL },
361 { "LED: Channel B: Meter 1", 89 | CNT_INTVAL },
362 { "LED: Channel B: Meter 2", 90 | CNT_INTVAL },
363 { "LED: Channel B: Meter 3", 91 | CNT_INTVAL },
364 { "LED: Channel B: Meter 4", 92 | CNT_INTVAL },
365 { "LED: Channel B: Meter 5", 93 | CNT_INTVAL },
366 { "LED: Channel B: Meter 6", 94 | CNT_INTVAL },
367 { "LED: Channel B: Meter clip", 95 | CNT_INTVAL },
368 { "LED: Channel B: Active", 122 | CNT_INTVAL },
369 { "LED: Channel B: Cue", 125 | CNT_INTVAL },
370 { "LED: Channel B: FX1", 147 | CNT_INTVAL },
371 { "LED: Channel B: FX2", 146 | CNT_INTVAL },
373 { "LED: Channel C: >", 6 | CNT_INTVAL },
374 { "LED: Channel C: <", 7 | CNT_INTVAL },
375 { "LED: Channel C: Meter 1", 105 | CNT_INTVAL },
376 { "LED: Channel C: Meter 2", 106 | CNT_INTVAL },
377 { "LED: Channel C: Meter 3", 107 | CNT_INTVAL },
378 { "LED: Channel C: Meter 4", 108 | CNT_INTVAL },
379 { "LED: Channel C: Meter 5", 109 | CNT_INTVAL },
380 { "LED: Channel C: Meter 6", 110 | CNT_INTVAL },
381 { "LED: Channel C: Meter clip", 111 | CNT_INTVAL },
382 { "LED: Channel C: Active", 115 | CNT_INTVAL },
383 { "LED: Channel C: Cue", 117 | CNT_INTVAL },
384 { "LED: Channel C: FX1", 151 | CNT_INTVAL },
385 { "LED: Channel C: FX2", 150 | CNT_INTVAL },
387 { "LED: Channel D: >", 0 | CNT_INTVAL },
388 { "LED: Channel D: <", 1 | CNT_INTVAL },
389 { "LED: Channel D: Meter 1", 81 | CNT_INTVAL },
390 { "LED: Channel D: Meter 2", 82 | CNT_INTVAL },
391 { "LED: Channel D: Meter 3", 83 | CNT_INTVAL },
392 { "LED: Channel D: Meter 4", 84 | CNT_INTVAL },
393 { "LED: Channel D: Meter 5", 85 | CNT_INTVAL },
394 { "LED: Channel D: Meter 6", 86 | CNT_INTVAL },
395 { "LED: Channel D: Meter clip", 87 | CNT_INTVAL },
396 { "LED: Channel D: Active", 123 | CNT_INTVAL },
397 { "LED: Channel D: Cue", 124 | CNT_INTVAL },
398 { "LED: Channel D: FX1", 145 | CNT_INTVAL },
399 { "LED: Channel D: FX2", 144 | CNT_INTVAL },
403 { "LED: Deck A: 2 (blue)", 20 | CNT_INTVAL },
404 { "LED: Deck A: 2 (green)", 21 | CNT_INTVAL },
426 { "LED: Deck A: Sample 2", 30 | CNT_INTVAL },
429 { "LED: Deck A: Digit 1 - A", 55 | CNT_INTVAL },
430 { "LED: Deck A: Digit 1 - B", 54 | CNT_INTVAL },
431 { "LED: Deck A: Digit 1 - C", 53 | CNT_INTVAL },
432 { "LED: Deck A: Digit 1 - D", 52 | CNT_INTVAL },
433 { "LED: Deck A: Digit 1 - E", 51 | CNT_INTVAL },
434 { "LED: Deck A: Digit 1 - F", 50 | CNT_INTVAL },
435 { "LED: Deck A: Digit 1 - G", 49 | CNT_INTVAL },
436 { "LED: Deck A: Digit 1 - dot", 48 | CNT_INTVAL },
437 { "LED: Deck A: Digit 2 - A", 63 | CNT_INTVAL },
438 { "LED: Deck A: Digit 2 - B", 62 | CNT_INTVAL },
439 { "LED: Deck A: Digit 2 - C", 61 | CNT_INTVAL },
440 { "LED: Deck A: Digit 2 - D", 60 | CNT_INTVAL },
441 { "LED: Deck A: Digit 2 - E", 59 | CNT_INTVAL },
442 { "LED: Deck A: Digit 2 - F", 58 | CNT_INTVAL },
443 { "LED: Deck A: Digit 2 - G", 57 | CNT_INTVAL },
444 { "LED: Deck A: Digit 2 - dot", 56 | CNT_INTVAL },
448 { "LED: Deck B: 2 (blue)", 76 | CNT_INTVAL },
449 { "LED: Deck B: 2 (green)", 77 | CNT_INTVAL },
471 { "LED: Deck B: Sample 2", 70 | CNT_INTVAL },
474 { "LED: Deck B: Digit 1 - A", 175 | CNT_INTVAL },
475 { "LED: Deck B: Digit 1 - B", 174 | CNT_INTVAL },
476 { "LED: Deck B: Digit 1 - C", 173 | CNT_INTVAL },
477 { "LED: Deck B: Digit 1 - D", 172 | CNT_INTVAL },
478 { "LED: Deck B: Digit 1 - E", 171 | CNT_INTVAL },
479 { "LED: Deck B: Digit 1 - F", 170 | CNT_INTVAL },
480 { "LED: Deck B: Digit 1 - G", 169 | CNT_INTVAL },
481 { "LED: Deck B: Digit 1 - dot", 168 | CNT_INTVAL },
482 { "LED: Deck B: Digit 2 - A", 167 | CNT_INTVAL },
483 { "LED: Deck B: Digit 2 - B", 166 | CNT_INTVAL },
484 { "LED: Deck B: Digit 2 - C", 165 | CNT_INTVAL },
485 { "LED: Deck B: Digit 2 - D", 164 | CNT_INTVAL },
486 { "LED: Deck B: Digit 2 - E", 163 | CNT_INTVAL },
487 { "LED: Deck B: Digit 2 - F", 162 | CNT_INTVAL },
488 { "LED: Deck B: Digit 2 - G", 161 | CNT_INTVAL },
489 { "LED: Deck B: Digit 2 - dot", 160 | CNT_INTVAL },
493 { "LED: FX1: 2", 155 | CNT_INTVAL },
498 { "LED: FX2: 2", 131 | CNT_INTVAL },
505 { "LED: Pad 2", 2 | CNT_INTVAL },
558 { "LED: Top Button 2", 56 | CNT_INTVAL },
578 kcontrol_template.name = c->name; in add_controls()
579 kcontrol_template.private_value = c->index; in add_controls()
581 ret = snd_ctl_add(cdev->chip.card, kc); in add_controls()
593 switch (cdev->chip.usb_id) { in snd_usb_caiaq_control_init()