Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e8db7f1 authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: hda - don't compare with yourself in fill_input_pin_labels



Just stumbled over this one while reading the code.

Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d3d982f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2558,7 +2558,7 @@ static int fill_input_pin_labels(struct hda_codec *codec)

		label = hda_get_autocfg_input_label(codec, cfg, i);
		idx = 0;
		for (j = i; j >= 0; j--) {
		for (j = i - 1; j >= 0; j--) {
			if (spec->input_labels[j] &&
			    !strcmp(spec->input_labels[j], label)) {
				idx = spec->input_label_idxs[j] + 1;