Lines Matching +full:0 +full:x22

37 	{ 0x22, 0x00, 0x00 }, { 0x20, 0x00, 0x08 }, { 0x22, 0x01, 0x01 },
38 { 0x20, 0x01, 0x08 }, { 0x22, 0x02, 0x00 }, { 0x20, 0x02, 0x08 },
39 { 0x22, 0x03, 0x00 }, { 0x20, 0x03, 0x08 }, { 0x22, 0x04, 0x00 },
40 { 0x20, 0x04, 0x08 }, { 0x22, 0x05, 0x01 }, { 0x20, 0x05, 0x08 },
41 { 0x22, 0x04, 0x01 }, { 0x12, 0x04, 0x00 }, { 0x12, 0x05, 0x00 },
42 { 0x12, 0x0d, 0x38 }, { 0x12, 0x21, 0x82 }, { 0x12, 0x22, 0x80 },
43 { 0x12, 0x23, 0x00 }, { 0x12, 0x06, 0x02 }, { 0x12, 0x03, 0x00 },
44 { 0x12, 0x02, 0x00 }, { 0x22, 0x03, 0x01 },
45 { 0 } /* TERMINATING ENTRY */
50 static const u16 rates_6fire_vl[] = {0x00, 0x01, 0x00, 0x01, 0x00, 0x01};
51 static const u16 rates_6fire_vh[] = {0x11, 0x11, 0x10, 0x10, 0x00, 0x00};
53 static DECLARE_TLV_DB_MINMAX(tlv_output, -9000, 0);
66 for (i = 0; i < 6; i++) in usb6fire_control_output_vol_update()
68 comm_rt->write8(comm_rt, 0x12, 0x0f + i, in usb6fire_control_output_vol_update()
79 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update()
88 for (i = 0; i < 2; i++) in usb6fire_control_input_vol_update()
90 comm_rt->write8(comm_rt, 0x12, 0x1c + i, in usb6fire_control_input_vol_update()
91 rt->input_vol[i] & 0x3f); in usb6fire_control_input_vol_update()
100 comm_rt->write8(comm_rt, 0x22, 0x02, rt->line_phono_switch); in usb6fire_control_line_phono_update()
101 comm_rt->write8(comm_rt, 0x21, 0x02, rt->line_phono_switch); in usb6fire_control_line_phono_update()
109 comm_rt->write8(comm_rt, 0x22, 0x00, rt->opt_coax_switch); in usb6fire_control_opt_coax_update()
110 comm_rt->write8(comm_rt, 0x21, 0x00, rt->opt_coax_switch); in usb6fire_control_opt_coax_update()
120 if (rate < 0 || rate >= CONTROL_N_RATES) in usb6fire_control_set_rate()
124 if (ret < 0) in usb6fire_control_set_rate()
128 ret = comm_rt->write16(comm_rt, 0x02, 0x01, rates_6fire_vl[rate], in usb6fire_control_set_rate()
130 if (ret < 0) in usb6fire_control_set_rate()
133 return 0; in usb6fire_control_set_rate()
145 ret = comm_rt->write16(comm_rt, 0x02, 0x02, in usb6fire_control_set_channels()
148 if (ret < 0) in usb6fire_control_set_channels()
153 ret = comm_rt->write16(comm_rt, 0x02, 0x03, 0x00, 0x00); in usb6fire_control_set_channels()
154 if (ret < 0) in usb6fire_control_set_channels()
157 return 0; in usb6fire_control_set_channels()
168 return comm_rt->write16(comm_rt, 0x02, 0x00, 0x00, in usb6fire_control_streaming_update()
169 (rt->usb_streaming ? 0x01 : 0x00) | in usb6fire_control_streaming_update()
170 (rt->digital_thru_switch ? 0x08 : 0x00)); in usb6fire_control_streaming_update()
180 uinfo->value.integer.min = 0; in usb6fire_control_output_vol_info()
182 return 0; in usb6fire_control_output_vol_info()
190 int changed = 0; in usb6fire_control_output_vol_put()
198 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put()
199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put()
227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get()
229 return 0; in usb6fire_control_output_vol_get()
238 u8 value = 0; in usb6fire_control_output_mute_put()
247 if (ucontrol->value.integer.value[0]) in usb6fire_control_output_mute_put()
272 ucontrol->value.integer.value[0] = 1 & value; in usb6fire_control_output_mute_get()
276 return 0; in usb6fire_control_output_mute_get()
284 uinfo->value.integer.min = 0; in usb6fire_control_input_vol_info()
286 return 0; in usb6fire_control_input_vol_info()
293 int changed = 0; in usb6fire_control_input_vol_put()
295 if (rt->input_vol[0] != ucontrol->value.integer.value[0]) { in usb6fire_control_input_vol_put()
296 rt->input_vol[0] = ucontrol->value.integer.value[0] - 15; in usb6fire_control_input_vol_put()
297 rt->ivol_updated &= ~(1 << 0); in usb6fire_control_input_vol_put()
317 ucontrol->value.integer.value[0] = rt->input_vol[0] + 15; in usb6fire_control_input_vol_get()
320 return 0; in usb6fire_control_input_vol_get()
333 int changed = 0; in usb6fire_control_line_phono_put()
334 if (rt->line_phono_switch != ucontrol->value.integer.value[0]) { in usb6fire_control_line_phono_put()
335 rt->line_phono_switch = ucontrol->value.integer.value[0]; in usb6fire_control_line_phono_put()
346 ucontrol->value.integer.value[0] = rt->line_phono_switch; in usb6fire_control_line_phono_get()
347 return 0; in usb6fire_control_line_phono_get()
360 int changed = 0; in usb6fire_control_opt_coax_put()
362 if (rt->opt_coax_switch != ucontrol->value.enumerated.item[0]) { in usb6fire_control_opt_coax_put()
363 rt->opt_coax_switch = ucontrol->value.enumerated.item[0]; in usb6fire_control_opt_coax_put()
374 ucontrol->value.enumerated.item[0] = rt->opt_coax_switch; in usb6fire_control_opt_coax_get()
375 return 0; in usb6fire_control_opt_coax_get()
382 int changed = 0; in usb6fire_control_digital_thru_put()
384 if (rt->digital_thru_switch != ucontrol->value.integer.value[0]) { in usb6fire_control_digital_thru_put()
385 rt->digital_thru_switch = ucontrol->value.integer.value[0]; in usb6fire_control_digital_thru_put()
396 ucontrol->value.integer.value[0] = rt->digital_thru_switch; in usb6fire_control_digital_thru_get()
397 return 0; in usb6fire_control_digital_thru_get()
404 .index = 0,
405 .private_value = 0,
444 .index = 0,
445 .private_value = 0,
478 .index = 0,
487 .index = 0,
496 .index = 0,
505 .index = 0,
531 if (ret < 0) in usb6fire_control_add_virtual()
534 i = 0; in usb6fire_control_add_virtual()
540 if (ret < 0) in usb6fire_control_add_virtual()
543 if (ret < 0) in usb6fire_control_add_virtual()
547 return 0; in usb6fire_control_add_virtual()
566 i = 0; in usb6fire_control_init()
595 i = 0; in usb6fire_control_init()
598 if (ret < 0) { in usb6fire_control_init()
607 return 0; in usb6fire_control_init()