Lines Matching full:imux
3520 * @imux: imux helper object
3523 int snd_hda_input_mux_info(const struct hda_input_mux *imux, in snd_hda_input_mux_info() argument
3530 uinfo->value.enumerated.items = imux->num_items; in snd_hda_input_mux_info()
3531 if (!imux->num_items) in snd_hda_input_mux_info()
3534 if (index >= imux->num_items) in snd_hda_input_mux_info()
3535 index = imux->num_items - 1; in snd_hda_input_mux_info()
3536 strscpy(uinfo->value.enumerated.name, imux->items[index].label); in snd_hda_input_mux_info()
3544 * @imux: imux helper object
3547 * @cur_val: pointer to get/store the current imux value
3550 const struct hda_input_mux *imux, in snd_hda_input_mux_put() argument
3557 if (!imux->num_items) in snd_hda_input_mux_put()
3560 if (idx >= imux->num_items) in snd_hda_input_mux_put()
3561 idx = imux->num_items - 1; in snd_hda_input_mux_put()
3565 imux->items[idx].index); in snd_hda_input_mux_put()
4005 * @imux: imux helper object
4006 * @label: the name of imux item to assign
4007 * @index: index number of imux item to assign
4015 struct hda_input_mux *imux, const char *label, in snd_hda_add_imux_item() argument
4019 if (imux->num_items >= HDA_MAX_NUM_INPUTS) { in snd_hda_add_imux_item()
4020 codec_err(codec, "hda_codec: Too many imux items!\n"); in snd_hda_add_imux_item()
4023 for (i = 0; i < imux->num_items; i++) { in snd_hda_add_imux_item()
4024 if (!strncmp(label, imux->items[i].label, strlen(label))) in snd_hda_add_imux_item()
4030 snprintf(imux->items[imux->num_items].label, in snd_hda_add_imux_item()
4031 sizeof(imux->items[imux->num_items].label), in snd_hda_add_imux_item()
4034 strscpy(imux->items[imux->num_items].label, label, in snd_hda_add_imux_item()
4035 sizeof(imux->items[imux->num_items].label)); in snd_hda_add_imux_item()
4036 imux->items[imux->num_items].index = index; in snd_hda_add_imux_item()
4037 imux->num_items++; in snd_hda_add_imux_item()