• Home
  • Raw
  • Download

Lines Matching refs:elem

183 	struct usb_mixer_elem_info *elem = kcontrol->private_data;  in snd_us16x08_route_get()  local
187 ucontrol->value.enumerated.item[0] = elem->cache_val[index]; in snd_us16x08_route_get()
195 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_put() local
196 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_route_put()
229 elem->cached |= 1 << index; in snd_us16x08_route_put()
230 elem->cache_val[index] = val; in snd_us16x08_route_put()
252 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_master_get() local
255 ucontrol->value.integer.value[0] = elem->cache_val[index]; in snd_us16x08_master_get()
263 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_master_put() local
264 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_master_put()
281 buf[6] = elem->head.id; in snd_us16x08_master_put()
288 elem->cached |= 1 << index; in snd_us16x08_master_put()
289 elem->cache_val[index] = val; in snd_us16x08_master_put()
300 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_bus_put() local
301 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_bus_put()
308 switch (elem->head.id) { in snd_us16x08_bus_put()
322 buf[6] = elem->head.id; in snd_us16x08_bus_put()
329 elem->cached |= 1; in snd_us16x08_bus_put()
330 elem->cache_val[0] = val; in snd_us16x08_bus_put()
341 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_bus_get() local
343 switch (elem->head.id) { in snd_us16x08_bus_get()
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()
362 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_channel_get() local
365 ucontrol->value.integer.value[0] = elem->cache_val[index]; in snd_us16x08_channel_get()
373 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_channel_put() local
374 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_channel_put()
391 buf[6] = elem->head.id; in snd_us16x08_channel_put()
397 elem->cached |= 1 << index; in snd_us16x08_channel_put()
398 elem->cache_val[index] = val; in snd_us16x08_channel_put()
420 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_comp_get() local
421 struct snd_us16x08_comp_store *store = elem->private_data; in snd_us16x08_comp_get()
423 int val_idx = COMP_STORE_IDX(elem->head.id); in snd_us16x08_comp_get()
433 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_comp_put() local
434 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_comp_put()
435 struct snd_us16x08_comp_store *store = elem->private_data; in snd_us16x08_comp_put()
449 val_idx = elem->head.id - SND_US16X08_ID_COMP_BASE; in snd_us16x08_comp_put()
475 elem->cached |= 1 << index; in snd_us16x08_comp_put()
476 elem->cache_val[index] = val; in snd_us16x08_comp_put()
488 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_eqswitch_get() local
489 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eqswitch_get()
493 val = store->val[EQ_STORE_BAND_IDX(elem->head.id)] in snd_us16x08_eqswitch_get()
494 [EQ_STORE_PARAM_IDX(elem->head.id)][index]; in snd_us16x08_eqswitch_get()
503 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_eqswitch_put() local
504 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_eqswitch_put()
505 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eqswitch_put()
534 elem->cached |= 1 << index; in snd_us16x08_eqswitch_put()
535 elem->cache_val[index] = val; in snd_us16x08_eqswitch_put()
547 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_eq_get() local
548 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eq_get()
550 int b_idx = EQ_STORE_BAND_IDX(elem->head.id) - 1; in snd_us16x08_eq_get()
551 int p_idx = EQ_STORE_PARAM_IDX(elem->head.id); in snd_us16x08_eq_get()
563 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_eq_put() local
564 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_eq_put()
565 struct snd_us16x08_eq_store *store = elem->private_data; in snd_us16x08_eq_put()
569 int b_idx = EQ_STORE_BAND_IDX(elem->head.id) - 1; in snd_us16x08_eq_put()
570 int p_idx = EQ_STORE_PARAM_IDX(elem->head.id); in snd_us16x08_eq_put()
598 elem->cached |= 1 << index; in snd_us16x08_eq_put()
599 elem->cache_val[index] = val; in snd_us16x08_eq_put()
687 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_meter_get() local
688 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_meter_get()
689 struct snd_us16x08_meter_store *store = elem->private_data; in snd_us16x08_meter_get()
747 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_meter_put() local
748 struct snd_us16x08_meter_store *store = elem->private_data; in snd_us16x08_meter_put()
1034 struct usb_mixer_elem_info *elem = kctl->private_data; in elem_private_free() local
1036 if (elem) in elem_private_free()
1037 kfree(elem->private_data); in elem_private_free()
1038 kfree(elem); in elem_private_free()
1050 struct usb_mixer_elem_info *elem; in add_new_ctl() local
1055 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in add_new_ctl()
1056 if (!elem) in add_new_ctl()
1059 elem->head.mixer = mixer; in add_new_ctl()
1060 elem->head.resume = NULL; in add_new_ctl()
1061 elem->control = 0; in add_new_ctl()
1062 elem->idx_off = 0; in add_new_ctl()
1063 elem->head.id = index; in add_new_ctl()
1064 elem->val_type = val_type; in add_new_ctl()
1065 elem->channels = channels; in add_new_ctl()
1066 elem->private_data = opt; in add_new_ctl()
1068 kctl = snd_ctl_new1(ncontrol, elem); in add_new_ctl()
1070 kfree(elem); in add_new_ctl()
1081 err = snd_usb_mixer_add_control(&elem->head, kctl); in add_new_ctl()
1086 *elem_ret = elem; in add_new_ctl()
1295 struct usb_mixer_elem_info *elem; in snd_us16x08_controls_create() local
1306 NULL, false, &elem); in snd_us16x08_controls_create()
1314 elem->cache_val[i] = i < 2 ? i : i + 2; in snd_us16x08_controls_create()
1315 elem->cached = 0xff; in snd_us16x08_controls_create()
1333 &elem); in snd_us16x08_controls_create()
1336 elem->cache_val[0] = master_controls[i].default_val; in snd_us16x08_controls_create()
1337 elem->cached = 1; in snd_us16x08_controls_create()
1350 false, &elem); in snd_us16x08_controls_create()
1354 elem->cache_val[j] = in snd_us16x08_controls_create()
1357 elem->cached = 0xffff; in snd_us16x08_controls_create()