Lines Matching refs:vref_caps

2770 static int get_vref_idx(unsigned int vref_caps, unsigned int item_idx)  in get_vref_idx()  argument
2775 if (vref_caps & (1 << i)) { in get_vref_idx()
2785 static int cvt_from_vref_idx(unsigned int vref_caps, unsigned int idx) in cvt_from_vref_idx() argument
2792 if (vref_caps & (1 << i)) in cvt_from_vref_idx()
2803 unsigned int vref_caps = get_vref_caps(codec, nid); in in_jack_mode_info() local
2805 snd_hda_enum_helper_info(kcontrol, uinfo, hweight32(vref_caps), in in_jack_mode_info()
2809 vref_texts[get_vref_idx(vref_caps, uinfo->value.enumerated.item)]); in in_jack_mode_info()
2818 unsigned int vref_caps = get_vref_caps(codec, nid); in in_jack_mode_get() local
2822 ucontrol->value.enumerated.item[0] = cvt_from_vref_idx(vref_caps, idx); in in_jack_mode_get()
2831 unsigned int vref_caps = get_vref_caps(codec, nid); in in_jack_mode_put() local
2835 idx = cvt_from_vref_idx(vref_caps, val & AC_PINCTL_VREFEN); in in_jack_mode_put()
2840 val |= get_vref_idx(vref_caps, ucontrol->value.enumerated.item[0]); in in_jack_mode_put()
2915 unsigned int vref_caps = get_vref_caps(codec, nid); in hp_mic_jack_mode_info() local
2916 text = vref_texts[get_vref_idx(vref_caps, idx)]; in hp_mic_jack_mode_info()
2938 unsigned int vref_caps = get_vref_caps(codec, nid); in get_cur_hp_mic_jack_mode() local
2940 idx += cvt_from_vref_idx(vref_caps, val); in get_cur_hp_mic_jack_mode()
2978 unsigned int vref_caps = get_vref_caps(codec, nid); in hp_mic_jack_mode_put() local
2981 val |= get_vref_idx(vref_caps, idx) | PIN_IN; in hp_mic_jack_mode_put()