Lines Matching refs:elem

1737 	struct usb_mixer_elem_info *elem;  in scarlett2_add_new_ctl()  local
1740 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in scarlett2_add_new_ctl()
1741 if (!elem) in scarlett2_add_new_ctl()
1748 elem->head.mixer = mixer; in scarlett2_add_new_ctl()
1749 elem->control = index; in scarlett2_add_new_ctl()
1750 elem->head.id = 0; in scarlett2_add_new_ctl()
1751 elem->channels = channels; in scarlett2_add_new_ctl()
1752 elem->val_type = USB_MIXER_BESPOKEN; in scarlett2_add_new_ctl()
1754 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl()
1756 kfree(elem); in scarlett2_add_new_ctl()
1763 err = snd_usb_mixer_add_control(&elem->head, kctl); in scarlett2_add_new_ctl()
1798 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_sync_ctl_get() local
1799 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_sync_ctl_get()
1881 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_volume_ctl_info() local
1884 uinfo->count = elem->channels; in scarlett2_volume_ctl_info()
1894 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_master_volume_ctl_get() local
1895 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_master_volume_ctl_get()
1932 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_volume_ctl_get() local
1933 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_volume_ctl_get()
1935 int index = line_out_remap(private, elem->control); in scarlett2_volume_ctl_get()
1955 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_volume_ctl_put() local
1956 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_volume_ctl_put()
1958 int index = line_out_remap(private, elem->control); in scarlett2_volume_ctl_put()
2012 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mute_ctl_get() local
2013 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_mute_ctl_get()
2015 int index = line_out_remap(private, elem->control); in scarlett2_mute_ctl_get()
2035 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mute_ctl_put() local
2036 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_mute_ctl_put()
2038 int index = line_out_remap(private, elem->control); in scarlett2_mute_ctl_put()
2097 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_sw_hw_enum_ctl_get() local
2098 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_sw_hw_enum_ctl_get()
2099 int index = line_out_remap(private, elem->control); in scarlett2_sw_hw_enum_ctl_get()
2173 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_sw_hw_enum_ctl_put() local
2174 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_sw_hw_enum_ctl_put()
2176 int ctl_index = elem->control; in scarlett2_sw_hw_enum_ctl_put()
2269 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_level_enum_ctl_get() local
2270 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_level_enum_ctl_get()
2274 int index = elem->control + info->level_input_first; in scarlett2_level_enum_ctl_get()
2294 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_level_enum_ctl_put() local
2295 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_level_enum_ctl_put()
2299 int index = elem->control + info->level_input_first; in scarlett2_level_enum_ctl_put()
2336 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_pad_ctl_get() local
2337 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_pad_ctl_get()
2349 private->pad_switch[elem->control]; in scarlett2_pad_ctl_get()
2359 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_pad_ctl_put() local
2360 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_pad_ctl_put()
2363 int index = elem->control; in scarlett2_pad_ctl_put()
2400 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_air_ctl_get() local
2401 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_air_ctl_get()
2412 ucontrol->value.integer.value[0] = private->air_switch[elem->control]; in scarlett2_air_ctl_get()
2422 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_air_ctl_put() local
2423 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_air_ctl_put()
2426 int index = elem->control; in scarlett2_air_ctl_put()
2463 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_phantom_ctl_get() local
2464 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_phantom_ctl_get()
2476 private->phantom_switch[elem->control]; in scarlett2_phantom_ctl_get()
2486 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_phantom_ctl_put() local
2487 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_phantom_ctl_put()
2490 int index = elem->control; in scarlett2_phantom_ctl_put()
2527 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_phantom_persistence_ctl_get() local
2528 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_phantom_persistence_ctl_get()
2537 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_phantom_persistence_ctl_put() local
2538 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_phantom_persistence_ctl_put()
2541 int index = elem->control; in scarlett2_phantom_persistence_ctl_put()
2649 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_direct_monitor_ctl_get() local
2650 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_direct_monitor_ctl_get()
2651 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_direct_monitor_ctl_get()
2671 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_direct_monitor_ctl_put() local
2672 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_direct_monitor_ctl_put()
2675 int index = elem->control; in scarlett2_direct_monitor_ctl_put()
2762 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_speaker_switch_enum_ctl_get() local
2763 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_speaker_switch_enum_ctl_get()
2841 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_speaker_switch_enum_ctl_put() local
2842 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_speaker_switch_enum_ctl_put()
2923 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_talkback_enum_ctl_get() local
2924 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_talkback_enum_ctl_get()
2945 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_talkback_enum_ctl_put() local
2946 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_talkback_enum_ctl_put()
2991 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_talkback_map_ctl_get() local
2992 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_talkback_map_ctl_get()
2994 int index = elem->control; in scarlett2_talkback_map_ctl_get()
3004 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_talkback_map_ctl_put() local
3005 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_talkback_map_ctl_put()
3011 int index = elem->control; in scarlett2_talkback_map_ctl_put()
3084 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_dim_mute_ctl_get() local
3085 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_dim_mute_ctl_get()
3096 ucontrol->value.integer.value[0] = private->dim_mute[elem->control]; in scarlett2_dim_mute_ctl_get()
3106 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_dim_mute_ctl_put() local
3107 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_dim_mute_ctl_put()
3114 int index = elem->control; in scarlett2_dim_mute_ctl_put()
3330 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mixer_ctl_info() local
3333 uinfo->count = elem->channels; in scarlett2_mixer_ctl_info()
3343 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mixer_ctl_get() local
3344 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_mixer_ctl_get()
3346 ucontrol->value.integer.value[0] = private->mix[elem->control]; in scarlett2_mixer_ctl_get()
3353 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mixer_ctl_put() local
3354 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_mixer_ctl_put()
3359 int index = elem->control; in scarlett2_mixer_ctl_put()
3433 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mux_src_enum_ctl_info() local
3434 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_mux_src_enum_ctl_info()
3442 uinfo->count = elem->channels; in scarlett2_mux_src_enum_ctl_info()
3468 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mux_src_enum_ctl_get() local
3469 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_mux_src_enum_ctl_get()
3471 int index = line_out_remap(private, elem->control); in scarlett2_mux_src_enum_ctl_get()
3491 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_mux_src_enum_ctl_put() local
3492 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_mux_src_enum_ctl_put()
3494 int index = line_out_remap(private, elem->control); in scarlett2_mux_src_enum_ctl_put()
3562 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_meter_ctl_info() local
3565 uinfo->count = elem->channels; in scarlett2_meter_ctl_info()
3575 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_meter_ctl_get() local
3579 err = scarlett2_usb_get_meter_levels(elem->head.mixer, elem->channels, in scarlett2_meter_ctl_get()
3584 for (i = 0; i < elem->channels; i++) in scarlett2_meter_ctl_get()
3616 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_msd_ctl_get() local
3617 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_msd_ctl_get()
3626 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_msd_ctl_put() local
3627 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_msd_ctl_put()
3683 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_standalone_ctl_get() local
3684 struct scarlett2_data *private = elem->head.mixer->private_data; in scarlett2_standalone_ctl_get()
3693 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_standalone_ctl_put() local
3694 struct usb_mixer_interface *mixer = elem->head.mixer; in scarlett2_standalone_ctl_put()