All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295
@ 2020-05-12  6:15 ` Jian-Hong Pan
  0 siblings, 0 replies; 12+ messages in thread
From: Jian-Hong Pan @ 2020-05-12  6:15 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: alsa-devel, linux-kernel, linux, Chris Chiu, Daniel Drake, Jian-Hong Pan

From: Chris Chiu <chiu@endlessm.com>

The ASUS laptop GL503VM with ALC295 can't detect the headset microphone.
The headset microphone does not work until pin 0x19 is enabled for it.

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
---
 sound/pci/hda/patch_realtek.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c16f63957c5a..6c996df16201 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6083,6 +6083,7 @@ enum {
 	ALC285_FIXUP_HP_GPIO_LED,
 	ALC285_FIXUP_HP_MUTE_LED,
 	ALC236_FIXUP_HP_MUTE_LED,
+	ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
 };
 
 static const struct hda_fixup alc269_fixups[] = {
@@ -7216,6 +7217,15 @@ static const struct hda_fixup alc269_fixups[] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc236_fixup_hp_mute_led,
 	},
+	[ALC295_FIXUP_ASUS_MIC_NO_PRESENCE] = {
+		.type = HDA_FIXUP_PINS,
+		.v.pins = (const struct hda_pintbl[]) {
+			{ 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
+			{ }
+		},
+		.chained = true,
+		.chain_id = ALC269_FIXUP_HEADSET_MODE
+	},
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -7993,6 +8003,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
 		{0x12, 0x90a60130},
 		{0x17, 0x90170110},
 		{0x21, 0x03211020}),
+	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
+		{0x12, 0x90a60130},
+		{0x17, 0x90170110},
+		{0x21, 0x03211020}),
 	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
 		{0x14, 0x90170110},
 		{0x21, 0x04211020}),
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295
@ 2020-05-12  6:15 ` Jian-Hong Pan
  0 siblings, 0 replies; 12+ messages in thread
From: Jian-Hong Pan @ 2020-05-12  6:15 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: alsa-devel, Chris Chiu, linux-kernel, Daniel Drake, Jian-Hong Pan, linux

From: Chris Chiu <chiu@endlessm.com>

The ASUS laptop GL503VM with ALC295 can't detect the headset microphone.
The headset microphone does not work until pin 0x19 is enabled for it.

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
---
 sound/pci/hda/patch_realtek.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c16f63957c5a..6c996df16201 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6083,6 +6083,7 @@ enum {
 	ALC285_FIXUP_HP_GPIO_LED,
 	ALC285_FIXUP_HP_MUTE_LED,
 	ALC236_FIXUP_HP_MUTE_LED,
+	ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
 };
 
 static const struct hda_fixup alc269_fixups[] = {
@@ -7216,6 +7217,15 @@ static const struct hda_fixup alc269_fixups[] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc236_fixup_hp_mute_led,
 	},
+	[ALC295_FIXUP_ASUS_MIC_NO_PRESENCE] = {
+		.type = HDA_FIXUP_PINS,
+		.v.pins = (const struct hda_pintbl[]) {
+			{ 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
+			{ }
+		},
+		.chained = true,
+		.chain_id = ALC269_FIXUP_HEADSET_MODE
+	},
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -7993,6 +8003,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
 		{0x12, 0x90a60130},
 		{0x17, 0x90170110},
 		{0x21, 0x03211020}),
+	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
+		{0x12, 0x90a60130},
+		{0x17, 0x90170110},
+		{0x21, 0x03211020}),
 	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
 		{0x14, 0x90170110},
 		{0x21, 0x04211020}),
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/3] ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295
  2020-05-12  6:15 ` Jian-Hong Pan
@ 2020-05-12  6:15   ` Jian-Hong Pan
  -1 siblings, 0 replies; 12+ messages in thread
From: Jian-Hong Pan @ 2020-05-12  6:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, linux-kernel, linux, Jian-Hong Pan, Daniel Drake

