imux             3468 sound/pci/hda/hda_codec.c int snd_hda_input_mux_info(const struct hda_input_mux *imux,
imux             3475 sound/pci/hda/hda_codec.c 	uinfo->value.enumerated.items = imux->num_items;
imux             3476 sound/pci/hda/hda_codec.c 	if (!imux->num_items)
imux             3479 sound/pci/hda/hda_codec.c 	if (index >= imux->num_items)
imux             3480 sound/pci/hda/hda_codec.c 		index = imux->num_items - 1;
imux             3481 sound/pci/hda/hda_codec.c 	strcpy(uinfo->value.enumerated.name, imux->items[index].label);
imux             3495 sound/pci/hda/hda_codec.c 			  const struct hda_input_mux *imux,
imux             3502 sound/pci/hda/hda_codec.c 	if (!imux->num_items)
imux             3505 sound/pci/hda/hda_codec.c 	if (idx >= imux->num_items)
imux             3506 sound/pci/hda/hda_codec.c 		idx = imux->num_items - 1;
imux             3510 sound/pci/hda/hda_codec.c 				  imux->items[idx].index);
imux             3961 sound/pci/hda/hda_codec.c 			  struct hda_input_mux *imux, const char *label,
imux             3965 sound/pci/hda/hda_codec.c 	if (imux->num_items >= HDA_MAX_NUM_INPUTS) {
imux             3969 sound/pci/hda/hda_codec.c 	for (i = 0; i < imux->num_items; i++) {
imux             3970 sound/pci/hda/hda_codec.c 		if (!strncmp(label, imux->items[i].label, strlen(label)))
imux             3976 sound/pci/hda/hda_codec.c 		snprintf(imux->items[imux->num_items].label,
imux             3977 sound/pci/hda/hda_codec.c 			 sizeof(imux->items[imux->num_items].label),
imux             3980 sound/pci/hda/hda_codec.c 		strlcpy(imux->items[imux->num_items].label, label,
imux             3981 sound/pci/hda/hda_codec.c 			sizeof(imux->items[imux->num_items].label));
imux             3982 sound/pci/hda/hda_codec.c 	imux->items[imux->num_items].index = index;
imux             3983 sound/pci/hda/hda_codec.c 	imux->num_items++;
imux             3166 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
imux             3173 sound/pci/hda/hda_generic.c 		for (i = 0; i < imux->num_items; i++) {
imux             3177 sound/pci/hda/hda_generic.c 		if (i >= imux->num_items) {
imux             3185 sound/pci/hda/hda_generic.c 		for (i = 0; i < imux->num_items; i++) {
imux             3204 sound/pci/hda/hda_generic.c 				for (i = 0; i < imux->num_items; i++) {
imux             3217 sound/pci/hda/hda_generic.c 	if (imux->num_items == 1 ||
imux             3218 sound/pci/hda/hda_generic.c 	    (imux->num_items == 2 && spec->hp_mic)) {
imux             3236 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
imux             3237 sound/pci/hda/hda_generic.c 	int imux_idx = imux->num_items;
imux             3256 sound/pci/hda/hda_generic.c 				spec->hp_mic_mux_idx = imux->num_items;
imux             3257 sound/pci/hda/hda_generic.c 			spec->imux_pins[imux->num_items] = pin;
imux             3258 sound/pci/hda/hda_generic.c 			snd_hda_add_imux_item(codec, imux, label, cfg_idx, NULL);
imux             3449 sound/pci/hda/hda_generic.c 	const struct hda_input_mux *imux;
imux             3453 sound/pci/hda/hda_generic.c 	imux = &spec->input_mux;
imux             3456 sound/pci/hda/hda_generic.c 	for (i = 0; i < imux->num_items; i++) {
imux             3704 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
imux             3707 sound/pci/hda/hda_generic.c 	for (i = 0; i < imux->num_items; i++) {
imux             3711 sound/pci/hda/hda_generic.c 		idx = imux->items[i].index;
imux             3733 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
imux             3741 sound/pci/hda/hda_generic.c 	if (!spec->auto_mic && imux->num_items > 1) {
imux             3758 sound/pci/hda/hda_generic.c 		for (i = 0; i < imux->num_items; i++) {
imux             3850 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
imux             3856 sound/pci/hda/hda_generic.c 	for (i = 0; i < imux->num_items; i++) {
imux             3862 sound/pci/hda/hda_generic.c 		idx = imux->items[i].index;
imux             3863 sound/pci/hda/hda_generic.c 		if (idx >= imux->num_items)
imux             4127 sound/pci/hda/hda_generic.c 	const struct hda_input_mux *imux;
imux             4130 sound/pci/hda/hda_generic.c 	imux = &spec->input_mux;
imux             4131 sound/pci/hda/hda_generic.c 	if (!imux->num_items)
imux             4134 sound/pci/hda/hda_generic.c 	if (idx >= imux->num_items)
imux             4135 sound/pci/hda/hda_generic.c 		idx = imux->num_items - 1;
imux             4835 sound/pci/hda/hda_generic.c 	const struct hda_input_mux *imux;
imux             4838 sound/pci/hda/hda_generic.c 	imux = &spec->input_mux;
imux             4842 sound/pci/hda/hda_generic.c 					     spec->imux_pins, imux->num_items);
imux             5939 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
imux             5949 sound/pci/hda/hda_generic.c 		for (i = 0; i < imux->num_items; i++) {
imux              193 sound/pci/hda/hda_local.h int snd_hda_input_mux_info(const struct hda_input_mux *imux,
imux              196 sound/pci/hda/hda_local.h 			  const struct hda_input_mux *imux,
imux              200 sound/pci/hda/hda_local.h 			  struct hda_input_mux *imux, const char *label,
imux              483 sound/pci/hda/patch_conexant.c 	const struct hda_input_mux *imux = &olpc_xo_dc_bias;
imux              487 sound/pci/hda/patch_conexant.c 	if (idx >= imux->num_items)
imux              488 sound/pci/hda/patch_conexant.c 		idx = imux->num_items - 1;
imux             5535 sound/pci/hda/patch_realtek.c 	struct hda_input_mux *imux = &spec->gen.input_mux;
imux             5548 sound/pci/hda/patch_realtek.c 		for (i = 0; i < imux->num_items; i++) {