/sound/usb/ |
D | mixer_scarlett.c | 225 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_info() local 228 uinfo->count = elem->channels; in scarlett_ctl_switch_info() 237 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_get() local 240 for (i = 0; i < elem->channels; i++) { in scarlett_ctl_switch_get() 241 err = snd_usb_get_cur_mix_value(elem, i, i, &val); in scarlett_ctl_switch_get() 255 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_put() local 259 for (i = 0; i < elem->channels; i++) { in scarlett_ctl_switch_put() 260 err = snd_usb_get_cur_mix_value(elem, i, i, &oval); in scarlett_ctl_switch_put() 267 err = snd_usb_set_cur_mix_value(elem, i, i, val); in scarlett_ctl_switch_put() 280 struct usb_mixer_elem_info *elem = mixer_elem_list_to_info(list); in scarlett_ctl_resume() local [all …]
|
D | mixer_us16x08.c | 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() [all …]
|
D | mixer_scarlett_gen2.c | 945 struct usb_mixer_elem_info *elem; in scarlett2_add_new_ctl() local 948 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in scarlett2_add_new_ctl() 949 if (!elem) in scarlett2_add_new_ctl() 956 elem->head.mixer = mixer; in scarlett2_add_new_ctl() 957 elem->control = index; in scarlett2_add_new_ctl() 958 elem->head.id = 0; in scarlett2_add_new_ctl() 959 elem->channels = channels; in scarlett2_add_new_ctl() 960 elem->val_type = USB_MIXER_BESPOKEN; in scarlett2_add_new_ctl() 962 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl() 964 kfree(elem); in scarlett2_add_new_ctl() [all …]
|
D | mixer.h | 63 typedef int (*usb_mixer_elem_resume_func_t)(struct usb_mixer_elem_list *elem);
|
/sound/pci/cs5535audio/ |
D | cs5535audio_olpc.c | 146 struct snd_ctl_elem_id elem; in olpc_quirks() local 159 memset(&elem, 0, sizeof(elem)); in olpc_quirks() 160 elem.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in olpc_quirks() 161 strlcpy(elem.name, "High Pass Filter Enable", sizeof(elem.name)); in olpc_quirks() 162 snd_ctl_remove_id(card, &elem); in olpc_quirks() 165 memset(&elem, 0, sizeof(elem)); in olpc_quirks() 166 elem.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in olpc_quirks() 167 strlcpy(elem.name, "V_REFOUT Enable", sizeof(elem.name)); in olpc_quirks() 168 snd_ctl_remove_id(card, &elem); in olpc_quirks()
|
/sound/soc/sof/ |
D | loader.c | 97 struct sof_ipc_window_elem *elem; in sof_get_windows() local 120 elem = &sdev->info_window->window[i]; in sof_get_windows() 122 window_offset = snd_sof_dsp_get_window_offset(sdev, elem->id); in sof_get_windows() 125 elem->id); in sof_get_windows() 129 switch (elem->type) { in sof_get_windows() 131 inbox_offset = window_offset + elem->offset; in sof_get_windows() 132 inbox_size = elem->size; in sof_get_windows() 136 elem->size, "inbox", in sof_get_windows() 140 outbox_offset = window_offset + elem->offset; in sof_get_windows() 141 outbox_size = elem->size; in sof_get_windows() [all …]
|
D | topology.c | 601 int (*get_token)(void *elem, void *object, u32 offset, u32 size); 606 static int get_token_u32(void *elem, void *object, u32 offset, u32 size) in get_token_u32() argument 608 struct snd_soc_tplg_vendor_value_elem *velem = elem; in get_token_u32() 615 static int get_token_u16(void *elem, void *object, u32 offset, u32 size) in get_token_u16() argument 617 struct snd_soc_tplg_vendor_value_elem *velem = elem; in get_token_u16() 624 static int get_token_comp_format(void *elem, void *object, u32 offset, u32 size) in get_token_comp_format() argument 626 struct snd_soc_tplg_vendor_string_elem *velem = elem; in get_token_comp_format() 633 static int get_token_dai_type(void *elem, void *object, u32 offset, u32 size) in get_token_dai_type() argument 635 struct snd_soc_tplg_vendor_string_elem *velem = elem; in get_token_dai_type() 642 static int get_token_process_type(void *elem, void *object, u32 offset, in get_token_process_type() argument [all …]
|
/sound/sparc/ |
D | dbri.c | 275 #define dbri_dma_off(member, elem) \ argument 277 (&(((struct dbri_dma *)0)->member[elem]))) 2344 int elem = kcontrol->private_value & 0xff; in snd_cs4215_get_single() local 2352 if (elem < 4) in snd_cs4215_get_single() 2354 (dbri->mm.data[elem] >> shift) & mask; in snd_cs4215_get_single() 2357 (dbri->mm.ctrl[elem - 4] >> shift) & mask; in snd_cs4215_get_single() 2369 int elem = kcontrol->private_value & 0xff; in snd_cs4215_put_single() local 2384 if (elem < 4) { in snd_cs4215_put_single() 2385 dbri->mm.data[elem] = (dbri->mm.data[elem] & in snd_cs4215_put_single() 2387 changed = (val != dbri->mm.data[elem]); in snd_cs4215_put_single() [all …]
|
/sound/soc/ |
D | soc-topology.c | 1200 struct snd_soc_tplg_dapm_graph_elem *elem; in soc_tplg_dapm_graph_elems_load() local 1251 elem = (struct snd_soc_tplg_dapm_graph_elem *)tplg->pos; in soc_tplg_dapm_graph_elems_load() 1255 if (strnlen(elem->source, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_graph_elems_load() 1260 if (strnlen(elem->sink, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_graph_elems_load() 1265 if (strnlen(elem->control, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_graph_elems_load() 1271 routes[i]->source = elem->source; in soc_tplg_dapm_graph_elems_load() 1272 routes[i]->sink = elem->sink; in soc_tplg_dapm_graph_elems_load() 1276 if (strnlen(elem->control, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == 0) in soc_tplg_dapm_graph_elems_load() 1279 routes[i]->control = elem->control; in soc_tplg_dapm_graph_elems_load()
|
/sound/core/ |
D | control.c | 1623 ev.data.elem.mask = kev->mask; in snd_ctl_read() 1624 ev.data.elem.id = kev->id; in snd_ctl_read()
|
/sound/pci/hda/ |
D | hda_codec.c | 3042 const struct snd_pcm_chmap_elem *elem; in add_std_chmaps() local 3046 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps() 3047 err = snd_pcm_add_chmap_ctls(pcm->pcm, str, elem, in add_std_chmaps()
|
D | patch_ca0132.c | 6315 const struct snd_pcm_chmap_elem *elem; in ca0132_alt_add_chmap_ctls() local 6317 elem = ca0132_alt_chmaps; in ca0132_alt_add_chmap_ctls() 6321 elem, hinfo->channels_max, 0, &chmap); in ca0132_alt_add_chmap_ctls()
|