Lines Matching refs:e
357 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()
754 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in dapm_connect_mux() local
758 if (e->reg != SND_SOC_NOPM) { in dapm_connect_mux()
760 val = soc_dapm_read(dapm, e->reg); in dapm_connect_mux()
761 val = (val >> e->shift_l) & e->mask; in dapm_connect_mux()
762 item = snd_soc_enum_val_to_item(e, val); in dapm_connect_mux()
773 i = match_string(e->texts, e->items, control_name); in dapm_connect_mux()
777 path->name = e->texts[i]; in dapm_connect_mux()
2276 struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e) in soc_dapm_mux_update_power() argument
2288 if (e && !(strcmp(path->name, e->texts[mux]))) in soc_dapm_mux_update_power()
2303 struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e, in snd_soc_dapm_mux_update_power() argument
2311 ret = soc_dapm_mux_update_power(card, kcontrol, mux, e); in snd_soc_dapm_mux_update_power()
3463 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_dapm_get_enum_double() local
3467 if (e->reg != SND_SOC_NOPM && dapm_kcontrol_is_powered(kcontrol)) { in snd_soc_dapm_get_enum_double()
3468 reg_val = soc_dapm_read(dapm, e->reg); in snd_soc_dapm_get_enum_double()
3474 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_dapm_get_enum_double()
3475 ucontrol->value.enumerated.item[0] = snd_soc_enum_val_to_item(e, val); in snd_soc_dapm_get_enum_double()
3476 if (e->shift_l != e->shift_r) { in snd_soc_dapm_get_enum_double()
3477 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_dapm_get_enum_double()
3478 val = snd_soc_enum_val_to_item(e, val); in snd_soc_dapm_get_enum_double()
3500 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_dapm_put_enum_double() local
3507 if (item[0] >= e->items) in snd_soc_dapm_put_enum_double()
3510 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_dapm_put_enum_double()
3511 mask = e->mask << e->shift_l; in snd_soc_dapm_put_enum_double()
3512 if (e->shift_l != e->shift_r) { in snd_soc_dapm_put_enum_double()
3513 if (item[1] > e->items) in snd_soc_dapm_put_enum_double()
3515 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_r; in snd_soc_dapm_put_enum_double()
3516 mask |= e->mask << e->shift_r; in snd_soc_dapm_put_enum_double()
3523 if (e->reg != SND_SOC_NOPM) in snd_soc_dapm_put_enum_double()
3524 reg_change = soc_dapm_test_bits(dapm, e->reg, mask, val); in snd_soc_dapm_put_enum_double()
3529 update.reg = e->reg; in snd_soc_dapm_put_enum_double()
3535 ret = soc_dapm_mux_update_power(card, kcontrol, item[0], e); in snd_soc_dapm_put_enum_double()