Home
last modified time | relevance | path

Searched refs:shift_l (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/sound/pci/ac97/
Dac97_patch.h34 unsigned char shift_l; member
41 { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
Dac97_codec.c452 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_ac97_info_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()
485 val = ucontrol->value.enumerated.item[0] << e->shift_l; in snd_ac97_put_enum_double()
486 mask = (bitmask - 1) << e->shift_l; in snd_ac97_put_enum_double()
487 if (e->shift_l != e->shift_r) { in snd_ac97_put_enum_double()
/Linux-v5.4/sound/soc/
Dsoc-ops.c45 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_soc_info_enum_double()
71 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_get_enum_double()
74 if (e->shift_l != e->shift_r) { in snd_soc_get_enum_double()
104 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_put_enum_double()
105 mask = e->mask << e->shift_l; in snd_soc_put_enum_double()
106 if (e->shift_l != e->shift_r) { in snd_soc_put_enum_double()
Dsoc-dapm.c426 template.mask = e->mask << e->shift_l; in dapm_kcontrol_data_alloc()
427 template.shift = e->shift_l; in dapm_kcontrol_data_alloc()
745 val = (val >> e->shift_l) & e->mask; in dapm_connect_mux()
3432 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_dapm_get_enum_double()
3434 if (e->shift_l != e->shift_r) { in snd_soc_dapm_get_enum_double()
3468 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_dapm_put_enum_double()
3469 mask = e->mask << e->shift_l; in snd_soc_dapm_put_enum_double()
3470 if (e->shift_l != e->shift_r) { in snd_soc_dapm_put_enum_double()
Dsoc-topology.c1037 se->shift_l = tplc_chan_get_shift(tplg, ec->channel, in soc_tplg_denum_create()
1418 se->shift_l = tplc_chan_get_shift(tplg, ec->channel, in soc_tplg_dapm_widget_denum_create()
/Linux-v5.4/drivers/staging/greybus/
Daudio_topology.c590 if (e->shift_l != e->shift_r) in gbcodec_enum_ctl_get()
621 if (e->shift_l != e->shift_r) { in gbcodec_enum_ctl_put()
754 if (e->shift_l != e->shift_r) in gbcodec_enum_dapm_ctl_get()
806 val = mux << e->shift_l; in gbcodec_enum_dapm_ctl_put()
807 mask = e->mask << e->shift_l; in gbcodec_enum_dapm_ctl_put()
816 if (e->shift_l != e->shift_r) { in gbcodec_enum_dapm_ctl_put()
/Linux-v5.4/sound/soc/codecs/
Dwm8804.c164 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()
Dadau17x1.c194 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_put()
237 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_get()
Dwm_adsp.c782 ucontrol->value.enumerated.item[0] = dsp[e->shift_l].fw; in wm_adsp_fw_get()
796 if (ucontrol->value.enumerated.item[0] == dsp[e->shift_l].fw) in wm_adsp_fw_put()
802 mutex_lock(&dsp[e->shift_l].pwr_lock); in wm_adsp_fw_put()
804 if (dsp[e->shift_l].booted || !list_empty(&dsp[e->shift_l].compr_list)) in wm_adsp_fw_put()
807 dsp[e->shift_l].fw = ucontrol->value.enumerated.item[0]; in wm_adsp_fw_put()
809 mutex_unlock(&dsp[e->shift_l].pwr_lock); in wm_adsp_fw_put()
Dcpcap.c363 unsigned int shift = e->shift_l; in cpcap_output_mux_get_enum()
409 unsigned int mask = BIT(e->shift_l); in cpcap_output_mux_put_enum()
Dmadera.c615 val = mux << e->shift_l; in madera_inmux_put()
616 mask = (e->mask << e->shift_l) | MADERA_IN1L_SRC_SE_MASK; in madera_inmux_put()
828 const int adsp_num = e->shift_l; in madera_adsp_rate_get()
848 const int adsp_num = e->shift_l; in madera_adsp_rate_put()
1027 val >>= e->shift_l; in madera_rate_put()
Dcs47l92.c74 ep_sel = mux << e->shift_l; in cs47l92_put_demux()
Dcs43130.c1029 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in cs43130_pcm_ch_put()
/Linux-v5.4/include/sound/
Dsoc.h199 { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
207 { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
212 { .reg = xreg, .shift_l = xshift, .shift_r = xshift, \
1200 unsigned char shift_l; member