The ASUS laptop UX550GE with ALC295 can't detect the headset microphone
until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied.

Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
---
 sound/pci/hda/patch_realtek.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 6c996df16201..dcb97b39be6e 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -8003,6 +8003,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
 		{0x12, 0x90a60130},
 		{0x17, 0x90170110},
 		{0x21, 0x03211020}),
+	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
+		{0x12, 0x90a60120},
+		{0x17, 0x90170110},
+		{0x21, 0x04211030}),
 	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
 		{0x12, 0x90a60130},
 		{0x17, 0x90170110},
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/3] ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295
@ 2020-05-12  6:15   ` Jian-Hong Pan
  0 siblings, 0 replies; 12+ messages in thread
From: Jian-Hong Pan @ 2020-05-12  6:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Jian-Hong Pan, alsa-devel, linux, linux-kernel, Daniel Drake

The ASUS laptop UX550GE with ALC295 can't detect the headset microphone
until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied.

Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
---
 sound/pci/hda/patch_realtek.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 6c996df16201..dcb97b39be6e 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -8003,6 +8003,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
 		{0x12, 0x90a60130},
 		{0x17, 0x90170110},
 		{0x21, 0x03211020}),
+	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
+		{0x12, 0x90a60120},
+		{0x17, 0x90170110},
+		{0x21, 0x04211030}),
 	SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
 		{0x12, 0x90a60130},
 		{0x17, 0x90170110},
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/3] ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295
  2020-05-12  6:15 ` Jian-Hong Pan
@ 2020-05-12  6:15   ` Jian-Hong Pan
  -1 siblings, 0 replies; 12+ messages in thread
From: Jian-Hong Pan @ 2020-05-12  6:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, linux-kernel, linux, Jian-Hong Pan

The ASUS UX581LV laptop's audio (1043:19e1) with ALC295 can't detect the
headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk
applied.

Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
---
 sound/pci/hda/patch_realtek.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index dcb97b39be6e..36832645de78 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -7393,6 +7393,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x18f1, "Asus FX505DT", ALC256_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE),
+	SND_PCI_QUIRK(0x1043, 0x19e1, "ASUS UX581LV", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),
 	SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1b13, "Asus U41SV", ALC269_FIXUP_INV_DMIC),
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/3] ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295
@ 2020-05-12  6:15   ` Jian-Hong Pan
  0 siblings, 0 replies; 12+ messages in thread
From: Jian-Hong Pan @ 2020-05-12  6:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Jian-Hong Pan, alsa-devel, linux, linux-kernel

The ASUS UX581LV laptop's audio (1043:19e1) with ALC295 can't detect the
headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk
applied.

Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
---
 sound/pci/hda/patch_realtek.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index dcb97b39be6e..36832645de78 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -7393,6 +7393,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x18f1, "Asus FX505DT", ALC256_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE),
+	SND_PCI_QUIRK(0x1043, 0x19e1, "ASUS UX581LV", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),
 	SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1b13, "Asus U41SV", ALC269_FIXUP_INV_DMIC),
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295
  2020-05-12  6:15 ` Jian-Hong Pan
@ 2020-05-12  6:45   ` Takashi Iwai
  -1 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2020-05-12  6:45 UTC (permalink / raw)
  To: Jian-Hong Pan
  Cc: Takashi Iwai, alsa-devel, linux-kernel, linux, Chris Chiu, Daniel Drake

