Home
last modified time | relevance | path

Searched refs:enumerated (Results 1 – 25 of 264) sorted by relevance

1234567891011

/linux-6.12.1/sound/soc/ti/
Dn810.c123 ucontrol->value.enumerated.item[0] = n810_spk_func; in n810_get_spk()
133 if (n810_spk_func == ucontrol->value.enumerated.item[0]) in n810_set_spk()
136 n810_spk_func = ucontrol->value.enumerated.item[0]; in n810_set_spk()
145 ucontrol->value.enumerated.item[0] = n810_jack_func; in n810_get_jack()
155 if (n810_jack_func == ucontrol->value.enumerated.item[0]) in n810_set_jack()
158 n810_jack_func = ucontrol->value.enumerated.item[0]; in n810_set_jack()
167 ucontrol->value.enumerated.item[0] = n810_dmic_func; in n810_get_input()
177 if (n810_dmic_func == ucontrol->value.enumerated.item[0]) in n810_set_input()
180 n810_dmic_func = ucontrol->value.enumerated.item[0]; in n810_set_input()
Drx51.c119 ucontrol->value.enumerated.item[0] = rx51_spk_func; in rx51_get_spk()
129 if (rx51_spk_func == ucontrol->value.enumerated.item[0]) in rx51_set_spk()
132 rx51_spk_func = ucontrol->value.enumerated.item[0]; in rx51_set_spk()
154 ucontrol->value.enumerated.item[0] = rx51_dmic_func; in rx51_get_input()
164 if (rx51_dmic_func == ucontrol->value.enumerated.item[0]) in rx51_set_input()
167 rx51_dmic_func = ucontrol->value.enumerated.item[0]; in rx51_set_input()
176 ucontrol->value.enumerated.item[0] = rx51_jack_func; in rx51_get_jack()
186 if (rx51_jack_func == ucontrol->value.enumerated.item[0]) in rx51_set_jack()
189 rx51_jack_func = ucontrol->value.enumerated.item[0]; in rx51_set_jack()
/linux-6.12.1/sound/drivers/pcsp/
Dpcsp_mixer.c51 uinfo->value.enumerated.items = chip->max_treble + 1; in pcsp_treble_info()
52 if (uinfo->value.enumerated.item > chip->max_treble) in pcsp_treble_info()
53 uinfo->value.enumerated.item = chip->max_treble; in pcsp_treble_info()
54 sprintf(uinfo->value.enumerated.name, "%lu", in pcsp_treble_info()
55 (unsigned long)PCSP_CALC_RATE(uinfo->value.enumerated.item)); in pcsp_treble_info()
63 ucontrol->value.enumerated.item[0] = chip->treble; in pcsp_treble_get()
72 int treble = ucontrol->value.enumerated.item[0]; in pcsp_treble_put()
/linux-6.12.1/drivers/staging/greybus/
Daudio_topology.c190 max = le32_to_cpu(info->value.enumerated.items); in gbcodec_mixer_ctl_info()
191 uinfo->value.enumerated.items = max; in gbcodec_mixer_ctl_info()
192 if (uinfo->value.enumerated.item > max - 1) in gbcodec_mixer_ctl_info()
193 uinfo->value.enumerated.item = max - 1; in gbcodec_mixer_ctl_info()
198 uinfo->value.enumerated.item); in gbcodec_mixer_ctl_info()
199 strscpy(uinfo->value.enumerated.name, name, sizeof(uinfo->value.enumerated.name)); in gbcodec_mixer_ctl_info()
256 ucontrol->value.enumerated.item[0] = in gbcodec_mixer_ctl_get()
259 ucontrol->value.enumerated.item[1] = in gbcodec_mixer_ctl_get()
304 cpu_to_le32(ucontrol->value.enumerated.item[0]); in gbcodec_mixer_ctl_put()
307 cpu_to_le32(ucontrol->value.enumerated.item[1]); in gbcodec_mixer_ctl_put()
[all …]
/linux-6.12.1/sound/virtio/
Dvirtio_kctl.c79 uinfo->value.enumerated.items = in virtsnd_kctl_info()
80 le32_to_cpu(kinfo->value.enumerated.items); in virtsnd_kctl_info()
81 i = uinfo->value.enumerated.item; in virtsnd_kctl_info()
82 if (i >= uinfo->value.enumerated.items) in virtsnd_kctl_info()
85 strscpy(uinfo->value.enumerated.name, kctl->items[i].item, in virtsnd_kctl_info()
86 sizeof(uinfo->value.enumerated.name)); in virtsnd_kctl_info()
149 uvalue->value.enumerated.item[i] = in virtsnd_kctl_get()
150 le32_to_cpu(kvalue->value.enumerated[i]); in virtsnd_kctl_get()
214 kvalue->value.enumerated[i] = in virtsnd_kctl_put()
215 cpu_to_le32(uvalue->value.enumerated.item[i]); in virtsnd_kctl_put()
[all …]
/linux-6.12.1/sound/soc/tegra/
Dtegra210_dmic.c191 ucontrol->value.enumerated.item[0] = dmic->ch_select; in tegra210_dmic_get_ch_select()
201 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_ch_select()
217 ucontrol->value.enumerated.item[0] = dmic->mono_to_stereo; in tegra210_dmic_get_mono_to_stereo()
227 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_mono_to_stereo()
243 ucontrol->value.enumerated.item[0] = dmic->stereo_to_mono; in tegra210_dmic_get_stereo_to_mono()
253 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_stereo_to_mono()
269 ucontrol->value.enumerated.item[0] = dmic->osr_val; in tegra210_dmic_get_osr_val()
279 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_osr_val()
295 ucontrol->value.enumerated.item[0] = dmic->lrsel; in tegra210_dmic_get_pol_sel()
305 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_pol_sel()
Dtegra186_dspk.c60 ucontrol->value.enumerated.item[0] = dspk->osr_val; in tegra186_dspk_get_osr_val()
70 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_osr_val()
86 ucontrol->value.enumerated.item[0] = dspk->lrsel; in tegra186_dspk_get_pol_sel()
96 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_pol_sel()
112 ucontrol->value.enumerated.item[0] = dspk->ch_sel; in tegra186_dspk_get_ch_sel()
122 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_ch_sel()
138 ucontrol->value.enumerated.item[0] = dspk->mono_to_stereo; in tegra186_dspk_get_mono_to_stereo()
148 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_mono_to_stereo()
164 ucontrol->value.enumerated.item[0] = dspk->stereo_to_mono; in tegra186_dspk_get_stereo_to_mono()
174 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_stereo_to_mono()
/linux-6.12.1/sound/soc/pxa/
Dspitz.c161 ucontrol->value.enumerated.item[0] = spitz_jack_func; in spitz_get_jack()
170 if (spitz_jack_func == ucontrol->value.enumerated.item[0]) in spitz_set_jack()
173 spitz_jack_func = ucontrol->value.enumerated.item[0]; in spitz_set_jack()
181 ucontrol->value.enumerated.item[0] = spitz_spk_func; in spitz_get_spk()
190 if (spitz_spk_func == ucontrol->value.enumerated.item[0]) in spitz_set_spk()
193 spitz_spk_func = ucontrol->value.enumerated.item[0]; in spitz_set_spk()
/linux-6.12.1/sound/core/
Dcontrol_compat.c73 } enumerated; member
96 if (get_user(data->value.enumerated.item, &data32->value.enumerated.item)) in snd_ctl_elem_info_compat()
128 if (copy_to_user(&data32->value.enumerated, in snd_ctl_elem_info_compat()
129 &data->value.enumerated, in snd_ctl_elem_info_compat()
130 sizeof(data->value.enumerated))) in snd_ctl_elem_info_compat()
408 if (copy_from_user(&data->value.enumerated, in snd_ctl_elem_add_compat()
409 &data32->value.enumerated, in snd_ctl_elem_add_compat()
410 sizeof(data->value.enumerated))) in snd_ctl_elem_add_compat()
412 data->value.enumerated.names_ptr = in snd_ctl_elem_add_compat()
413 (uintptr_t)compat_ptr(data->value.enumerated.names_ptr); in snd_ctl_elem_add_compat()
Dcontrol.c963 info->value.enumerated.items == 0) { in snd_ctl_check_elem_info()
1037 lval = control->value.enumerated.item[i]; in sanity_check_int_value()
1039 lmax = info->value.enumerated.items - 1; in sanity_check_int_value()
1426 item = uinfo->value.enumerated.item; in snd_ctl_elem_user_enum_info()
1432 item = min(item, uinfo->value.enumerated.items - 1); in snd_ctl_elem_user_enum_info()
1433 uinfo->value.enumerated.item = item; in snd_ctl_elem_user_enum_info()
1438 strcpy(uinfo->value.enumerated.name, names); in snd_ctl_elem_user_enum_info()
1560 const uintptr_t user_ptrval = ue->info.value.enumerated.names_ptr; in snd_ctl_elem_init_enum_names()
1564 buf_len = ue->info.value.enumerated.names_length; in snd_ctl_elem_init_enum_names()
1576 for (i = 0; i < ue->info.value.enumerated.items; ++i) { in snd_ctl_elem_init_enum_names()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dsimple-mux.c39 ucontrol->value.enumerated.item[0] = priv->mux; in simple_mux_control_get()
52 if (ucontrol->value.enumerated.item[0] > e->items) in simple_mux_control_put()
55 if (priv->mux == ucontrol->value.enumerated.item[0]) in simple_mux_control_put()
58 priv->mux = ucontrol->value.enumerated.item[0]; in simple_mux_control_put()
63 ucontrol->value.enumerated.item[0], in simple_mux_control_put()
Daw87390.c188 uinfo->value.enumerated.items = 0; in aw87390_profile_info()
192 uinfo->value.enumerated.items = count; in aw87390_profile_info()
194 if (uinfo->value.enumerated.item >= count) in aw87390_profile_info()
195 uinfo->value.enumerated.item = count - 1; in aw87390_profile_info()
197 name = uinfo->value.enumerated.name; in aw87390_profile_info()
198 count = uinfo->value.enumerated.item; in aw87390_profile_info()
202 strscpy(uinfo->value.enumerated.name, "null", in aw87390_profile_info()
207 strscpy(name, prof_name, sizeof(uinfo->value.enumerated.name)); in aw87390_profile_info()
Dwl1273.c164 ucontrol->value.enumerated.item[0] = wl1273->mode; in snd_wl1273_get_audio_route()
182 if (wl1273->mode == ucontrol->value.enumerated.item[0]) in snd_wl1273_set_audio_route()
189 if (ucontrol->value.enumerated.item[0] >= ARRAY_SIZE(wl1273_audio_route)) in snd_wl1273_set_audio_route()
192 wl1273->mode = ucontrol->value.enumerated.item[0]; in snd_wl1273_set_audio_route()
207 ucontrol->value.enumerated.item[0] = wl1273->core->audio_mode; in snd_wl1273_fm_audio_get()
221 val = ucontrol->value.enumerated.item[0]; in snd_wl1273_fm_audio_put()
Dcpcap.c393 ucontrol->value.enumerated.item[0] = 3; in cpcap_output_mux_get_enum()
396 ucontrol->value.enumerated.item[0] = 2; in cpcap_output_mux_get_enum()
399 ucontrol->value.enumerated.item[0] = 1; in cpcap_output_mux_get_enum()
402 ucontrol->value.enumerated.item[0] = 0; in cpcap_output_mux_get_enum()
417 unsigned int muxval = ucontrol->value.enumerated.item[0]; in cpcap_output_mux_put_enum()
474 ucontrol->value.enumerated.item[0] = 4; in cpcap_input_right_mux_get_enum()
477 ucontrol->value.enumerated.item[0] = 3; in cpcap_input_right_mux_get_enum()
480 ucontrol->value.enumerated.item[0] = 2; in cpcap_input_right_mux_get_enum()
483 ucontrol->value.enumerated.item[0] = 1; in cpcap_input_right_mux_get_enum()
486 ucontrol->value.enumerated.item[0] = 0; in cpcap_input_right_mux_get_enum()
[all …]
/linux-6.12.1/sound/pci/ac97/
Dac97_patch.c80 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get()
87 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put()
109 ucontrol->value.enumerated.item[0] = ac97->channel_mode; in ac97_channel_mode_get()
116 unsigned char mode = ucontrol->value.enumerated.item[0]; in ac97_channel_mode_put()
234 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ymf7x3_get_speaker()
244 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf7x3_put_speaker()
246 val = (ucontrol->value.enumerated.item[0] + 1) << 10; in snd_ac97_ymf7x3_put_speaker()
276 ucontrol->value.enumerated.item[0] = (val >> 1) & 1; in snd_ac97_ymf7x3_spdif_source_get()
286 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ymf7x3_spdif_source_put()
288 val = ucontrol->value.enumerated.item[0] << 1; in snd_ac97_ymf7x3_spdif_source_put()
[all …]
/linux-6.12.1/sound/isa/sb/
Dsb_mixer.c188 ucontrol->value.enumerated.item[0] = 0; in snd_dt019x_input_sw_get()
191 ucontrol->value.enumerated.item[0] = 1; in snd_dt019x_input_sw_get()
194 ucontrol->value.enumerated.item[0] = 2; in snd_dt019x_input_sw_get()
197 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get()
207 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get()
220 if (ucontrol->value.enumerated.item[0] > 4) in snd_dt019x_input_sw_put()
222 switch (ucontrol->value.enumerated.item[0]) { in snd_dt019x_input_sw_put()
278 ucontrol->value.enumerated.item[0] = oval; in snd_als4k_mono_capture_route_get()
290 if (ucontrol->value.enumerated.item[0] > 2) in snd_als4k_mono_capture_route_put()
296 | (ucontrol->value.enumerated.item[0] << 6); in snd_als4k_mono_capture_route_put()
[all …]
/linux-6.12.1/sound/soc/atmel/
Dtse850-pcm5142.c65 ucontrol->value.enumerated.item[0] = tse850->loop1_cache; in tse850_get_mux1()
77 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux1()
95 ucontrol->value.enumerated.item[0] = tse850->loop2_cache; in tse850_get_mux2()
107 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux2()
125 ucontrol->value.enumerated.item[0] = tse850->add_cache; in tse850_get_mix()
180 ucontrol->value.enumerated.item[0] = ret; in tse850_get_ana()
192 unsigned int uV = ucontrol->value.enumerated.item[0]; in tse850_put_ana()
/linux-6.12.1/sound/pci/oxygen/
Dxonar_dg_mixer.c66 value->value.enumerated.item[0] = data->output_sel; in output_select_get()
76 unsigned int new = value->value.enumerated.item[0]; in output_select_put()
286 value->value.enumerated.item[0] = data->input_sel; in input_sel_get()
299 if (value->value.enumerated.item[0] > 3) in input_sel_put()
303 changed = value->value.enumerated.item[0] != data->input_sel; in input_sel_put()
305 data->input_sel = value->value.enumerated.item[0]; in input_sel_put()
332 value->value.enumerated.item[0] = in hpf_get()
346 if (value->value.enumerated.item[0]) in hpf_put()
Dxonar_pcm179x.c750 value->value.enumerated.item[0] = in rolloff_get()
768 if (!value->value.enumerated.item[0]) in rolloff_put()
859 value->value.enumerated.item[0] = 0; in st_output_switch_get()
861 value->value.enumerated.item[0] = 1; in st_output_switch_get()
863 value->value.enumerated.item[0] = 2; in st_output_switch_get()
878 switch (value->value.enumerated.item[0]) { in st_output_switch_put()
914 value->value.enumerated.item[0] = 0; in st_hp_volume_offset_get()
916 value->value.enumerated.item[0] = 1; in st_hp_volume_offset_get()
918 value->value.enumerated.item[0] = 2; in st_hp_volume_offset_get()
920 value->value.enumerated.item[0] = 3; in st_hp_volume_offset_get()
[all …]
/linux-6.12.1/sound/usb/line6/
Dtoneport.c197 uinfo->value.enumerated.items = size; in snd_toneport_source_info()
199 if (uinfo->value.enumerated.item >= size) in snd_toneport_source_info()
200 uinfo->value.enumerated.item = size - 1; in snd_toneport_source_info()
202 strcpy(uinfo->value.enumerated.name, in snd_toneport_source_info()
203 toneport_source_info[uinfo->value.enumerated.item].name); in snd_toneport_source_info()
215 ucontrol->value.enumerated.item[0] = toneport->source; in snd_toneport_source_get()
227 source = ucontrol->value.enumerated.item[0]; in snd_toneport_source_put()
/linux-6.12.1/sound/soc/codecs/aw88395/
Daw88395.c186 uinfo->value.enumerated.items = 0; in aw88395_profile_info()
190 uinfo->value.enumerated.items = count; in aw88395_profile_info()
192 if (uinfo->value.enumerated.item >= count) in aw88395_profile_info()
193 uinfo->value.enumerated.item = count - 1; in aw88395_profile_info()
195 name = uinfo->value.enumerated.name; in aw88395_profile_info()
196 count = uinfo->value.enumerated.item; in aw88395_profile_info()
200 strscpy(uinfo->value.enumerated.name, "null", in aw88395_profile_info()
205 strscpy(name, prof_name, sizeof(uinfo->value.enumerated.name)); in aw88395_profile_info()
/linux-6.12.1/sound/pci/asihpi/
Dasihpi.c1637 ucontrol->value.enumerated.item[0] = 0; in snd_asihpi_aesebu_format_get()
1642 ucontrol->value.enumerated.item[0] = 1; in snd_asihpi_aesebu_format_get()
1644 ucontrol->value.enumerated.item[0] = 2; in snd_asihpi_aesebu_format_get()
1658 if (ucontrol->value.enumerated.item[0] == 1) in snd_asihpi_aesebu_format_put()
1660 if (ucontrol->value.enumerated.item[0] == 2) in snd_asihpi_aesebu_format_put()
1870 ucontrol->value.enumerated.item[0] = -1; in snd_asihpi_tuner_band_get()
1873 ucontrol->value.enumerated.item[0] = idx; in snd_asihpi_tuner_band_get()
1895 idx = ucontrol->value.enumerated.item[0]; in snd_asihpi_tuner_band_put()
2125 uinfo->value.enumerated.items = in snd_asihpi_mux_info()
2128 if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items) in snd_asihpi_mux_info()
[all …]
/linux-6.12.1/sound/soc/meson/
Dg12a-tohdmitx.c48 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_i2s_mux_put_enum()
51 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_i2s_mux_put_enum()
99 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_spdif_mux_put_enum()
102 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_spdif_mux_put_enum()
/linux-6.12.1/sound/soc/mediatek/mt8186/
Dmt8186-misc-control.c96 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_set()
149 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_rate_set()
192 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_amplitude_set()
/linux-6.12.1/sound/pci/rme9652/
Dhdsp.c1669 ucontrol->value.enumerated.item[0] = hdsp_spdif_in(hdsp); in snd_hdsp_get_spdif_in()
1681 val = ucontrol->value.enumerated.item[0] % ((hdsp->io_type == H9632) ? 4 : 3); in snd_hdsp_put_spdif_in()
1775 ucontrol->value.enumerated.item[0] = 0; in snd_hdsp_get_spdif_sample_rate()
1778 ucontrol->value.enumerated.item[0] = 1; in snd_hdsp_get_spdif_sample_rate()
1781 ucontrol->value.enumerated.item[0] = 2; in snd_hdsp_get_spdif_sample_rate()
1784 ucontrol->value.enumerated.item[0] = 3; in snd_hdsp_get_spdif_sample_rate()
1787 ucontrol->value.enumerated.item[0] = 4; in snd_hdsp_get_spdif_sample_rate()
1790 ucontrol->value.enumerated.item[0] = 5; in snd_hdsp_get_spdif_sample_rate()
1793 ucontrol->value.enumerated.item[0] = 7; in snd_hdsp_get_spdif_sample_rate()
1796 ucontrol->value.enumerated.item[0] = 8; in snd_hdsp_get_spdif_sample_rate()
[all …]

1234567891011