ALSA: hda/realtek - Fix 2 front mics of codec 0x623
PATCH 1/1 ALSA: hda/realtek - Fix 2 front mics of codec 0x623
These 2 ThinkCentres installed a new realtek codec ID 0x623, it has 2 front mics with the same location on pin 0x18 and 0x19.
Apply fixup ALC283_FIXUP_HEADSET_MIC to change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)
sound/pci/hda/patch_realtek.c +3 -0
@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x312f ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x313c ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3178 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x17aa ,0x3902 ,"Lenovo E50-80" ,ALC269_FIXUP_DMIC_THINKPAD_ACPI ),SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
@@ -9187,6 +9189,7 @@ static const struct hda_device_id snd_hda_id_realtek[] = {HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269),HDA_CODEC_REV_ENTRY (0x10ec0861 ,0x100340 ,"ALC660" , patch_alc861),HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861),
Signature · 1 line
2.17.1
Quoted 10 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.Signed-off-by Aaron Ma <[email protected]>
I'd like to have Kailang's review about the new codec before applying.
Kailang, could you take a look?
thanks,
Takashi
Quoted 28 lines
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)sound/pci/hda/patch_realtek.c +3
-0@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x312f ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x313c ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3178 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x17aa ,0x3902 ,"Lenovo E50-80" ,ALC269_FIXUP_DMIC_THINKPAD_ACPI ),SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),@@ -9187,6 +9189,7 @@ static const struct hda_device_id snd_hda_id_realtek[] = {HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269),HDA_CODEC_REV_ENTRY (0x10ec0861 ,0x100340 ,"ALC660" , patch_alc861),HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861),Signature · 1 line
2.17.1
Quoted 22 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, October 23, 2019 12:08 AM
To: Aaron Ma <[email protected]>
Cc: [email protected]; Kailang <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 9 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.
Quoted 5 lines
Quoted 1 line
Signed-off-by Aaron Ma <[email protected]>I'd like to have Kailang's review about the new codec before applying.
Kailang, could you take a look?
OK.
I will post you the patch for ALC623 codec tomorrow. Thanks.
Quoted 40 lines
thanks,
Takashi
sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[]
Quoted 10 lines
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/sound/pci/hda/patch_realtek.cindexb000b36ac3c6..c34d8b435f58100644sound/pci/hda/patch_realtek.c +0
-0@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[]= {
sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7186
Quoted 1 line
sound/pci/hda/patch_realtek.c +0
-0SND_PCI_QUIRK(0x17aa, 0x312f, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7187
Quoted 1 line
sound/pci/hda/patch_realtek.c +0
-0SND_PCI_QUIRK(0x17aa, 0x313c, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7190
Quoted 3 lines
sound/pci/hda/patch_realtek.c +1
-0SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), + SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station",
ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7193
Quoted 3 lines
sound/pci/hda/patch_realtek.c +2
-0+SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" , +ALC283_FIXUP_HEADSET_MIC ), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80",
ALC269_FIXUP_DMIC_THINKPAD_ACPI),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x3977, "IdeaPad S210",
ALC283_FIXUP_INT_MIC),Quoted 2 lines
SND_PCI_QUIRK(0x17aa,
0x3978, "Lenovo B50-70",ALC269_FIXUP_DMIC_THINKPAD_ACPI), @@ -9187,6 +9189,7 @@ staticconst struct
hda_device_idsnd_hda_id_realtek[] = {sound/pci/hda/patch_realtek.c static const struct hda_device_id snd_hda_id_realtek[] = {
Quoted 5 lines
sound/pci/hda/patch_realtek.c +1
-0HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660",
patch_alc861),
Quoted 7 lines
Quoted 5 lines
sound/pci/hda/patch_realtek.c +0
-1HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861), --2.17.1
------Please consider the environment before printing this e-mail.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 22 lines · Kailang
Quoted 22 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, October 23, 2019 12:08 AM
To: Aaron Ma <[email protected]>
Cc: [email protected]; Kailang <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 9 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Aaron Ma <[email protected]>I'd like to have Kailang's review about the new codec before applying.
Kailang, could you take a look?
OK.
I will post you the patch for ALC623 codec tomorrow. Thanks.
Cc me too.
Thank you.
Aaron
Quoted 48 lines
Quoted 48 lines
thanks,
Takashi
sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[]
Quoted 10 lines
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/sound/pci/hda/patch_realtek.cindexb000b36ac3c6..c34d8b435f58100644sound/pci/hda/patch_realtek.c +0
-0@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[]= {
sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7186
Quoted 1 line
sound/pci/hda/patch_realtek.c +0
-0SND_PCI_QUIRK(0x17aa, 0x312f, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7187
Quoted 1 line
sound/pci/hda/patch_realtek.c +0
-0SND_PCI_QUIRK(0x17aa, 0x313c, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7190
Quoted 3 lines
sound/pci/hda/patch_realtek.c +1
-0SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), + SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station",
ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] · line 7193
Quoted 3 lines
sound/pci/hda/patch_realtek.c +2
-0+SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" , +ALC283_FIXUP_HEADSET_MIC ), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80",
ALC269_FIXUP_DMIC_THINKPAD_ACPI),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x3977, "IdeaPad S210",
ALC283_FIXUP_INT_MIC),Quoted 2 lines
SND_PCI_QUIRK(0x17aa,
0x3978, "Lenovo B50-70",ALC269_FIXUP_DMIC_THINKPAD_ACPI), @@ -9187,6 +9189,7 @@ staticconst struct
hda_device_idsnd_hda_id_realtek[] = {sound/pci/hda/patch_realtek.c static const struct hda_device_id snd_hda_id_realtek[] = {
Quoted 5 lines
sound/pci/hda/patch_realtek.c +1
-0HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660",
patch_alc861),Quoted 5 lines
sound/pci/hda/patch_realtek.c +0
-1HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861), --2.17.1
------Please consider the environment before printing this e-mail.
Hi Takashi,
Attach patch was support ALC623.
BR,
Kailang
Quoted 37 lines
-----Original Message-----
From: Aaron Ma <[email protected]>
Sent: Wednesday, October 23, 2019 6:06 PM
To: Kailang <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 28 lines · Kailang
Quoted 28 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, October 23, 2019 12:08 AM
To: Aaron Ma <[email protected]>
Cc: [email protected]; Kailang <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 10 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.Signed-off-by Aaron Ma <[email protected]>I'd like to have Kailang's review about the new codec before applying.
Kailang, could you take a look?
Quoted 58 lines
Quoted 3 lines
OK.
I will post you the patch for ALC623 codec tomorrow. Thanks.Cc me too.
Thank you.
AaronQuoted 49 lines
Quoted 49 lines
thanks,
Takashi
Quoted 11 lines
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/sound/pci/hda/patch_realtek.cindexb000b36ac3c6..c34d8b435f58100644sound/pci/hda/patch_realtek.c +0
-0@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirkalc269_fixup_tbl[]
= {
Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x312f, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x313c, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c
Quoted 3 lines
SND_PCI_QUIRK(0x17aa,
0x3151, "ThinkCentre Station",ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c +1
-0+ SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station",
ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c
Quoted 3 lines
sound/pci/hda/patch_realtek.c +2
-0+SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" , +ALC283_FIXUP_HEADSET_MIC ), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80",
ALC269_FIXUP_DMIC_THINKPAD_ACPI),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x3977, "IdeaPad S210",
ALC283_FIXUP_INT_MIC),Quoted 2 lines
SND_PCI_QUIRK(0x17aa,
0x3978, "Lenovo B50-70",ALC269_FIXUP_DMIC_THINKPAD_ACPI), @@ -9187,6 +9189,7 @@ staticconst struct
hda_device_idsnd_hda_id_realtek[] = {sound/pci/hda/patch_realtek.c
Quoted 5 lines
sound/pci/hda/patch_realtek.c +1
-0HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660",
patch_alc861),Quoted 5 lines
sound/pci/hda/patch_realtek.c +0
-1HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861), --2.17.1
------Please consider the environment before printing this e-mail.
From 3103f6683093e47368d87671f3726f1a11f9ef28 Mon Sep 17 00:00:00 2001
From: Kailang Yang <[email protected]>
Date: Thu, 24 Oct 2019 15:13:32 +0800
Subject: [PATCH] ALSA: hda/realtek - Add support for ALC623
Support new codec ALC623.
sound/pci/hda/patch_realtek.c +9 -0
@@ -409,6 +409,9 @@ static void alc_fill_eapd_coef(struct hda_codec *codec)case 0x10ec0672 :alc_update_coef_idx (codec,0xd ,0 ,1 <<14 );/* EAPD Ctrl */ break ; +case 0x10ec0623 : +alc_update_coef_idx (codec,0x19 ,1 <<13 ,0 ); +break ;case 0x10ec0668 :alc_update_coef_idx (codec,0x7 ,3 <<13 ,0 );break ;
@@ -2920,6 +2923,7 @@ enum {ALC269_TYPE_ALC225 ,ALC269_TYPE_ALC294 ,ALC269_TYPE_ALC300 , +ALC269_TYPE_ALC623 , ALC269_TYPE_ALC700, };
@@ -2955,6 +2959,7 @@ static int alc269_parse_auto_config(struct hda_codec *codec)case ALC269_TYPE_ALC225 :case ALC269_TYPE_ALC294 :case ALC269_TYPE_ALC300 : +case ALC269_TYPE_ALC623 :case ALC269_TYPE_ALC700 : ssids = alc269_ssids;break ;
@@ -8017,6 +8022,9 @@ static int patch_alc269(struct hda_codec *codec) spec->codec_variant =ALC269_TYPE_ALC300 ; spec->gen.mixer_nid =0 ;/* no loopback on ALC300 */ break ; +case 0x10ec0623 : + spec->codec_variant =ALC269_TYPE_ALC623 ; +break ;case 0x10ec0700 :case 0x10ec0701 :case 0x10ec0703 :
@@ -9218,6 +9226,7 @@ static const struct hda_device_id snd_hda_id_realtek[] = {HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269),HDA_CODEC_REV_ENTRY (0x10ec0861 ,0x100340 ,"ALC660" , patch_alc861),HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861),
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi Iwai
AppliedQuoted 4 lines · Kailang
Hi Takashi,
Attach patch was support ALC623.
Thanks, applied now.
Aaron, could you rebase your patch and resubmit?
Takashi
Quoted 101 lines
BR,
KailangQuoted 37 lines
-----Original Message-----
From: Aaron Ma <[email protected]>
Sent: Wednesday, October 23, 2019 6:06 PM
To: Kailang <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 28 lines · Kailang
Quoted 28 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, October 23, 2019 12:08 AM
To: Aaron Ma <[email protected]>
Cc: [email protected]; Kailang <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 10 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.Signed-off-by Aaron Ma <[email protected]>I'd like to have Kailang's review about the new codec before applying.
Kailang, could you take a look?
Quoted 58 lines
Quoted 3 lines
OK.
I will post you the patch for ALC623 codec tomorrow. Thanks.Cc me too.
Thank you.
AaronQuoted 49 lines
Quoted 49 lines
thanks,
Takashi
Quoted 11 lines
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/sound/pci/hda/patch_realtek.cindexb000b36ac3c6..c34d8b435f58100644sound/pci/hda/patch_realtek.c +0
-0@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirkalc269_fixup_tbl[]
= {
Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x312f, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x313c, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c
Quoted 3 lines
SND_PCI_QUIRK(0x17aa,
0x3151, "ThinkCentre Station",ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c +1
-0+ SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station",
ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c
Quoted 3 lines
sound/pci/hda/patch_realtek.c +2
-0+SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" , +ALC283_FIXUP_HEADSET_MIC ), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80",
ALC269_FIXUP_DMIC_THINKPAD_ACPI),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x3977, "IdeaPad S210",
ALC283_FIXUP_INT_MIC),Quoted 2 lines
SND_PCI_QUIRK(0x17aa,
0x3978, "Lenovo B50-70",ALC269_FIXUP_DMIC_THINKPAD_ACPI), @@ -9187,6 +9189,7 @@ staticconst struct
hda_device_idsnd_hda_id_realtek[] = {sound/pci/hda/patch_realtek.c static const struct hda_device_id snd_hda_id_realtek[] = {
Quoted 5 lines
sound/pci/hda/patch_realtek.c +1
-0HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660",
patch_alc861),Quoted 5 lines
sound/pci/hda/patch_realtek.c +0
-1HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861), --2.17.1
------Please consider the environment before printing this e-mail.
[2 0000-add-support-alc623.patch <application/octet-stream (base64)>]
Quoted 12 lines · Takashi Iwai
Quoted 4 lines · Kailang
Hi Takashi,
Attach patch was support ALC623.
Thanks, applied now.
Aaron, could you rebase your patch and resubmit?
Yes I will.
One line of same changes.
Thanks,
Aaron
Quoted 103 lines
Takashi
Quoted 101 lines
BR,
KailangQuoted 37 lines
-----Original Message-----
From: Aaron Ma <[email protected]>
Sent: Wednesday, October 23, 2019 6:06 PM
To: Kailang <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 28 lines · Kailang
Quoted 28 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, October 23, 2019 12:08 AM
To: Aaron Ma <[email protected]>
Cc: [email protected]; Kailang <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec0x623Quoted 10 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.Signed-off-by Aaron Ma <[email protected]>I'd like to have Kailang's review about the new codec before applying.
Kailang, could you take a look?
Quoted 58 lines
Quoted 3 lines
OK.
I will post you the patch for ALC623 codec tomorrow. Thanks.Cc me too.
Thank you.
AaronQuoted 49 lines
Quoted 49 lines
thanks,
Takashi
Quoted 11 lines
--- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/sound/pci/hda/patch_realtek.cindexb000b36ac3c6..c34d8b435f58100644sound/pci/hda/patch_realtek.c +0
-0@@ -7186,6 +7186,8 @@ static const struct snd_pci_quirkalc269_fixup_tbl[]
= {
Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x312f, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x313c, "ThinkCentre Station",
ALC294_FIXUP_LENOVO_MIC_LOCATION),sound/pci/hda/patch_realtek.c
Quoted 3 lines
SND_PCI_QUIRK(0x17aa,
0x3151, "ThinkCentre Station",ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c +1
-0+ SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station",
ALC283_FIXUP_HEADSET_MIC),sound/pci/hda/patch_realtek.c
Quoted 3 lines
sound/pci/hda/patch_realtek.c +2
-0+SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" , +ALC283_FIXUP_HEADSET_MIC ), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80",
ALC269_FIXUP_DMIC_THINKPAD_ACPI),Quoted 1 line
SND_PCI_QUIRK(0x17aa,
0x3977, "IdeaPad S210",
ALC283_FIXUP_INT_MIC),Quoted 2 lines
SND_PCI_QUIRK(0x17aa,
0x3978, "Lenovo B50-70",ALC269_FIXUP_DMIC_THINKPAD_ACPI), @@ -9187,6 +9189,7 @@ staticconst struct
hda_device_idsnd_hda_id_realtek[] = {sound/pci/hda/patch_realtek.c static const struct hda_device_id snd_hda_id_realtek[] = {
Quoted 5 lines
sound/pci/hda/patch_realtek.c +1
-0HDA_CODEC_ENTRY (0x10ec0298 ,"ALC298" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0299 ,"ALC299" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0300 ,"ALC300" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0623 ,"ALC623" , patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660",
patch_alc861),Quoted 5 lines
sound/pci/hda/patch_realtek.c +0
-1HDA_CODEC_ENTRY (0x10ec0660 ,"ALC660-VD" , patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861), --2.17.1
------Please consider the environment before printing this e-mail.
[2 0000-add-support-alc623.patch <application/octet-stream (base64)>]
PATCH v2 1/1 ALSA: hda/realtek - Fix 2 front mics of codec 0x623
In reply to Aaron MaThese 2 ThinkCentres installed a new realtek codec ID 0x623, it has 2 front mics with the same location on pin 0x18 and 0x19.
Apply fixup ALC283_FIXUP_HEADSET_MIC to change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.
--- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+)
sound/pci/hda/patch_realtek.c +2 -0
@@ -7221,6 +7221,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x312f ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x313c ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3178 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x17aa ,0x3902 ,"Lenovo E50-80" ,ALC269_FIXUP_DMIC_THINKPAD_ACPI ),SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
Signature · 1 line
2.17.1
Quoted 18 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.Signed-off-by Aaron Ma <[email protected]>--- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+)sound/pci/hda/patch_realtek.c +0
-0
sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] = { · line 7225
Quoted 5 lines
sound/pci/hda/patch_realtek.c +2
-0@@ -7221,6 +7221,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x312f ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x313c ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3178 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), + SND_PCI_QUIRK(0x17aa, 0x3176, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC),
Please sort them in numerical order, 0x3176 is ahead of 0x3178.
thanks
Quoted 3 lines
sound/pci/hda/patch_realtek.c +0
-0SND_PCI_QUIRK (0x17aa ,0x3902 ,"Lenovo E50-80" ,ALC269_FIXUP_DMIC_THINKPAD_ACPI ),SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
PATCH v3 1/1 ALSA: hda/realtek - Fix 2 front mics of codec 0x623
In reply to Aaron MaThese 2 ThinkCentres installed a new realtek codec ID 0x623, it has 2 front mics with the same location on pin 0x18 and 0x19.
Apply fixup ALC283_FIXUP_HEADSET_MIC to change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.
--- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+)
sound/pci/hda/patch_realtek.c +2 -0
@@ -7221,6 +7221,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x312f ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x313c ,"ThinkCentre Station" ,ALC294_FIXUP_LENOVO_MIC_LOCATION ),SND_PCI_QUIRK (0x17aa ,0x3151 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3176 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x17aa ,0x3178 ,"ThinkCentre Station" ,ALC283_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x17aa ,0x3902 ,"Lenovo E50-80" ,ALC269_FIXUP_DMIC_THINKPAD_ACPI ),SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
Signature · 1 line
2.17.1
Takashi Iwai
AppliedQuoted 10 lines · Aaron Ma
These 2 ThinkCentres installed a new realtek codec ID
0x623, it has 2 front mics with the same location on pin0x18and0x19.Apply fixup
ALC283_FIXUP_HEADSET_MICto change 1 front mic location to right, then pulseaudio can handle them.
One "Front Mic" and one "Mic" will be shown, and audio output works fine.Signed-off-by Aaron Ma <[email protected]>
Applied, thanks.
Takashi