Lines Matching refs:value
34 u8 value; member
180 uinfo->value.integer.min = 0; in usb6fire_control_output_vol_info()
181 uinfo->value.integer.max = 180; in usb6fire_control_output_vol_info()
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()
203 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put()
204 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put()
227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get()
228 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; in usb6fire_control_output_vol_get()
238 u8 value = 0; in usb6fire_control_output_mute_put() local
247 if (ucontrol->value.integer.value[0]) in usb6fire_control_output_mute_put()
248 value |= 1; in usb6fire_control_output_mute_put()
249 if (ucontrol->value.integer.value[1]) in usb6fire_control_output_mute_put()
250 value |= 2; in usb6fire_control_output_mute_put()
251 rt->output_mute |= value << ch; in usb6fire_control_output_mute_put()
264 u8 value = rt->output_mute >> ch; in usb6fire_control_output_mute_get() local
272 ucontrol->value.integer.value[0] = 1 & value; in usb6fire_control_output_mute_get()
273 value >>= 1; in usb6fire_control_output_mute_get()
274 ucontrol->value.integer.value[1] = 1 & value; in usb6fire_control_output_mute_get()
284 uinfo->value.integer.min = 0; in usb6fire_control_input_vol_info()
285 uinfo->value.integer.max = 30; in usb6fire_control_input_vol_info()
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()
300 if (rt->input_vol[1] != ucontrol->value.integer.value[1]) { in usb6fire_control_input_vol_put()
301 rt->input_vol[1] = ucontrol->value.integer.value[1] - 15; in usb6fire_control_input_vol_put()
317 ucontrol->value.integer.value[0] = rt->input_vol[0] + 15; in usb6fire_control_input_vol_get()
318 ucontrol->value.integer.value[1] = rt->input_vol[1] + 15; in usb6fire_control_input_vol_get()
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()
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()
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()
569 init_data[i].value); in usb6fire_control_init()