Lines Matching refs:adc_idx
3379 static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) in get_input_path() argument
3387 adc_idx = spec->dyn_adc_idx[imux_idx]; in get_input_path()
3388 if (adc_idx < 0 || adc_idx >= AUTO_CFG_MAX_INS) { in get_input_path()
3392 return snd_hda_get_path_from_idx(codec, spec->input_paths[imux_idx][adc_idx]); in get_input_path()
3395 static int mux_select(struct hda_codec *codec, unsigned int adc_idx,
3412 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in mux_enum_get() local
3414 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; in mux_enum_get()
3422 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in mux_enum_put() local
3423 return mux_select(codec, adc_idx, in mux_enum_put()
3451 int i, adc_idx, err = 0; in cap_put_caller() local
3454 adc_idx = kcontrol->id.index; in cap_put_caller()
3457 path = get_input_path(codec, adc_idx, i); in cap_put_caller()
4123 static int mux_select(struct hda_codec *codec, unsigned int adc_idx, in mux_select() argument
4136 if (spec->cur_mux[adc_idx] == idx) in mux_select()
4139 old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); in mux_select()
4145 spec->cur_mux[adc_idx] = idx; in mux_select()
4148 update_hp_mic(codec, adc_idx, false); in mux_select()
4153 path = get_input_path(codec, adc_idx, idx); in mux_select()