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

Commit 1657cbd8 authored by Kailang Yang's avatar Kailang Yang Committed by Takashi Iwai
Browse files

ALSA: hda - Fix wrong ALC269 variant check



The refactoring commit d433a678
    ALSA: hda - Optimize the check of ALC269 codec variants
introduced a wrong check for ALC269-vb type.  This patch corrects it.

Signed-off-by: default avatarKailang Yang <kailang@realtek.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6027277e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15104,7 +15104,7 @@ static int patch_alc269(struct hda_codec *codec)
	spec->stream_digital_capture = &alc269_pcm_digital_capture;
	if (!spec->adc_nids) { /* wasn't filled automatically? use default */
		if (spec->codec_variant != ALC269_TYPE_NORMAL) {
		if (spec->codec_variant == ALC269_TYPE_NORMAL) {
			spec->adc_nids = alc269_adc_nids;
			spec->num_adc_nids = ARRAY_SIZE(alc269_adc_nids);
			spec->capsrc_nids = alc269_capsrc_nids;