Skip to contentSkip to conversation

ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286

PATCH In review Jian-Hong Pan 3 participants 5 messages Mar 15, 2019 – Mar 21, 2019 Sound

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286

Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot record sound from headset MIC. This patch adds the ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue.

---
v2: According to Realtek's suggestion, change the COEF 0x4f from 0xd429 to

    0x5029.  Thanks to Realtek!
 sound/pci/hda/patch_realtek.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
sound/pci/hda/patch_realtek.c +14 -3
index 384719d5c44e..191830d4fa40 100644
@@ -5687,6 +5687,7 @@ enum {
 	ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE,
 	ALC225_FIXUP_WYSE_AUTO_MUTE,
 	ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
+	ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
 };
 
 static const struct hda_fixup alc269_fixups[] = {
@@ -6685,6 +6686,16 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
 	},
+	[ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = {
+		.type = HDA_FIXUP_VERBS,
+		.v.verbs = (const struct hda_verb[]) {
+			{ 0x20, AC_VERB_SET_COEF_INDEX, 0x4f },
+			{ 0x20, AC_VERB_SET_PROC_COEF, 0x5029 },
+			{ }
+		},
+		.chained = true,
+		.chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE
+	},
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6701,9 +6712,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
 	SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
-	SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-	SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-	SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
+	SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+	SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+	SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
 	SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),
Signature · 1 line
2.20.1
#1 lore raw
Quoted 9 lines · Jian-Hong Pan

Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot record sound from headset MIC. This patch adds the ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue.

---
v2: According to Realtek's suggestion, change the COEF 0x4f from 0xd429 to

    0x5029.  Thanks to Realtek!

It'd be nicer if we get either Acked-by or Reviewed-by tag from Realtek. Kailang?

thanks,

Takashi

Quoted 50 lines
 sound/pci/hda/patch_realtek.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
sound/pci/hda/patch_realtek.c +14 -3
index 384719d5c44e..191830d4fa40 100644
@@ -5687,6 +5687,7 @@ enum {
 	ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE,
 	ALC225_FIXUP_WYSE_AUTO_MUTE,
 	ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
+	ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
 };
 
 static const struct hda_fixup alc269_fixups[] = {
@@ -6685,6 +6686,16 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
 	},
+	[ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = {
+		.type = HDA_FIXUP_VERBS,
+		.v.verbs = (const struct hda_verb[]) {
+			{ 0x20, AC_VERB_SET_COEF_INDEX, 0x4f },
+			{ 0x20, AC_VERB_SET_PROC_COEF, 0x5029 },
+			{ }
+		},
+		.chained = true,
+		.chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE
+	},
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6701,9 +6712,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
 	SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
-	SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-	SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-	SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
+	SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+	SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+	SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
 	SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),
Signature · 1 line
2.20.1
#2 lore raw

Takashi Iwai <[email protected]> 於 2019年3月15日 週五 下午7:24寫道:

Quoted 8 lines
Quoted 5 lines · Jian-Hong Pan

Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot record sound from headset MIC. This patch adds the ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue.

Quoted 7 lines
Quoted 4 lines

---
v2: According to Realtek's suggestion, change the COEF 0x4f from 0xd429 to

    0x5029.  Thanks to Realtek!

It'd be nicer if we get either Acked-by or Reviewed-by tag from Realtek. Kailang?

Hi Kailang,

May we have your Acked-by or Reviewed-by tag for this patch? Signed-off will also be great!

Thank you
Jian-Hong Pan

Quoted 54 lines

thanks,

Takashi

Quoted 50 lines
 sound/pci/hda/patch_realtek.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