On Tue, 12 May 2020 08:15:24 +0200,
Jian-Hong Pan wrote:
> 
> From: Chris Chiu <chiu@endlessm.com>
> 
> The ASUS laptop GL503VM with ALC295 can't detect the headset microphone.
> The headset microphone does not work until pin 0x19 is enabled for it.
> 
> Signed-off-by: Chris Chiu <chiu@endlessm.com>
> Signed-off-by: Daniel Drake <drake@endlessm.com>
> Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295
@ 2020-05-12  6:45   ` Takashi Iwai
  0 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2020-05-12  6:45 UTC (permalink / raw)
  To: Jian-Hong Pan
  Cc: alsa-devel, linux-kernel, Chris Chiu, Takashi Iwai, Daniel Drake, linux

On Tue, 12 May 2020 08:15:24 +0200,
Jian-Hong Pan wrote:
> 
> From: Chris Chiu <chiu@endlessm.com>
> 
> The ASUS laptop GL503VM with ALC295 can't detect the headset microphone.
> The headset microphone does not work until pin 0x19 is enabled for it.
> 
> Signed-off-by: Chris Chiu <chiu@endlessm.com>
> Signed-off-by: Daniel Drake <drake@endlessm.com>
> Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/3] ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295
  2020-05-12  6:15   ` Jian-Hong Pan
@ 2020-05-12  6:45     ` Takashi Iwai
  -1 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2020-05-12  6:45 UTC (permalink / raw)
  To: Jian-Hong Pan; +Cc: Takashi Iwai, alsa-devel, linux-kernel, linux, Daniel Drake

On Tue, 12 May 2020 08:15:26 +0200,
Jian-Hong Pan wrote:
> 
> The ASUS laptop UX550GE with ALC295 can't detect the headset microphone
> until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied.
> 
> Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
> Signed-off-by: Daniel Drake <drake@endlessm.com>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/3] ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295
@ 2020-05-12  6:45     ` Takashi Iwai
  0 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2020-05-12  6:45 UTC (permalink / raw)
  To: Jian-Hong Pan; +Cc: alsa-devel, Daniel Drake, linux, Takashi Iwai, linux-kernel

On Tue, 12 May 2020 08:15:26 +0200,
Jian-Hong Pan wrote:
> 
> The ASUS laptop UX550GE with ALC295 can't detect the headset microphone
> until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied.
> 
> Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
> Signed-off-by: Daniel Drake <drake@endlessm.com>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 3/3] ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295
  2020-05-12  6:15   ` Jian-Hong Pan
@ 2020-05-12  6:45     ` Takashi Iwai
  -1 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2020-05-12  6:45 UTC (permalink / raw)
  To: Jian-Hong Pan; +Cc: Takashi Iwai, alsa-devel, linux-kernel, linux

On Tue, 12 May 2020 08:15:28 +0200,
Jian-Hong Pan wrote:
> 
> The ASUS UX581LV laptop's audio (1043:19e1) with ALC295 can't detect the
> headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk
> applied.
> 
> Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 3/3] ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295
@ 2020-05-12  6:45     ` Takashi Iwai
  0 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2020-05-12  6:45 UTC (permalink / raw)
  To: Jian-Hong Pan; +Cc: alsa-devel, linux, Takashi Iwai, linux-kernel

On Tue, 12 May 2020 08:15:28 +0200,
Jian-Hong Pan wrote:
> 
> The ASUS UX581LV laptop's audio (1043:19e1) with ALC295 can't detect the
> headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk
> applied.
> 
> Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-05-12  6:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12  6:15 [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295 Jian-Hong Pan
2020-05-12  6:15 ` Jian-Hong Pan
2020-05-12  6:15 ` [PATCH 2/3] ALSA: hda/realtek - Enable headset mic of ASUS UX550GE " Jian-Hong Pan
2020-05-12  6:15   ` Jian-Hong Pan
2020-05-12  6:45   ` Takashi Iwai
2020-05-12  6:45     ` Takashi Iwai
2020-05-12  6:15 ` [PATCH 3/3] ALSA: hda/realtek: Enable headset mic of ASUS UX581LV " Jian-Hong Pan
2020-05-12  6:15   ` Jian-Hong Pan
2020-05-12  6:45   ` Takashi Iwai
2020-05-12  6:45     ` Takashi Iwai
2020-05-12  6:45 ` [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM " Takashi Iwai
2020-05-12  6:45   ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.