Home
last modified time | relevance | path

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

123

/sound/pci/hda/
Dhda_eld.c224 int snd_hdmi_parse_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e, in snd_hdmi_parse_eld() argument
230 memset(e, 0, sizeof(*e)); in snd_hdmi_parse_eld()
231 e->eld_ver = GRAB_BITS(buf, 0, 3, 5); in snd_hdmi_parse_eld()
232 if (e->eld_ver != ELD_VER_CEA_861D && in snd_hdmi_parse_eld()
233 e->eld_ver != ELD_VER_PARTIAL) { in snd_hdmi_parse_eld()
234 codec_info(codec, "HDMI: Unknown ELD version %d\n", e->eld_ver); in snd_hdmi_parse_eld()
238 e->baseline_len = GRAB_BITS(buf, 2, 0, 8); in snd_hdmi_parse_eld()
240 e->cea_edid_ver = GRAB_BITS(buf, 4, 5, 3); in snd_hdmi_parse_eld()
242 e->support_hdcp = GRAB_BITS(buf, 5, 0, 1); in snd_hdmi_parse_eld()
243 e->support_ai = GRAB_BITS(buf, 5, 1, 1); in snd_hdmi_parse_eld()
[all …]
/sound/isa/gus/
Dgus_volume.c17 unsigned short e, m, tmp; in snd_gf1_lvol_to_gvol_raw() local
22 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()
32 m = vol - (1 << 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()
[all …]
/sound/usb/
Dmixer_s1810c.c91 u32 e; member
136 u32 b, u32 c, u32 d, u32 e) in snd_s1810c_send_ctl_packet() argument
153 pkt.e = (c == 4) ? 0 : e; in snd_s1810c_send_ctl_packet()
216 u32 a, b, c, e, n, off; in snd_s1810c_init_mixer_maps() local
221 e = 0xbc; in snd_s1810c_init_mixer_maps()
227 snd_s1810c_send_ctl_packet(dev, a, b, c, 0, e); in snd_s1810c_init_mixer_maps()
228 snd_s1810c_send_ctl_packet(dev, a, b, c, 1, e); in snd_s1810c_init_mixer_maps()
231 snd_s1810c_send_ctl_packet(dev, a, b, 0, 0, e); in snd_s1810c_init_mixer_maps()
232 snd_s1810c_send_ctl_packet(dev, a, b, 0, 1, e); in snd_s1810c_init_mixer_maps()
238 e = 0xb53bf0; in snd_s1810c_init_mixer_maps()
[all …]
/sound/core/seq/oss/
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()
133 return set_control_event(dp, q->e.dev, SNDRV_SEQ_EVENT_PGMCHANGE, in extended_event()
134 q->e.chn, 0, q->e.p1, ev); in extended_event()
137 return set_control_event(dp, q->e.dev, SNDRV_SEQ_EVENT_CHANPRESS, in extended_event()
138 q->e.chn, 0, q->e.p1, ev); in extended_event()
142 val = (char)q->e.p1; in extended_event()
144 return set_control_event(dp, q->e.dev, SNDRV_SEQ_EVENT_CONTROLLER, in extended_event()
145 q->e.chn, CTL_PAN, val, ev); in extended_event()
[all …]
/sound/soc/
Dsoc-ops.c43 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double() local
45 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_soc_info_enum_double()
46 e->items, e->texts); in snd_soc_info_enum_double()
63 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double() local
67 reg_val = snd_soc_component_read(component, e->reg); in snd_soc_get_enum_double()
68 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_get_enum_double()
69 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double()
71 if (e->shift_l != e->shift_r) { in snd_soc_get_enum_double()
72 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_get_enum_double()
73 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double()
[all …]
Dsoc-dapm.c357 struct soc_enum *e; in dapm_kcontrol_data_alloc() local
414 e = (struct soc_enum *)kcontrol->private_value; in dapm_kcontrol_data_alloc()
416 if (e->autodisable) { in dapm_kcontrol_data_alloc()
427 template.reg = e->reg; in dapm_kcontrol_data_alloc()
428 template.mask = e->mask; in dapm_kcontrol_data_alloc()
429 template.shift = e->shift_l; in dapm_kcontrol_data_alloc()
430 template.off_val = snd_soc_enum_item_to_val(e, 0); in dapm_kcontrol_data_alloc()
447 } else if (e->reg != SND_SOC_NOPM) { in dapm_kcontrol_data_alloc()
448 data->value = soc_dapm_read(widget->dapm, e->reg) & in dapm_kcontrol_data_alloc()
449 (e->mask << e->shift_l); in dapm_kcontrol_data_alloc()
[all …]
/sound/soc/meson/
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()
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()
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()
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/intel/atom/
Dsst-atom-controls.c137 struct sst_enum *e = (struct sst_enum *)kcontrol->private_value; in sst_slot_enum_info() local
141 uinfo->value.enumerated.items = e->max; in sst_slot_enum_info()
143 if (uinfo->value.enumerated.item > e->max - 1) in sst_slot_enum_info()
144 uinfo->value.enumerated.item = e->max - 1; in sst_slot_enum_info()
146 e->texts[uinfo->value.enumerated.item]); in sst_slot_enum_info()
162 struct sst_enum *e = (void *)kcontrol->private_value; in sst_slot_get() local
165 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()
182 e->texts[mux], mux ? map[mux - 1] : -1); in sst_slot_get()
[all …]
/sound/soc/tegra/
Dtegra210_ahub.c22 struct soc_enum *e = (struct soc_enum *)kctl->private_value; in tegra_ahub_get_value_enum() local
32 reg = e->reg + (TEGRA210_XBAR_PART1_RX * i); in tegra_ahub_get_value_enum()
44 for (i = 0; i < e->items; i++) { in tegra_ahub_get_value_enum()
45 if (bit_pos == e->values[i]) { in tegra_ahub_get_value_enum()
60 struct soc_enum *e = (struct soc_enum *)kctl->private_value; in tegra_ahub_put_value_enum() local
63 unsigned int value = e->values[item[0]]; in tegra_ahub_put_value_enum()
67 if (item[0] >= e->items) in tegra_ahub_put_value_enum()
83 update[i].reg = e->reg + (TEGRA210_XBAR_PART1_RX * i); in tegra_ahub_put_value_enum()
93 item[0], e, in tegra_ahub_put_value_enum()
/sound/soc/codecs/
Dsimple-mux.c39 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in simple_mux_control_put() local
43 if (ucontrol->value.enumerated.item[0] > e->items) in simple_mux_control_put()
55 e, NULL); in simple_mux_control_put()
Drt715.c510 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt715_mux_get() local
515 reg = RT715_VERB_SET_CONNECT_SEL | e->reg; in rt715_mux_get()
528 if ((e->reg == RT715_MUX_IN3 || e->reg == RT715_MUX_IN4) && (val > 0)) in rt715_mux_get()
543 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in rt715_mux_put() local
548 if (item[0] >= e->items) in rt715_mux_put()
552 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in rt715_mux_put()
554 reg = RT715_VERB_SET_CONNECT_SEL | e->reg; in rt715_mux_put()
568 reg = RT715_VERB_SET_CONNECT_SEL | e->reg; in rt715_mux_put()
573 item[0], e, NULL); in rt715_mux_put()
Dwm8804.c163 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in txsrc_put() local
164 unsigned int val = ucontrol->value.enumerated.item[0] << e->shift_l; in txsrc_put()
165 unsigned int mask = 1 << e->shift_l; in txsrc_put()
173 if (snd_soc_component_test_bits(component, e->reg, mask, val)) { in txsrc_put()
181 snd_soc_component_update_bits(component, e->reg, mask, val); in txsrc_put()
Dmadera.c549 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in madera_out1_demux_put() local
554 if (ucontrol->value.enumerated.item[0] > e->items - 1) in madera_out1_demux_put()
621 ret = snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in madera_out1_demux_put()
657 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in madera_inmux_put() local
667 val = mux << e->shift_l; in madera_inmux_put()
668 mask = (e->mask << e->shift_l) | MADERA_IN1L_SRC_SE_MASK; in madera_inmux_put()
670 switch (e->reg) { in madera_inmux_put()
691 mux, e->reg, inmode, mask, val); in madera_inmux_put()
693 ret = regmap_update_bits_check(regmap, e->reg, mask, val, &changed); in madera_inmux_put()
699 mux, e, NULL); in madera_inmux_put()
[all …]
Dcpcap.c371 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in cpcap_output_mux_get_enum() local
372 unsigned int shift = e->shift_l; in cpcap_output_mux_get_enum()
416 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in cpcap_output_mux_put_enum() local
418 unsigned int mask = BIT(e->shift_l); in cpcap_output_mux_put_enum()
449 snd_soc_dapm_mux_update_power(dapm, kcontrol, muxval, e, NULL); in cpcap_output_mux_put_enum()
500 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in cpcap_input_right_mux_put_enum() local
533 snd_soc_dapm_mux_update_power(dapm, kcontrol, muxval, e, NULL); in cpcap_input_right_mux_put_enum()
576 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in cpcap_input_left_mux_put_enum() local
601 snd_soc_dapm_mux_update_power(dapm, kcontrol, muxval, e, NULL); in cpcap_input_left_mux_put_enum()
Dadau17x1.c192 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in adau17x1_dsp_mux_enum_put() local
194 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_put()
198 if (ucontrol->value.enumerated.item[0] >= e->items) in adau17x1_dsp_mux_enum_put()
225 ucontrol->value.enumerated.item[0], e, &update); in adau17x1_dsp_mux_enum_put()
236 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in adau17x1_dsp_mux_enum_get() local
237 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_get()
/sound/soc/atmel/
Dtse850-pcm5142.c78 struct soc_enum *e = (struct soc_enum *)kctrl->private_value; in tse850_put_mux1() local
81 if (val >= e->items) in tse850_put_mux1()
108 struct soc_enum *e = (struct soc_enum *)kctrl->private_value; in tse850_put_mux2() local
111 if (val >= e->items) in tse850_put_mux2()
193 struct soc_enum *e = (struct soc_enum *)kctrl->private_value; in tse850_put_ana() local
197 if (uV >= e->items) in tse850_put_ana()
/sound/firewire/oxfw/
Doxfw-stream.c521 unsigned int i, e, channels, type; in snd_oxfw_stream_parse_format() local
543 for (e = 0; e < format[4]; e++) { in snd_oxfw_stream_parse_format()
544 channels = format[5 + e * 2]; in snd_oxfw_stream_parse_format()
545 type = format[6 + e * 2]; in snd_oxfw_stream_parse_format()
/sound/pci/ac97/
Dac97_codec.c450 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_info_enum_double() local
452 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_ac97_info_enum_double()
453 e->mask, e->texts); in snd_ac97_info_enum_double()
460 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_get_enum_double() local
463 for (bitmask = 1; bitmask < e->mask; bitmask <<= 1) in snd_ac97_get_enum_double()
465 val = snd_ac97_read_cache(ac97, e->reg); in snd_ac97_get_enum_double()
466 ucontrol->value.enumerated.item[0] = (val >> e->shift_l) & (bitmask - 1); in snd_ac97_get_enum_double()
467 if (e->shift_l != e->shift_r) in snd_ac97_get_enum_double()
468 ucontrol->value.enumerated.item[1] = (val >> e->shift_r) & (bitmask - 1); in snd_ac97_get_enum_double()
477 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_put_enum_double() local
[all …]
/sound/firewire/bebob/
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/soc/fsl/
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()
/sound/pci/asihpi/
Dasihpi.c230 u16 e; in hpi_stream_get_info_ex() local
232 e = hpi_outstream_get_info_ex(h_stream, pw_state, in hpi_stream_get_info_ex()
236 e = hpi_instream_get_info_ex(h_stream, pw_state, in hpi_stream_get_info_ex()
239 return e; in hpi_stream_get_info_ex()
565 u16 e; in snd_card_asihpi_trigger() local
604 e = hpi_stream_group_add( in snd_card_asihpi_trigger()
607 if (!e) { in snd_card_asihpi_trigger()
610 hpi_handle_error(e); in snd_card_asihpi_trigger()
2193 u16 e; in snd_asihpi_mux_put() local
2197 e = hpi_multiplexer_query_source(h_control, in snd_asihpi_mux_put()
[all …]
/sound/soc/intel/catpt/
Dregisters.h66 #define CATPT_HMDC_HDDA(e, ch) BIT(8 * (e) + (ch)) argument

123