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

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

ALSA: hda - Don't apply ALC269-specific initialization to ALC275



ALC275 doesn't require the ALC269 (and its variants) specific init
sequences.  Add the check of codec id.

Signed-off-by: default avatarKailang Yang <kailang@realtek.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2785591a
Loading
Loading
Loading
Loading
+23 −22
Original line number Diff line number Diff line
@@ -15104,6 +15104,7 @@ static int patch_alc269(struct hda_codec *codec)
	alc_auto_parse_customize_define(codec);
	if (codec->vendor_id == 0x10ec0269) {
		coef = alc_read_coef_idx(codec, 0);
		if ((coef & 0x00f0) == 0x0010) {
			if (codec->bus->pci->subsystem_vendor == 0x1025 &&
@@ -15124,8 +15125,8 @@ static int patch_alc269(struct hda_codec *codec)
			}
		} else
			alc_fix_pll_init(codec, 0x20, 0x04, 15);
		alc269_fill_coef(codec);
	}
	board_config = snd_hda_check_board_config(codec, ALC269_MODEL_LAST,
						  alc269_models,