Searched refs:imux (Results 1 - 6 of 6) sorted by relevance
/linux-4.1.27/sound/pci/hda/ |
H A D | hda_codec.c | 4002 * @imux: imux helper object 4005 int snd_hda_input_mux_info(const struct hda_input_mux *imux, snd_hda_input_mux_info() argument 4012 uinfo->value.enumerated.items = imux->num_items; snd_hda_input_mux_info() 4013 if (!imux->num_items) snd_hda_input_mux_info() 4016 if (index >= imux->num_items) snd_hda_input_mux_info() 4017 index = imux->num_items - 1; snd_hda_input_mux_info() 4018 strcpy(uinfo->value.enumerated.name, imux->items[index].label); snd_hda_input_mux_info() 4026 * @imux: imux helper object 4029 * @cur_val: pointer to get/store the current imux value 4032 const struct hda_input_mux *imux, snd_hda_input_mux_put() 4039 if (!imux->num_items) snd_hda_input_mux_put() 4042 if (idx >= imux->num_items) snd_hda_input_mux_put() 4043 idx = imux->num_items - 1; snd_hda_input_mux_put() 4047 imux->items[idx].index); snd_hda_input_mux_put() 4482 * @imux: imux helper object 4483 * @label: the name of imux item to assign 4484 * @index: index number of imux item to assign 4492 struct hda_input_mux *imux, const char *label, snd_hda_add_imux_item() 4496 if (imux->num_items >= HDA_MAX_NUM_INPUTS) { snd_hda_add_imux_item() 4497 codec_err(codec, "hda_codec: Too many imux items!\n"); snd_hda_add_imux_item() 4500 for (i = 0; i < imux->num_items; i++) { snd_hda_add_imux_item() 4501 if (!strncmp(label, imux->items[i].label, strlen(label))) snd_hda_add_imux_item() 4507 snprintf(imux->items[imux->num_items].label, snd_hda_add_imux_item() 4508 sizeof(imux->items[imux->num_items].label), snd_hda_add_imux_item() 4511 strlcpy(imux->items[imux->num_items].label, label, snd_hda_add_imux_item() 4512 sizeof(imux->items[imux->num_items].label)); snd_hda_add_imux_item() 4513 imux->items[imux->num_items].index = index; snd_hda_add_imux_item() 4514 imux->num_items++; snd_hda_add_imux_item() 4031 snd_hda_input_mux_put(struct hda_codec *codec, const struct hda_input_mux *imux, struct snd_ctl_elem_value *ucontrol, hda_nid_t nid, unsigned int *cur_val) snd_hda_input_mux_put() argument 4491 snd_hda_add_imux_item(struct hda_codec *codec, struct hda_input_mux *imux, const char *label, int index, int *type_idx) snd_hda_add_imux_item() argument
|
H A D | hda_generic.c | 3148 struct hda_input_mux *imux = &spec->input_mux; check_dyn_adc_switch() local 3155 for (i = 0; i < imux->num_items; i++) { check_dyn_adc_switch() 3159 if (i >= imux->num_items) { check_dyn_adc_switch() 3167 for (i = 0; i < imux->num_items; i++) { check_dyn_adc_switch() 3186 for (i = 0; i < imux->num_items; i++) { check_dyn_adc_switch() 3198 if (imux->num_items == 1 || check_dyn_adc_switch() 3199 (imux->num_items == 2 && spec->hp_mic)) { check_dyn_adc_switch() 3211 /* parse capture source paths from the given pin and create imux items */ parse_capture_source() 3217 struct hda_input_mux *imux = &spec->input_mux; parse_capture_source() local 3218 int imux_idx = imux->num_items; parse_capture_source() 3237 spec->hp_mic_mux_idx = imux->num_items; parse_capture_source() 3238 spec->imux_pins[imux->num_items] = pin; parse_capture_source() 3239 snd_hda_add_imux_item(codec, imux, label, cfg_idx, NULL); parse_capture_source() 3359 /* get the input path specified by the given adc and imux indices */ get_input_path() 3423 /* call the given amp update function for all amps in the imux list at once */ cap_put_caller() 3430 const struct hda_input_mux *imux; cap_put_caller() local 3434 imux = &spec->input_mux; cap_put_caller() 3437 for (i = 0; i < imux->num_items; i++) { cap_put_caller() 3660 /* return the vol ctl when used first in the imux list */ get_first_cap_ctl() 3685 struct hda_input_mux *imux = &spec->input_mux; create_multi_cap_vol_ctl() local 3688 for (i = 0; i < imux->num_items; i++) { create_multi_cap_vol_ctl() 3692 idx = imux->items[i].index; create_multi_cap_vol_ctl() 3714 struct hda_input_mux *imux = &spec->input_mux; create_capture_mixers() local 3722 if (!spec->auto_mic && imux->num_items > 1) { create_capture_mixers() 3739 for (i = 0; i < imux->num_items; i++) { create_capture_mixers() 3831 struct hda_input_mux *imux = &spec->input_mux; parse_mic_boost() local 3837 for (i = 0; i < imux->num_items; i++) { parse_mic_boost() 3843 idx = imux->items[i].index; parse_mic_boost() 3844 if (idx >= imux->num_items) parse_mic_boost() 3937 /* select the given imux item; either unmute exclusively or select the route */ mux_select() 3942 const struct hda_input_mux *imux; mux_select() local 3945 imux = &spec->input_mux; mux_select() 3946 if (!imux->num_items) mux_select() 3949 if (idx >= imux->num_items) mux_select() 3950 idx = imux->num_items - 1; mux_select() 4649 const struct hda_input_mux *imux; auto_mic_check_imux() local 4652 imux = &spec->input_mux; auto_mic_check_imux() 4656 spec->imux_pins, imux->num_items); auto_mic_check_imux() 4658 return false; /* no corresponding imux */ auto_mic_check_imux() 5751 struct hda_input_mux *imux = &spec->input_mux; init_input_src() local 5761 for (i = 0; i < imux->num_items; i++) { init_input_src()
|
H A D | hda_generic.h | 61 int idx; /* imux index, -1 = invalid */
|
H A D | hda_local.h | 265 int snd_hda_input_mux_info(const struct hda_input_mux *imux, 268 const struct hda_input_mux *imux, 272 struct hda_input_mux *imux, const char *label,
|
H A D | patch_conexant.c | 516 const struct hda_input_mux *imux = &olpc_xo_dc_bias; olpc_xo_dc_bias_enum_put() local 520 if (idx >= imux->num_items) olpc_xo_dc_bias_enum_put() 521 idx = imux->num_items - 1; olpc_xo_dc_bias_enum_put()
|
H A D | patch_realtek.c | 4349 struct hda_input_mux *imux = &spec->gen.input_mux; alc_fixup_dell_xps13() local 4363 for (i = 0; i < imux->num_items; i++) { alc_fixup_dell_xps13()
|
Completed in 243 milliseconds