Lines Matching refs:num_items
3536 uinfo->value.enumerated.items = imux->num_items; in snd_hda_input_mux_info()
3537 if (!imux->num_items) in snd_hda_input_mux_info()
3540 if (index >= imux->num_items) in snd_hda_input_mux_info()
3541 index = imux->num_items - 1; in snd_hda_input_mux_info()
3563 if (!imux->num_items) in snd_hda_input_mux_put()
3566 if (idx >= imux->num_items) in snd_hda_input_mux_put()
3567 idx = imux->num_items - 1; in snd_hda_input_mux_put()
3590 int num_items, const char * const *texts) in snd_hda_enum_helper_info() argument
3596 if (!texts || !num_items) { in snd_hda_enum_helper_info()
3597 num_items = 2; in snd_hda_enum_helper_info()
3601 return snd_ctl_enum_info(uinfo, 1, num_items, texts); in snd_hda_enum_helper_info()
4026 if (imux->num_items >= HDA_MAX_NUM_INPUTS) { in snd_hda_add_imux_item()
4030 for (i = 0; i < imux->num_items; i++) { in snd_hda_add_imux_item()
4037 snprintf(imux->items[imux->num_items].label, in snd_hda_add_imux_item()
4038 sizeof(imux->items[imux->num_items].label), in snd_hda_add_imux_item()
4041 strscpy(imux->items[imux->num_items].label, label, in snd_hda_add_imux_item()
4042 sizeof(imux->items[imux->num_items].label)); in snd_hda_add_imux_item()
4043 imux->items[imux->num_items].index = index; in snd_hda_add_imux_item()
4044 imux->num_items++; in snd_hda_add_imux_item()