* [PATCH] ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone
@ 2026-03-05 2:49 Zhang Heng
2026-03-05 12:02 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Zhang Heng @ 2026-03-05 2:49 UTC (permalink / raw)
To: tiwai, perex; +Cc: linux-sound, linux-kernel, Zhang Heng
The BIOS of this machine has set 0x19 to mic, which needs to be set
to headphone pin in order to work properly.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=220814
Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
---
sound/hda/codecs/realtek/alc662.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sound/hda/codecs/realtek/alc662.c b/sound/hda/codecs/realtek/alc662.c
index 5073165d1f3c..e5c75f27fca2 100644
--- a/sound/hda/codecs/realtek/alc662.c
+++ b/sound/hda/codecs/realtek/alc662.c
@@ -313,6 +313,7 @@ enum {
ALC897_FIXUP_HEADSET_MIC_PIN2,
ALC897_FIXUP_UNIS_H3C_X500S,
ALC897_FIXUP_HEADSET_MIC_PIN3,
+ ALC897_FIXUP_H610M_HP_PIN,
};
static const struct hda_fixup alc662_fixups[] = {
@@ -766,6 +767,13 @@ static const struct hda_fixup alc662_fixups[] = {
{ }
},
},
+ [ALC897_FIXUP_H610M_HP_PIN] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x0321403f }, /* HP out */
+ { }
+ },
+ },
};
static const struct hda_quirk alc662_fixup_tbl[] = {
@@ -816,6 +824,7 @@ static const struct hda_quirk alc662_fixup_tbl[] = {
SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_FIXUP_ASUS_MODE2),
SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
SND_PCI_QUIRK(0x14cd, 0x5003, "USI", ALC662_FIXUP_USI_HEADSET_MODE),
+ SND_PCI_QUIRK(0x1458, 0xa194, "H610M H V2 DDR4", ALC897_FIXUP_H610M_HP_PIN),
SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC662_FIXUP_LENOVO_MULTI_CODECS),
SND_PCI_QUIRK(0x17aa, 0x1057, "Lenovo P360", ALC897_FIXUP_HEADSET_MIC_PIN),
SND_PCI_QUIRK(0x17aa, 0x1064, "Lenovo P3 Tower", ALC897_FIXUP_HEADSET_MIC_PIN),
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone
2026-03-05 2:49 [PATCH] ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone Zhang Heng
@ 2026-03-05 12:02 ` Takashi Iwai
2026-03-06 1:19 ` zhangheng
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2026-03-05 12:02 UTC (permalink / raw)
To: Zhang Heng; +Cc: tiwai, perex, linux-sound, linux-kernel
On Thu, 05 Mar 2026 03:49:58 +0100,
Zhang Heng wrote:
>
> The BIOS of this machine has set 0x19 to mic, which needs to be set
> to headphone pin in order to work properly.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=220814
> Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
> ---
> sound/hda/codecs/realtek/alc662.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/sound/hda/codecs/realtek/alc662.c b/sound/hda/codecs/realtek/alc662.c
> index 5073165d1f3c..e5c75f27fca2 100644
> --- a/sound/hda/codecs/realtek/alc662.c
> +++ b/sound/hda/codecs/realtek/alc662.c
> @@ -313,6 +313,7 @@ enum {
> ALC897_FIXUP_HEADSET_MIC_PIN2,
> ALC897_FIXUP_UNIS_H3C_X500S,
> ALC897_FIXUP_HEADSET_MIC_PIN3,
> + ALC897_FIXUP_H610M_HP_PIN,
> };
>
> static const struct hda_fixup alc662_fixups[] = {
> @@ -766,6 +767,13 @@ static const struct hda_fixup alc662_fixups[] = {
> { }
> },
> },
> + [ALC897_FIXUP_H610M_HP_PIN] = {
> + .type = HDA_FIXUP_PINS,
> + .v.pins = (const struct hda_pintbl[]) {
> + { 0x19, 0x0321403f }, /* HP out */
> + { }
> + },
> + },
> };
>
> static const struct hda_quirk alc662_fixup_tbl[] = {
> @@ -816,6 +824,7 @@ static const struct hda_quirk alc662_fixup_tbl[] = {
> SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_FIXUP_ASUS_MODE2),
> SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
> SND_PCI_QUIRK(0x14cd, 0x5003, "USI", ALC662_FIXUP_USI_HEADSET_MODE),
> + SND_PCI_QUIRK(0x1458, 0xa194, "H610M H V2 DDR4", ALC897_FIXUP_H610M_HP_PIN),
> SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC662_FIXUP_LENOVO_MULTI_CODECS),
> SND_PCI_QUIRK(0x17aa, 0x1057, "Lenovo P360", ALC897_FIXUP_HEADSET_MIC_PIN),
> SND_PCI_QUIRK(0x17aa, 0x1064, "Lenovo P3 Tower", ALC897_FIXUP_HEADSET_MIC_PIN),
Could you try to put at the right position in the sorted list?
thanks,
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone
2026-03-05 12:02 ` Takashi Iwai
@ 2026-03-06 1:19 ` zhangheng
2026-03-09 8:55 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: zhangheng @ 2026-03-06 1:19 UTC (permalink / raw)
To: Takashi Iwai; +Cc: tiwai, perex, linux-sound, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 74 bytes --]
> Sorry, I didn't take a closer look. I will check it carefully next time.
[-- Attachment #2: v2-0001-ALSA-hda-realtek-Add-quirk-for-Gigabyte-Technolog.patch --]
[-- Type: text/plain, Size: 1881 bytes --]
From 6d60f41012a0db7fc5ebbd1e03c47ed837495022 Mon Sep 17 00:00:00 2001
From: Zhang Heng <zhangheng@kylinos.cn>
Date: Thu, 5 Mar 2026 10:35:59 +0800
Subject: [PATCH v2] ALSA: hda/realtek: Add quirk for Gigabyte Technology to
fix headphone
The BIOS of this machine has set 0x19 to mic, which needs to be set
to headphone pin in order to work properly.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=220814
Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
---
sound/hda/codecs/realtek/alc662.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sound/hda/codecs/realtek/alc662.c b/sound/hda/codecs/realtek/alc662.c
index 5073165d1f3c..3a943adf9087 100644
--- a/sound/hda/codecs/realtek/alc662.c
+++ b/sound/hda/codecs/realtek/alc662.c
@@ -313,6 +313,7 @@ enum {
ALC897_FIXUP_HEADSET_MIC_PIN2,
ALC897_FIXUP_UNIS_H3C_X500S,
ALC897_FIXUP_HEADSET_MIC_PIN3,
+ ALC897_FIXUP_H610M_HP_PIN,
};
static const struct hda_fixup alc662_fixups[] = {
@@ -766,6 +767,13 @@ static const struct hda_fixup alc662_fixups[] = {
{ }
},
},
+ [ALC897_FIXUP_H610M_HP_PIN] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x0321403f }, /* HP out */
+ { }
+ },
+ },
};
static const struct hda_quirk alc662_fixup_tbl[] = {
@@ -815,6 +823,7 @@ static const struct hda_quirk alc662_fixup_tbl[] = {
SND_PCI_QUIRK(0x1043, 0x8469, "ASUS mobo", ALC662_FIXUP_NO_JACK_DETECT),
SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_FIXUP_ASUS_MODE2),
SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
+ SND_PCI_QUIRK(0x1458, 0xa194, "H610M H V2 DDR4", ALC897_FIXUP_H610M_HP_PIN),
SND_PCI_QUIRK(0x14cd, 0x5003, "USI", ALC662_FIXUP_USI_HEADSET_MODE),
SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC662_FIXUP_LENOVO_MULTI_CODECS),
SND_PCI_QUIRK(0x17aa, 0x1057, "Lenovo P360", ALC897_FIXUP_HEADSET_MIC_PIN),
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone
2026-03-06 1:19 ` zhangheng
@ 2026-03-09 8:55 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2026-03-09 8:55 UTC (permalink / raw)
To: zhangheng; +Cc: Takashi Iwai, tiwai, perex, linux-sound, linux-kernel
On Fri, 06 Mar 2026 02:19:57 +0100,
zhangheng wrote:
>
> > Sorry, I didn't take a closer look. I will check it carefully next time.
> From 6d60f41012a0db7fc5ebbd1e03c47ed837495022 Mon Sep 17 00:00:00 2001
> From: Zhang Heng <zhangheng@kylinos.cn>
> Date: Thu, 5 Mar 2026 10:35:59 +0800
> Subject: [PATCH v2] ALSA: hda/realtek: Add quirk for Gigabyte Technology to
> fix headphone
>
> The BIOS of this machine has set 0x19 to mic, which needs to be set
> to headphone pin in order to work properly.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=220814
> Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-09 8:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 2:49 [PATCH] ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone Zhang Heng
2026-03-05 12:02 ` Takashi Iwai
2026-03-06 1:19 ` zhangheng
2026-03-09 8:55 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox