Home
last modified time | relevance | path

Searched refs:e (Results 1 – 25 of 90) sorted by relevance

1234

/sound/core/
A Dpcm_drm_eld.c333 memset(e, 0, sizeof(*e)); in snd_parse_eld()
334 e->eld_ver = GRAB_BITS(buf, 0, 3, 5); in snd_parse_eld()
336 e->eld_ver != ELD_VER_PARTIAL) { in snd_parse_eld()
368 for (i = 0; i < e->sad_count; i++) { in snd_parse_eld()
382 if (!e->spk_alloc) in snd_parse_eld()
383 e->spk_alloc = 0xffff; in snd_parse_eld()
466 e->monitor_name, in snd_show_eld()
469 if (e->spk_alloc) { in snd_show_eld()
476 for (i = 0; i < e->sad_count; i++) in snd_show_eld()
532 eld_version_names[e->eld_ver]); in snd_print_eld_info()
[all …]
/sound/isa/gus/
A Dgus_volume.c22 e = 7; in snd_gf1_lvol_to_gvol_raw()
24 while (e > 0 && tmp < (1 << e)) in snd_gf1_lvol_to_gvol_raw()
25 e--; in snd_gf1_lvol_to_gvol_raw()
29 e++; in snd_gf1_lvol_to_gvol_raw()
34 if (e > 8) in snd_gf1_lvol_to_gvol_raw()
35 m >>= e - 8; in snd_gf1_lvol_to_gvol_raw()
36 else if (e < 8) in snd_gf1_lvol_to_gvol_raw()
37 m <<= 8 - e; in snd_gf1_lvol_to_gvol_raw()
52 e = gf1_vol >> 8;
54 rvol = 1 << e;
[all …]
/sound/usb/
A Dmixer_s1810c.c91 u32 e; member
153 pkt.e = (c == 4) ? 0 : e; in snd_s1810c_send_ctl_packet()
221 e = 0xbc; in snd_s1810c_init_mixer_maps()
238 e = 0xb53bf0; in snd_s1810c_init_mixer_maps()
243 e = 0x01000000; in snd_s1810c_init_mixer_maps()
253 e = 0xbc; in snd_s1810c_init_mixer_maps()
261 e = 0xb53bf0; in snd_s1810c_init_mixer_maps()
266 e = 0x01000000; in snd_s1810c_init_mixer_maps()
272 e = 0x01000000; in snd_s1810c_init_mixer_maps()
304 e = 0xbc; in snd_s1810c_init_mixer_maps()
[all …]
/sound/hda/codecs/hdmi/
A Deld.c147 e->conn_type = val; in snd_hdmi_write_eld_info()
149 e->port_id = val; in snd_hdmi_write_eld_info()
151 e->support_hdcp = val; in snd_hdmi_write_eld_info()
153 e->support_ai = val; in snd_hdmi_write_eld_info()
155 e->aud_synch_delay = val; in snd_hdmi_write_eld_info()
157 e->spk_alloc = val; in snd_hdmi_write_eld_info()
159 e->sad_count = val; in snd_hdmi_write_eld_info()
170 e->sad[n].format = val; in snd_hdmi_write_eld_info()
174 e->sad[n].rates = val; in snd_hdmi_write_eld_info()
181 if (n >= e->sad_count) in snd_hdmi_write_eld_info()
[all …]
/sound/core/seq/oss/
A Dseq_oss_event.c125 switch (q->e.cmd) { in extended_event()
127 return note_off_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); in extended_event()
130 return note_on_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); in extended_event()
134 q->e.chn, 0, q->e.p1, ev); in extended_event()
138 q->e.chn, 0, q->e.p1, ev); in extended_event()
142 val = (char)q->e.p1; in extended_event()
145 q->e.chn, CTL_PAN, val, ev); in extended_event()
148 val = ((short)q->e.p3 << 8) | (short)q->e.p2; in extended_event()
149 switch (q->e.p1) { in extended_event()
154 q->e.chn, 0, val, ev); in extended_event()
[all …]
/sound/soc/
A Dsoc-ops.c44 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_soc_info_enum_double()
45 e->items, e->texts); in snd_soc_info_enum_double()
67 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_get_enum_double()
70 if (e->shift_l != e->shift_r) { in snd_soc_get_enum_double()
71 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_get_enum_double()
98 if (item[0] >= e->items) in snd_soc_put_enum_double()
100 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_put_enum_double()
101 mask = e->mask << e->shift_l; in snd_soc_put_enum_double()
102 if (e->shift_l != e->shift_r) { in snd_soc_put_enum_double()
105 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_r; in snd_soc_put_enum_double()
[all …]
A Dsoc-dapm.c410 val = (val >> e->shift_l) & e->mask; in dapm_connect_mux()
422 i = match_string(e->texts, e->items, control_name); in dapm_connect_mux()
752 (e->mask << e->shift_l); in dapm_kcontrol_data_alloc()
2541 if (e && !(strcmp(path->name, e->texts[mux]))) in soc_dapm_mux_update_power()
3444 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_dapm_get_enum_double()
3446 if (e->shift_l != e->shift_r) { in snd_soc_dapm_get_enum_double()
3447 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_dapm_get_enum_double()
3481 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_dapm_put_enum_double()
3482 mask = e->mask << e->shift_l; in snd_soc_dapm_put_enum_double()
3483 if (e->shift_l != e->shift_r) { in snd_soc_dapm_put_enum_double()
[all …]
/sound/soc/meson/
A Dg12a-tohdmitx.c45 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_tohdmitx_i2s_mux_put_enum() local
48 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()
52 changed = snd_soc_component_test_bits(component, e->reg, in g12a_tohdmitx_i2s_mux_put_enum()
63 snd_soc_component_update_bits(component, e->reg, in g12a_tohdmitx_i2s_mux_put_enum()
71 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in g12a_tohdmitx_i2s_mux_put_enum()
96 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_tohdmitx_spdif_mux_put_enum() local
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()
119 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in g12a_tohdmitx_spdif_mux_put_enum()
A Daiu-codec-ctrl.c30 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in aiu_codec_ctrl_mux_put_enum() local
33 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in aiu_codec_ctrl_mux_put_enum()
34 changed = snd_soc_component_test_bits(component, e->reg, in aiu_codec_ctrl_mux_put_enum()
45 snd_soc_component_update_bits(component, e->reg, in aiu_codec_ctrl_mux_put_enum()
52 snd_soc_component_update_bits(component, e->reg, in aiu_codec_ctrl_mux_put_enum()
58 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in aiu_codec_ctrl_mux_put_enum()
A Daiu-acodec-ctrl.c38 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in aiu_acodec_ctrl_mux_put_enum() local
41 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in aiu_acodec_ctrl_mux_put_enum()
42 changed = snd_soc_component_test_bits(component, e->reg, in aiu_acodec_ctrl_mux_put_enum()
53 snd_soc_component_update_bits(component, e->reg, in aiu_acodec_ctrl_mux_put_enum()
59 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in aiu_acodec_ctrl_mux_put_enum()
A Dg12a-toacodec.c71 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_toacodec_mux_put_enum() local
74 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_toacodec_mux_put_enum()
77 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_toacodec_mux_put_enum()
101 snd_soc_component_update_bits(component, e->reg, in g12a_toacodec_mux_put_enum()
105 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in g12a_toacodec_mux_put_enum()
/sound/soc/mediatek/mt8186/
A Dmt8186-misc-control.c92 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in mt8186_sgen_set() local
96 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_set()
146 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in mt8186_sgen_rate_set() local
149 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_rate_set()
189 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in mt8186_sgen_amplitude_set() local
192 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_amplitude_set()
/sound/soc/intel/atom/
A Dsst-atom-controls.c165 unsigned int ctl_no = e->reg; in sst_slot_get()
166 unsigned int is_tx = e->tx; in sst_slot_get()
173 for (mux = e->max; mux > 0; mux--) in sst_slot_get()
196 if (e->w && e->w->power) in sst_check_and_send_slot_map()
198 else if (!e->w) in sst_check_and_send_slot_map()
225 unsigned int ctl_no = e->reg; in sst_slot_put()
226 unsigned int is_tx = e->tx; in sst_slot_put()
235 if (mux > e->max - 1) in sst_slot_put()
240 for (i = 0; i < e->max; i++) in sst_slot_put()
1463 e->w = w; in sst_fill_widget_module_info()
[all …]
/sound/soc/atmel/
A Dtse850-pcm5142.c76 struct soc_enum *e = (struct soc_enum *)kctrl->private_value; in tse850_put_mux1() local
79 if (val >= e->items) in tse850_put_mux1()
106 struct soc_enum *e = (struct soc_enum *)kctrl->private_value; in tse850_put_mux2() local
109 if (val >= e->items) in tse850_put_mux2()
191 struct soc_enum *e = (struct soc_enum *)kctrl->private_value; in tse850_put_ana() local
195 if (uV >= e->items) in tse850_put_ana()
/sound/soc/tegra/
A Dtegra210_mbdrc.c272 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in tegra210_mbdrc_get_enum() local
275 regmap_read(ope->mbdrc_regmap, e->reg, &val); in tegra210_mbdrc_get_enum()
277 ucontrol->value.enumerated.item[0] = (val >> e->shift_l) & e->mask; in tegra210_mbdrc_get_enum()
287 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in tegra210_mbdrc_put_enum() local
292 if (ucontrol->value.enumerated.item[0] > e->items - 1) in tegra210_mbdrc_put_enum()
295 val = ucontrol->value.enumerated.item[0] << e->shift_l; in tegra210_mbdrc_put_enum()
296 mask = e->mask << e->shift_l; in tegra210_mbdrc_put_enum()
298 regmap_update_bits_check(ope->mbdrc_regmap, e->reg, mask, val, in tegra210_mbdrc_put_enum()
/sound/soc/codecs/
A Drt715.c552 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt715_mux_get() local
557 reg = RT715_VERB_SET_CONNECT_SEL | e->reg; in rt715_mux_get()
570 if ((e->reg == RT715_MUX_IN3 || e->reg == RT715_MUX_IN4) && (val > 0)) in rt715_mux_get()
585 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt715_mux_put() local
590 if (item[0] >= e->items) in rt715_mux_put()
594 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in rt715_mux_put()
596 reg = RT715_VERB_SET_CONNECT_SEL | e->reg; in rt715_mux_put()
610 reg = RT715_VERB_SET_CONNECT_SEL | e->reg; in rt715_mux_put()
615 item[0], e, NULL); in rt715_mux_put()
A Dsimple-mux.c50 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in simple_mux_control_put() local
54 if (ucontrol->value.enumerated.item[0] > e->items) in simple_mux_control_put()
69 e, NULL); in simple_mux_control_put()
A Drt711-sdca.c815 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt711_sdca_ge_select_get() local
820 val = (rt711->ge_mode_override >> e->shift_l) & e->mask; in rt711_sdca_ge_select_get()
821 item = snd_soc_enum_val_to_item(e, val); in rt711_sdca_ge_select_get()
829 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt711_sdca_ge_select_put() local
835 if (item[0] >= e->items) in rt711_sdca_ge_select_put()
838 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in rt711_sdca_ge_select_put()
931 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt711_sdca_mux_put() local
935 if (item[0] >= e->items) in rt711_sdca_mux_put()
945 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in rt711_sdca_mux_put()
962 item[0], e, NULL); in rt711_sdca_mux_put()
A Dwm8804.c162 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in txsrc_put() local
163 unsigned int val = ucontrol->value.enumerated.item[0] << e->shift_l; in txsrc_put()
164 unsigned int mask = 1 << e->shift_l; in txsrc_put()
172 if (snd_soc_component_test_bits(component, e->reg, mask, val)) { in txsrc_put()
180 snd_soc_component_update_bits(component, e->reg, mask, val); in txsrc_put()
A Dmadera.c668 val = mux << e->shift_l; in madera_inmux_put()
669 mask = (e->mask << e->shift_l) | MADERA_IN1L_SRC_SE_MASK; in madera_inmux_put()
671 switch (e->reg) { in madera_inmux_put()
700 mux, e, NULL); in madera_inmux_put()
881 const int adsp_num = e->shift_l; in madera_adsp_rate_get()
901 const int adsp_num = e->shift_l; in madera_adsp_rate_put()
905 if (item >= e->items) in madera_adsp_rate_put()
1065 if (item >= e->items) in madera_rate_put()
1075 val >>= e->shift_l; in madera_rate_put()
1076 val &= e->mask; in madera_rate_put()
[all …]
A Dcs48l32.c334 switch (e->reg) { in cs48l32_inmux_put()
345 src_val = mux << e->shift_l; in cs48l32_inmux_put()
351 e->reg, in cs48l32_inmux_put()
418 e->reg, in cs48l32_dmode_put()
955 item = snd_soc_enum_val_to_item(e, cs48l32_codec->eq_mode[e->shift_l]); in cs48l32_eq_mode_get()
972 if (item[0] >= e->items) in cs48l32_eq_mode_put()
979 cs48l32_codec->eq_mode[e->shift_l] = val; in cs48l32_eq_mode_put()
1069 const unsigned int rate_num = e->mask; in cs48l32_dsp_rate_get()
1089 const unsigned int rate_num = e->mask; in cs48l32_dsp_rate_put()
1094 if (item >= e->items) in cs48l32_dsp_rate_put()
[all …]
/sound/pci/ac97/
A Dac97_codec.c451 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_ac97_info_enum_double()
452 e->mask, e->texts); in snd_ac97_info_enum_double()
462 for (bitmask = 1; bitmask < e->mask; bitmask <<= 1) in snd_ac97_get_enum_double()
464 val = snd_ac97_read_cache(ac97, e->reg); in snd_ac97_get_enum_double()
466 if (e->shift_l != e->shift_r) in snd_ac97_get_enum_double()
480 for (bitmask = 1; bitmask < e->mask; bitmask <<= 1) in snd_ac97_put_enum_double()
482 if (ucontrol->value.enumerated.item[0] > e->mask - 1) in snd_ac97_put_enum_double()
485 mask = (bitmask - 1) << e->shift_l; in snd_ac97_put_enum_double()
486 if (e->shift_l != e->shift_r) { in snd_ac97_put_enum_double()
490 mask |= (bitmask - 1) << e->shift_r; in snd_ac97_put_enum_double()
[all …]
/sound/firewire/bebob/
A Dbebob_stream.c708 unsigned int i, e, channels, format; in parse_stream_formation() local
729 for (e = 0; e < buf[4]; e++) { in parse_stream_formation()
730 channels = buf[5 + e * 2]; in parse_stream_formation()
731 format = buf[6 + e * 2]; in parse_stream_formation()
/sound/firewire/oxfw/
A Doxfw-stream.c554 unsigned int i, e, channels, type; in snd_oxfw_stream_parse_format() local
576 for (e = 0; e < format[4]; e++) { in snd_oxfw_stream_parse_format()
577 channels = format[5 + e * 2]; in snd_oxfw_stream_parse_format()
578 type = format[6 + e * 2]; in snd_oxfw_stream_parse_format()
/sound/soc/fsl/
A Dfsl_audmix.c116 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in fsl_audmix_put_mix_clk_src() local
124 val = snd_soc_enum_item_to_val(e, item[0]); in fsl_audmix_put_mix_clk_src()
154 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in fsl_audmix_put_out_src() local
170 val = snd_soc_enum_item_to_val(e, item[0]); in fsl_audmix_put_out_src()

Completed in 89 milliseconds

1234