Lines Matching +full:0 +full:x62
23 0x61,
24 0x02,
25 0x03, /* input from master (0x02) or input from computer bus (0x03) */
26 0x62,
27 0x02,
28 0x01, /* input index (0x01/0x02 eq. left/right) or bus (0x01-0x08) */
29 0x41,
30 0x01,
31 0x61,
32 0x02,
33 0x01,
34 0x62,
35 0x02,
36 0x01, /* output index (0x01-0x08) */
37 0x42,
38 0x01,
39 0x43,
40 0x01,
41 0x00,
42 0x00
46 0x71, 0x01, 0x00, 0x00
50 0x62, 0x02, 0x00, 0x61, 0x02, 0x04, 0xb1, 0x01, 0x00, 0x00
55 0x61, 0x02, 0x04, 0x62, 0x02, 0x01,
56 0x81, /* 0x06: Controller ID */
57 0x02, /* 0x07: */
58 0x00, /* 0x08: Value of common mixer */
59 0x00,
60 0x00
65 0x61, 0x02, 0x02, 0x62, 0x02, 0x01,
66 0x81, /* 0x06: Controller ID */
67 0x02, /* 0x07: */
68 0x00, /* 0x08: Value of common mixer */
69 0x00,
70 0x00
74 0x45,
75 0x02,
76 0x01, /* on/off flag */
77 0x00,
78 0x00
82 0x44,
83 0x02,
84 0x01, /* on/off flag */
85 0x00,
86 0x00
91 0x61, 0x02, 0x04, 0x62, 0x02, 0x01,
92 0x91,
93 0x02,
94 0xf0, /* 0x08: Threshold db (8) (e0 ... 00) (+-0dB -- -32dB) x-32 */
95 0x92,
96 0x02,
97 0x0a, /* 0x0b: Ratio (0a,0b,0d,0f,11,14,19,1e,23,28,32,3c,50,a0,ff) */
98 0x93,
99 0x02,
100 0x02, /* 0x0e: Attack (0x02 ... 0xc0) (2ms ... 200ms) */
101 0x94,
102 0x02,
103 0x01, /* 0x11: Release (0x01 ... 0x64) (10ms ... 1000ms) x*10 */
104 0x95,
105 0x02,
106 0x03, /* 0x14: gain (0 ... 20) (0dB .. 20dB) */
107 0x96,
108 0x02,
109 0x01,
110 0x97,
111 0x02,
112 0x01, /* 0x1a: main Comp switch (0 ... 1) (off ... on)) */
113 0x00,
114 0x00
119 0x61, 0x02, 0x04, 0x62, 0x02, 0x01,
120 0x51, /* 0x06: Controller ID */
121 0x02,
122 0x04, /* 0x08: EQ set num (0x01..0x04) (LOW, LOWMID, HIGHMID, HIGH)) */
123 0x52,
124 0x02,
125 0x0c, /* 0x0b: value dB (0 ... 12) (-12db .. +12db) x-6 */
126 0x53,
127 0x02,
128 0x0f, /* 0x0e: value freq (32-47) (1.7kHz..18kHz) */
129 0x54,
130 0x02,
131 0x02, /* 0x11: band width (0-6) (Q16-Q0.25) 2^x/4 (EQ xxMID only) */
132 0x55,
133 0x02,
134 0x01, /* 0x14: main EQ switch (0 ... 1) (off ... on)) */
135 0x00,
136 0x00
141 0x0a, 0x0b, 0x0d, 0x0f, 0x11, 0x14, 0x19, 0x1e,
142 0x23, 0x28, 0x32, 0x3c, 0x50, 0xa0, 0xff
157 usb_rcvctrlpipe(chip->dev, 0), in snd_us16x08_recv_urb()
159 SND_US16X08_URB_METER_REQUESTTYPE, 0, 0, buf, size); in snd_us16x08_recv_urb()
161 return 0; in snd_us16x08_recv_urb()
169 return snd_usb_ctl_msg(chip->dev, usb_sndctrlpipe(chip->dev, 0), in snd_us16x08_send_urb()
171 0, 0, buf, size); in snd_us16x08_send_urb()
187 ucontrol->value.enumerated.item[0] = elem->cache_val[index]; in snd_us16x08_route_get()
189 return 0; in snd_us16x08_route_get()
202 val = ucontrol->value.enumerated.item[0]; in snd_us16x08_route_put()
205 if (val < 0 || val > 9) in snd_us16x08_route_put()
214 buf[2] = 0x02; in snd_us16x08_route_put()
217 buf[2] = 0x03; in snd_us16x08_route_put()
222 buf[5] = (unsigned char) (val_org & 0x0f) + 1; in snd_us16x08_route_put()
228 if (err > 0) { in snd_us16x08_route_put()
235 return err > 0 ? 1 : 0; in snd_us16x08_route_put()
246 return 0; in snd_us16x08_master_info()
255 ucontrol->value.integer.value[0] = elem->cache_val[index]; in snd_us16x08_master_get()
257 return 0; in snd_us16x08_master_get()
270 val = ucontrol->value.integer.value[0]; in snd_us16x08_master_put()
287 if (err > 0) { in snd_us16x08_master_put()
294 return err > 0 ? 1 : 0; in snd_us16x08_master_put()
303 int val, err = 0; in snd_us16x08_bus_put()
305 val = ucontrol->value.integer.value[0]; in snd_us16x08_bus_put()
328 if (err > 0) { in snd_us16x08_bus_put()
330 elem->cache_val[0] = val; in snd_us16x08_bus_put()
335 return err > 0 ? 1 : 0; in snd_us16x08_bus_put()
345 ucontrol->value.integer.value[0] = elem->cache_val[0]; in snd_us16x08_bus_get()
348 ucontrol->value.integer.value[0] = elem->cache_val[0]; in snd_us16x08_bus_get()
351 ucontrol->value.integer.value[0] = elem->cache_val[0]; in snd_us16x08_bus_get()
355 return 0; in snd_us16x08_bus_get()
365 ucontrol->value.integer.value[0] = elem->cache_val[index]; in snd_us16x08_channel_get()
367 return 0; in snd_us16x08_channel_get()
379 val = ucontrol->value.integer.value[0]; in snd_us16x08_channel_put()
396 if (err > 0) { in snd_us16x08_channel_put()
403 return err > 0 ? 1 : 0; in snd_us16x08_channel_put()
414 return 0; in snd_us16x08_mix_info()
425 ucontrol->value.integer.value[0] = store->val[val_idx][index]; in snd_us16x08_comp_get()
427 return 0; in snd_us16x08_comp_get()
441 val = ucontrol->value.integer.value[0]; in snd_us16x08_comp_put()
451 store->val[val_idx][index] = ucontrol->value.integer.value[0]; in snd_us16x08_comp_put()
474 if (err > 0) { in snd_us16x08_comp_put()
495 ucontrol->value.integer.value[0] = val; in snd_us16x08_eqswitch_get()
497 return 0; in snd_us16x08_eqswitch_get()
508 int val, err = 0; in snd_us16x08_eqswitch_put()
512 val = ucontrol->value.integer.value[0] + SND_US16X08_KCBIAS(kcontrol); in snd_us16x08_eqswitch_put()
519 for (b_idx = 0; b_idx < SND_US16X08_ID_EQ_BAND_COUNT; b_idx++) { in snd_us16x08_eqswitch_put()
524 buf[11] = store->val[b_idx][0][index]; in snd_us16x08_eqswitch_put()
527 if (err < 0) in snd_us16x08_eqswitch_put()
533 if (err > 0) { in snd_us16x08_eqswitch_put()
555 ucontrol->value.integer.value[0] = val; in snd_us16x08_eq_get()
557 return 0; in snd_us16x08_eq_get()
572 val = ucontrol->value.integer.value[0]; in snd_us16x08_eq_put()
586 buf[11] = store->val[b_idx][0][index]; in snd_us16x08_eq_put()
596 if (err > 0) { in snd_us16x08_eq_put()
612 uinfo->value.integer.max = 0x7FFF; in snd_us16x08_meter_info()
613 uinfo->value.integer.min = 0; in snd_us16x08_meter_info()
615 return 0; in snd_us16x08_meter_info()
626 if (store->comp_active_index & 0x20) { in snd_get_meter_comp_index()
633 ret = store->comp_index++ & 0x1F; in snd_get_meter_comp_index()
660 if (MUA0(meter_urb, s) == 0x61 && MUA1(meter_urb, s) == 0x02 && in get_meter_levels_from_urb()
661 MUA2(meter_urb, s) == 0x04 && MUB0(meter_urb, s) == 0x62) { in get_meter_levels_from_urb()
662 if (MUC0(meter_urb, s) == 0x72) in get_meter_levels_from_urb()
664 if (MUC0(meter_urb, s) == 0xb2) in get_meter_levels_from_urb()
667 if (MUA0(meter_urb, s) == 0x61 && MUA1(meter_urb, s) == 0x02 && in get_meter_levels_from_urb()
668 MUA2(meter_urb, s) == 0x02 && MUB0(meter_urb, s) == 0x62) in get_meter_levels_from_urb()
676 * packages. The first request (case 0:) initiate this meter response sequence.
693 case 0: { in snd_us16x08_meter_get()
721 kcontrol->private_value = 0; in snd_us16x08_meter_get()
726 for (set = 0; set < 6; set++) in snd_us16x08_meter_get()
729 for (i = 0; i < SND_US16X08_MAX_CHANNELS; i++) { in snd_us16x08_meter_get()
731 store ? store->meter_level[i] : 0; in snd_us16x08_meter_get()
734 ucontrol->value.integer.value[i++] = store ? store->master_level[0] : 0; in snd_us16x08_meter_get()
735 ucontrol->value.integer.value[i++] = store ? store->master_level[1] : 0; in snd_us16x08_meter_get()
739 store ? store->comp_level[i - 2] : 0; in snd_us16x08_meter_get()
751 val = ucontrol->value.integer.value[0]; in snd_us16x08_meter_put()
754 if (val < 0 || val >= SND_US16X08_MAX_CHANNELS) in snd_us16x08_meter_put()
770 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 1)
780 .private_value = SND_US16X08_KCSET(SND_US16X08_FADER_BIAS, 1, 0, 133)
790 .private_value = SND_US16X08_KCSET(SND_US16X08_FADER_BIAS, 1, 0, 255)
800 .private_value = SND_US16X08_KCSET(SND_US16X08_FADER_BIAS, 1, 0, 133)
810 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 9)
820 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 1)
830 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 1)
841 0, 0x20)
851 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0,
862 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 0x14)
873 SND_US16X08_KCSET(SND_US16X08_COMP_ATTACK_BIAS, 1, 0, 0xc6),
884 SND_US16X08_KCSET(SND_US16X08_COMP_RELEASE_BIAS, 1, 0, 0x63),
894 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 24),
904 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 0x1F),
914 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 0x3F)
924 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 0x06)
935 SND_US16X08_KCSET(SND_US16X08_EQ_HIGHFREQ_BIAS, 1, 0, 0x1F)
945 .private_value = SND_US16X08_KCSET(SND_US16X08_NO_BIAS, 1, 0, 1)
969 for (i = 0; i < SND_US16X08_MAX_CHANNELS; i++) { in snd_us16x08_create_comp_store()
971 = 0x20; in snd_us16x08_create_comp_store()
972 tmp->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_RATIO)][i] = 0x00; in snd_us16x08_create_comp_store()
973 tmp->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_GAIN)][i] = 0x00; in snd_us16x08_create_comp_store()
974 tmp->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_SWITCH)][i] = 0x00; in snd_us16x08_create_comp_store()
975 tmp->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_ATTACK)][i] = 0x00; in snd_us16x08_create_comp_store()
976 tmp->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_RELEASE)][i] = 0x00; in snd_us16x08_create_comp_store()
991 for (i = 0; i < SND_US16X08_MAX_CHANNELS; i++) { in snd_us16x08_create_eq_store()
992 for (b_idx = 0; b_idx < SND_US16X08_ID_EQ_BAND_COUNT; b_idx++) { in snd_us16x08_create_eq_store()
993 tmp->val[b_idx][0][i] = 0x0c; in snd_us16x08_create_eq_store()
994 tmp->val[b_idx][3][i] = 0x00; in snd_us16x08_create_eq_store()
996 case 0: /* EQ Low */ in snd_us16x08_create_eq_store()
997 tmp->val[b_idx][1][i] = 0x05; in snd_us16x08_create_eq_store()
998 tmp->val[b_idx][2][i] = 0xff; in snd_us16x08_create_eq_store()
1001 tmp->val[b_idx][1][i] = 0x0e; in snd_us16x08_create_eq_store()
1002 tmp->val[b_idx][2][i] = 0x02; in snd_us16x08_create_eq_store()
1005 tmp->val[b_idx][1][i] = 0x1b; in snd_us16x08_create_eq_store()
1006 tmp->val[b_idx][2][i] = 0x02; in snd_us16x08_create_eq_store()
1009 tmp->val[b_idx][1][i] = 0x2f in snd_us16x08_create_eq_store()
1011 tmp->val[b_idx][2][i] = 0xff; in snd_us16x08_create_eq_store()
1027 tmp->comp_active_index = 0; in snd_us16x08_create_meter_store()
1061 elem->control = 0; in add_new_ctl()
1062 elem->idx_off = 0; in add_new_ctl()
1082 if (err < 0) in add_new_ctl()
1088 return 0; in add_new_ctl()
1226 .default_val = 0
1242 .default_val = 0
1270 .default_val = 0
1278 .default_val = 0
1286 .default_val = 0
1307 if (err < 0) { in snd_us16x08_controls_create()
1313 for (i = 0; i < 8; i++) in snd_us16x08_controls_create()
1315 elem->cached = 0xff; in snd_us16x08_controls_create()
1323 for (i = 0; i < ARRAY_SIZE(master_controls); i++) { in snd_us16x08_controls_create()
1332 i == 0, /* release comp_store only once */ in snd_us16x08_controls_create()
1334 if (err < 0) in snd_us16x08_controls_create()
1336 elem->cache_val[0] = master_controls[i].default_val; in snd_us16x08_controls_create()
1341 for (i = 0; i < ARRAY_SIZE(channel_controls); i++) { in snd_us16x08_controls_create()
1351 if (err < 0) in snd_us16x08_controls_create()
1353 for (j = 0; j < SND_US16X08_MAX_CHANNELS; j++) { in snd_us16x08_controls_create()
1357 elem->cached = 0xffff; in snd_us16x08_controls_create()
1366 for (i = 0; i < ARRAY_SIZE(eq_controls); i++) { in snd_us16x08_controls_create()
1375 i == 0, /* release eq_store only once */ in snd_us16x08_controls_create()
1377 if (err < 0) in snd_us16x08_controls_create()
1382 for (i = 0; i < ARRAY_SIZE(comp_controls); i++) { in snd_us16x08_controls_create()
1392 if (err < 0) in snd_us16x08_controls_create()
1406 SND_US16X08_ID_METER, USB_MIXER_U16, 0, "Level Meter", in snd_us16x08_controls_create()
1408 if (err < 0) in snd_us16x08_controls_create()
1412 return 0; in snd_us16x08_controls_create()