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

Commit 268ff6fb authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix auto-mic detection in Realtek codec-parser



A regression fix from commit 21268961
  ALSA: hda - More flexible dynamic-ADC switching for Realtek codecs

The auto-mic wasn't detected properly when no ADC-switch is needed.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 28dc10a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -958,7 +958,7 @@ static bool alc_check_dyn_adc_switch(struct hda_codec *codec)
				break;
				break;
		}
		}
		if (i >= imux->num_items)
		if (i >= imux->num_items)
			return false; /* no ADC-switch is needed */
			return true; /* no ADC-switch is needed */
	}
	}


	for (i = 0; i < imux->num_items; i++) {
	for (i = 0; i < imux->num_items; i++) {