Lines Matching refs:imux
300 const struct hda_input_mux *imux; in alc_mux_select() local
309 imux = &spec->input_mux[mux_idx]; in alc_mux_select()
310 if (!imux->num_items && mux_idx > 0) in alc_mux_select()
311 imux = &spec->input_mux[0]; in alc_mux_select()
312 if (!imux->num_items) in alc_mux_select()
315 if (idx >= imux->num_items) in alc_mux_select()
316 idx = imux->num_items - 1; in alc_mux_select()
349 int active = imux->items[idx].index; in alc_mux_select()
359 imux->items[idx].index); in alc_mux_select()
1041 struct hda_input_mux *imux = &spec->private_imux[0]; in alc_check_dyn_adc_switch() local
1045 if (imux != spec->input_mux) /* no dynamic imux? */ in alc_check_dyn_adc_switch()
1050 for (i = 0; i < imux->num_items; i++) { in alc_check_dyn_adc_switch()
1057 if (i >= imux->num_items) in alc_check_dyn_adc_switch()
1061 for (i = 0; i < imux->num_items; i++) { in alc_check_dyn_adc_switch()
1067 imux->items[i].index = idx; in alc_check_dyn_adc_switch()
1083 const struct hda_input_mux *imux; in alc_auto_mic_check_imux() local
1096 imux = spec->input_mux; in alc_auto_mic_check_imux()
1098 spec->imux_pins, imux->num_items); in alc_auto_mic_check_imux()
1100 spec->imux_pins, imux->num_items); in alc_auto_mic_check_imux()
1102 spec->imux_pins, imux->num_items); in alc_auto_mic_check_imux()
2774 struct hda_input_mux *imux = &spec->private_imux[0]; in alc_auto_create_input_ctls() local
2815 spec->imux_pins[imux->num_items] = pin; in alc_auto_create_input_ctls()
2816 snd_hda_add_imux_item(imux, label, idx, NULL); in alc_auto_create_input_ctls()
2823 spec->input_mux = imux; in alc_auto_create_input_ctls()
4077 const struct hda_input_mux *imux; in alc_remove_invalid_adc_nids() local
4082 imux = spec->input_mux; in alc_remove_invalid_adc_nids()
4083 if (!imux) in alc_remove_invalid_adc_nids()
4093 for (i = 0; i < imux->num_items; i++) { in alc_remove_invalid_adc_nids()
4098 } else if (num_conns <= imux->items[i].index) in alc_remove_invalid_adc_nids()
4101 if (i >= imux->num_items) { in alc_remove_invalid_adc_nids()