Searched refs:imux (Results 1 - 6 of 6) sorted by relevance
/linux-4.4.14/sound/pci/hda/ |
H A D | hda_codec.c | 3495 * @imux: imux helper object 3498 int snd_hda_input_mux_info(const struct hda_input_mux *imux, snd_hda_input_mux_info() argument 3505 uinfo->value.enumerated.items = imux->num_items; snd_hda_input_mux_info() 3506 if (!imux->num_items) snd_hda_input_mux_info() 3509 if (index >= imux->num_items) snd_hda_input_mux_info() 3510 index = imux->num_items - 1; snd_hda_input_mux_info() 3511 strcpy(uinfo->value.enumerated.name, imux->items[index].label); snd_hda_input_mux_info() 3519 * @imux: imux helper object 3522 * @cur_val: pointer to get/store the current imux value 3525 const struct hda_input_mux *imux, snd_hda_input_mux_put() 3532 if (!imux->num_items) snd_hda_input_mux_put() 3535 if (idx >= imux->num_items) snd_hda_input_mux_put() 3536 idx = imux->num_items - 1; snd_hda_input_mux_put() 3540 imux->items[idx].index); snd_hda_input_mux_put() 3975 * @imux: imux helper object 3976 * @label: the name of imux item to assign 3977 * @index: index number of imux item to assign 3985 struct hda_input_mux *imux, const char *label, snd_hda_add_imux_item() 3989 if (imux->num_items >= HDA_MAX_NUM_INPUTS) { snd_hda_add_imux_item() 3990 codec_err(codec, "hda_codec: Too many imux items!\n"); snd_hda_add_imux_item() 3993 for (i = 0; i < imux->num_items; i++) { snd_hda_add_imux_item() 3994 if (!strncmp(label, imux->items[i].label, strlen(label))) snd_hda_add_imux_item() 4000 snprintf(imux->items[imux->num_items].label, snd_hda_add_imux_item() 4001 sizeof(imux->items[imux->num_items].label), snd_hda_add_imux_item() 4004 strlcpy(imux->items[imux->num_items].label, label, snd_hda_add_imux_item() 4005 sizeof(imux->items[imux->num_items].label)); snd_hda_add_imux_item() 4006 imux->items[imux->num_items].index = index; snd_hda_add_imux_item() 4007 imux->num_items++; snd_hda_add_imux_item() 3524 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 3984 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 | 3150 struct hda_input_mux *imux = &spec->input_mux; check_dyn_adc_switch() local 3157 for (i = 0; i < imux->num_items; i++) { check_dyn_adc_switch() 3161 if (i >= imux->num_items) { check_dyn_adc_switch() 3169 for (i = 0; i < imux->num_items; i++) { check_dyn_adc_switch() 3188 for (i = 0; i < imux->num_items; i++) { check_dyn_adc_switch() 3200 if (imux->num_items == 1 || check_dyn_adc_switch() 3201 (imux->num_items == 2 && spec->hp_mic)) { check_dyn_adc_switch() 3213 /* parse capture source paths from the given pin and create imux items */ parse_capture_source() 3219 struct hda_input_mux *imux = &spec->input_mux; parse_capture_source() local 3220 int imux_idx = imux->num_items; parse_capture_source() 3239 spec->hp_mic_mux_idx = imux->num_items; parse_capture_source() 3240 spec->imux_pins[imux->num_items] = pin; parse_capture_source() 3241 snd_hda_add_imux_item(codec, imux, label, cfg_idx, NULL); parse_capture_source() 3361 /* get the input path specified by the given adc and imux indices */ get_input_path() 3425 /* call the given amp update function for all amps in the imux list at once */ cap_put_caller() 3432 const struct hda_input_mux *imux; cap_put_caller() local 3436 imux = &spec->input_mux; cap_put_caller() 3439 for (i = 0; i < imux->num_items; i++) { cap_put_caller() 3662 /* return the vol ctl when used first in the imux list */ get_first_cap_ctl() 3687 struct hda_input_mux *imux = &spec->input_mux; create_multi_cap_vol_ctl() local 3690 for (i = 0; i < imux->num_items; i++) { create_multi_cap_vol_ctl() 3694 idx = imux->items[i].index; create_multi_cap_vol_ctl() 3716 struct hda_input_mux *imux = &spec->input_mux; create_capture_mixers() local 3724 if (!spec->auto_mic && imux->num_items > 1) { create_capture_mixers() 3741 for (i = 0; i < imux->num_items; i++) { create_capture_mixers() 3833 struct hda_input_mux *imux = &spec->input_mux; parse_mic_boost() local 3839 for (i = 0; i < imux->num_items; i++) { parse_mic_boost() 3845 idx = imux->items[i].index; parse_mic_boost() 3846 if (idx >= imux->num_items) parse_mic_boost() 3939 /* select the given imux item; either unmute exclusively or select the route */ mux_select() 3944 const struct hda_input_mux *imux; mux_select() local 3947 imux = &spec->input_mux; mux_select() 3948 if (!imux->num_items) mux_select() 3951 if (idx >= imux->num_items) mux_select() 3952 idx = imux->num_items - 1; mux_select() 4651 const struct hda_input_mux *imux; auto_mic_check_imux() local 4654 imux = &spec->input_mux; auto_mic_check_imux() 4658 spec->imux_pins, imux->num_items); auto_mic_check_imux() 4660 return false; /* no corresponding imux */ auto_mic_check_imux() 5753 struct hda_input_mux *imux = &spec->input_mux; init_input_src() local 5763 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 | 4439 struct hda_input_mux *imux = &spec->gen.input_mux; alc_fixup_dell_xps13() local 4453 for (i = 0; i < imux->num_items; i++) { alc_fixup_dell_xps13()
|
Completed in 213 milliseconds