sound/pci/hda/patch_realtek.c +14 -4
index 384719d5c44e..191830d4fa40 100644
@@ -5687,6 +5687,7 @@ enum {
      ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE,
      ALC225_FIXUP_WYSE_AUTO_MUTE,
      ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
+     ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
 };
 
 static const struct hda_fixup alc269_fixups[] = {
@@ -6685,6 +6686,16 @@ static const struct hda_fixup alc269_fixups[] = {
              .chained = true,
              .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
      },
+     [ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = {
+             .type = HDA_FIXUP_VERBS,
+             .v.verbs = (const struct hda_verb[]) {
+                     { 0x20, AC_VERB_SET_COEF_INDEX, 0x4f },
+                     { 0x20, AC_VERB_SET_PROC_COEF, 0x5029 },
+                     { }
+             },
+             .chained = true,
+             .chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE
+     },
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6701,9 +6712,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
      SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
      SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
      SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
-     SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-     SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-     SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
+     SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+     SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+     SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
      SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
      SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
      SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),
--

2.20.1

#3 lore raw

Yes, you could use Reviewed-by.

-----Original Message-----
From: Jian-Hong Pan <[email protected]>
Sent: Wednesday, March 20, 2019 1:06 PM
To: Takashi Iwai <[email protected]>
Cc: Kailang <[email protected]>; [email protected]; Linux Upstreaming Team <[email protected]>; Linux Kernel <[email protected]>
Subject: Re: [PATCH v2] ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286

Takashi Iwai <[email protected]> 於 2019年3月15日 週五 下午7:24寫道:

Quoted 8 lines
Quoted 5 lines · Jian-Hong Pan

Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot record sound from headset MIC. This patch adds the ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue.

Quoted 7 lines
Quoted 4 lines

---
v2: According to Realtek's suggestion, change the COEF 0x4f from 0xd429 to

    0x5029.  Thanks to Realtek!

It'd be nicer if we get either Acked-by or Reviewed-by tag from Realtek. Kailang?

Hi Kailang,

May we have your Acked-by or Reviewed-by tag for this patch? Signed-off will also be great!

Thank you
Jian-Hong Pan

Quoted 49 lines

thanks,

Takashi

Quoted 45 lines
 sound/pci/hda/patch_realtek.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/sound/pci/hda/patch_realtek.c index 384719d5c44e..191830d4fa40 100644

sound/pci/hda/patch_realtek.c +17 -3
@@ -5687,6 +5687,7 @@ enum {
      ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE,
      ALC225_FIXUP_WYSE_AUTO_MUTE,
      ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
+     ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
 };
 
 static const struct hda_fixup alc269_fixups[] = { @@ -6685,6 
+6686,16 @@ static const struct hda_fixup alc269_fixups[] = {
              .chained = true,
              .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
      },
+     [ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = {
+             .type = HDA_FIXUP_VERBS,
+             .v.verbs = (const struct hda_verb[]) {
+                     { 0x20, AC_VERB_SET_COEF_INDEX, 0x4f },
+                     { 0x20, AC_VERB_SET_PROC_COEF, 0x5029 },
+                     { }
+             },
+             .chained = true,
+             .chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE
+     },
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6701,9 
+6712,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
      SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
      SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
      SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
-     SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-     SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-     SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
+     SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+     SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+     SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", 
+ ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
Quoted 8 lines
Quoted 8 lines
      SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
      SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
      SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", 

ALC275_FIXUP_DELL_XPS),
--
2.20.1

------Please consider the environment before printing this e-mail.

#4 lore raw
Quoted 2 lines · Kailang

Yes, you could use Reviewed-by.

OK, applied now. Thanks.

Takashi

Quoted 92 lines

-----Original Message-----
From: Jian-Hong Pan <[email protected]>
Sent: Wednesday, March 20, 2019 1:06 PM
To: Takashi Iwai <[email protected]>
Cc: Kailang <[email protected]>; [email protected]; Linux Upstreaming Team <[email protected]>; Linux Kernel <[email protected]>
Subject: Re: [PATCH v2] ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286

Takashi Iwai <[email protected]> 於 2019年3月15日 週五 下午7:24寫道:

Quoted 8 lines
Quoted 5 lines · Jian-Hong Pan

Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot record sound from headset MIC. This patch adds the ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue.

Quoted 7 lines
Quoted 4 lines

---
v2: According to Realtek's suggestion, change the COEF 0x4f from 0xd429 to

    0x5029.  Thanks to Realtek!

It'd be nicer if we get either Acked-by or Reviewed-by tag from Realtek. Kailang?

Hi Kailang,

May we have your Acked-by or Reviewed-by tag for this patch? Signed-off will also be great!

Thank you
Jian-Hong Pan

Quoted 49 lines

thanks,

Takashi

Quoted 45 lines
 sound/pci/hda/patch_realtek.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/sound/pci/hda/patch_realtek.c index 384719d5c44e..191830d4fa40 100644

sound/pci/hda/patch_realtek.c +17 -3
@@ -5687,6 +5687,7 @@ enum {
      ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE,
      ALC225_FIXUP_WYSE_AUTO_MUTE,
      ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
+     ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
 };
 
 static const struct hda_fixup alc269_fixups[] = { @@ -6685,6 
+6686,16 @@ static const struct hda_fixup alc269_fixups[] = {
              .chained = true,
              .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
      },
+     [ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = {
+             .type = HDA_FIXUP_VERBS,
+             .v.verbs = (const struct hda_verb[]) {
+                     { 0x20, AC_VERB_SET_COEF_INDEX, 0x4f },
+                     { 0x20, AC_VERB_SET_PROC_COEF, 0x5029 },
+                     { }
+             },
+             .chained = true,
+             .chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE
+     },
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6701,9 
+6712,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
      SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
      SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
      SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
-     SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-     SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
-     SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
+     SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+     SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
+     SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", 
+ ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
Quoted 8 lines
Quoted 8 lines
      SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
      SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
      SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", 

ALC275_FIXUP_DELL_XPS),
--
2.20.1

------Please consider the environment before printing this e-mail.