Lines Matching +full:sync +full:- +full:on +full:- +full:green +full:- +full:active

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()
294 { "LED FX A: ON", 7 | CNT_INTVAL },
298 { "LED FX B: ON", 3 | CNT_INTVAL },
305 { "LED Shift (green)", 30 | CNT_INTVAL },
316 { "LED Deck A: SYNC", 22 | CNT_INTVAL },
327 { "LED Deck B: SYNC", 8 | CNT_INTVAL },
354 { "LED: Channel A: Active", 114 | CNT_INTVAL },
368 { "LED: Channel B: Active", 122 | CNT_INTVAL },
382 { "LED: Channel C: Active", 115 | CNT_INTVAL },
396 { "LED: Channel D: Active", 123 | CNT_INTVAL },
402 { "LED: Deck A: 1 (green)", 23 | CNT_INTVAL },
404 { "LED: Deck A: 2 (green)", 21 | CNT_INTVAL },
406 { "LED: Deck A: 3 (green)", 19 | CNT_INTVAL },
408 { "LED: Deck A: 4 (green)", 17 | CNT_INTVAL },
414 { "LED: Deck A: Sync", 27 | CNT_INTVAL },
424 { "LED: Deck A: On Air", 39 | 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 },
447 { "LED: Deck B: 1 (green)", 79 | CNT_INTVAL },
449 { "LED: Deck B: 2 (green)", 77 | CNT_INTVAL },
451 { "LED: Deck B: 3 (green)", 75 | CNT_INTVAL },
453 { "LED: Deck B: 4 (green)", 73 | CNT_INTVAL },
459 { "LED: Deck B: Sync", 67 | CNT_INTVAL },
469 { "LED: Deck B: On Air", 191 | 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 },
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()