Skip to contentSkip to conversation

Add ALC285 Headphone initial procedure

PATCH Applied Kailang 2 participants 2 messages Jul 1, 2021 Sound

lore
Share & tools
lore

Kailang

author
#0 lore raw

Hi Takashi,

Attach patch was for ALC285 HP init.

BR,
Kailang

From fdcc53ac3cc6e4e74ea0e7e2b6aec1703adf39d9 Mon Sep 17 00:00:00 2001
From: Kailang Yang <[email protected]>
Date: Thu, 1 Jul 2021 09:09:37 +0800
Subject: [PATCH] ALSA: hda/realtek - Add type for ALC287

Add independent type for ALC287.

sound/pci/hda/patch_realtek.c +8 -1
index 308a58a83f33..f32572b1cf49 100644
@@ -3055,6 +3055,7 @@ enum {
 	ALC269_TYPE_ALC257,
 	ALC269_TYPE_ALC215,
 	ALC269_TYPE_ALC225,
+	ALC269_TYPE_ALC287,
 	ALC269_TYPE_ALC294,
 	ALC269_TYPE_ALC300,
 	ALC269_TYPE_ALC623,
@@ -3091,6 +3092,7 @@ static int alc269_parse_auto_config(struct hda_codec *codec)
 	case ALC269_TYPE_ALC257:
 	case ALC269_TYPE_ALC215:
 	case ALC269_TYPE_ALC225:
+	case ALC269_TYPE_ALC287:
 	case ALC269_TYPE_ALC294:
 	case ALC269_TYPE_ALC300:
 	case ALC269_TYPE_ALC623:
@@ -9386,7 +9388,6 @@ static int patch_alc269(struct hda_codec *codec)
 	case 0x10ec0215:
 	case 0x10ec0245:
 	case 0x10ec0285:
-	case 0x10ec0287:
 	case 0x10ec0289:
 		spec->codec_variant = ALC269_TYPE_ALC215;
 		spec->shutup = alc225_shutup;
@@ -9401,6 +9402,12 @@ static int patch_alc269(struct hda_codec *codec)
 		spec->init_hook = alc225_init;
 		spec->gen.mixer_nid = 0; /* no loopback on ALC225, ALC295 and ALC299 */
 		break;
+	case 0x10ec0287:
+		spec->codec_variant = ALC269_TYPE_ALC287;
+		spec->shutup = alc225_shutup;
+		spec->init_hook = alc225_init;
+		spec->gen.mixer_nid = 0; /* no loopback on ALC287 */
+		break;
 	case 0x10ec0234:
 	case 0x10ec0274:
 	case 0x10ec0294:

From e937ebde1466ec9b9b9d31d74e572e1ac685b5ba Mon Sep 17 00:00:00 2001
From: Kailang Yang <[email protected]>
Date: Thu, 1 Jul 2021 09:33:33 +0800
Subject: [PATCH] ALSA: hda/realtek - Add ALC285 HP init procedure

ALC285 headphone initial procedure.
It also could suitable for ALC215/ALC289/ALC225/ALC295/ALC299.

sound/pci/hda/patch_realtek.c +58 -0

70 lines not on this page · raw message

Applied
#1 lore raw
Quoted 5 lines · Kailang

Hi Takashi,

Attach patch was for ALC285 HP init.

Thanks, applied both patches.

Takashi