* [PATCH] ALSA: hda/realtek: Fix quiet speakers on HP 250 G6
@ 2026-11-18 3:39 Zhang Heng
2026-11-18 12:56 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Heng @ 2026-11-18 3:39 UTC (permalink / raw)
To: tiwai; +Cc: perex, linux-sound, linux-kernel, Zhang Heng, Shredrum
The HP 250 G6 (ALC3227, subsystem 103c:832e) has much quieter internal
speakers than on Windows. The Windows driver writes coef 0x6d = 0x0900
and four EQ coefficients framed by 0x22 writes, while Linux leaves the
high nibble of 0x6d at its hardware default (0xe900) and never writes
the EQ coefficients. Add a fixup to apply the same coefficients on init.
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=222283
Tested-by: Shredrum <alex0plays007@gmail.com>
Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
---
sound/hda/codecs/realtek/alc269.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index 2c541c6..35090f6 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -2688,6 +2688,23 @@ static void asus_tx300_automute(struct hda_codec *codec)
spec->gen.mute_bits |= (1ULL << 0x14);
}
+static void alc282_fixup_hp_250g6(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ if (action != HDA_FIXUP_ACT_INIT)
+ return;
+
+ alc_write_coef_idx(codec, 0x6d, 0x0900);
+
+ /* filter block: disable, load coefficients, re-enable */
+ alc_write_coef_idx(codec, 0x22, 0x400a);
+ alc_write_coef_idx(codec, 0x24, 0x1ec4);
+ alc_write_coef_idx(codec, 0x39, 0x1ea9);
+ alc_write_coef_idx(codec, 0x44, 0x1f61);
+ alc_write_coef_idx(codec, 0x4f, 0x1fb0);
+ alc_write_coef_idx(codec, 0x22, 0xe04a);
+}
+
static void alc282_fixup_asus_tx300(struct hda_codec *codec,
const struct hda_fixup *fix, int action)
{
@@ -4232,6 +4249,7 @@ enum {
ALC269VB_FIXUP_ORDISSIMO_EVE2,
ALC283_FIXUP_CHROME_BOOK,
ALC283_FIXUP_SENSE_COMBO_JACK,
+ ALC282_FIXUP_HP_250G6_EQ,
ALC282_FIXUP_ASUS_TX300,
ALC283_FIXUP_INT_MIC,
ALC290_FIXUP_MONO_SPEAKERS,
@@ -5199,6 +5217,10 @@ static const struct hda_fixup alc269_fixups[] = {
.chained = true,
.chain_id = ALC283_FIXUP_CHROME_BOOK,
},
+ [ALC282_FIXUP_HP_250G6_EQ] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc282_fixup_hp_250g6,
+ },
[ALC282_FIXUP_ASUS_TX300] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc282_fixup_asus_tx300,
@@ -7723,6 +7745,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x103c, 0x827f, "HP x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
SND_PCI_QUIRK(0x103c, 0x82bf, "HP G3 mini", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x103c, 0x82c0, "HP G3 mini premium", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x103c, 0x832e, "HP 250 G6", ALC282_FIXUP_HP_250G6_EQ),
SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
SND_PCI_QUIRK(0x103c, 0x841c, "HP Pavilion 15-CK0xx", ALC269_FIXUP_HP_MUTE_LED_MIC3),
HDA_CODEC_QUIRK(0x103c, 0x8486, "HP Pavilion x360", ALC295_FIXUP_HP_PAVILION_X360),
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: hda/realtek: Fix quiet speakers on HP 250 G6
2026-11-18 3:39 [PATCH] ALSA: hda/realtek: Fix quiet speakers on HP 250 G6 Zhang Heng
@ 2026-11-18 12:56 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2026-11-18 12:56 UTC (permalink / raw)
To: Zhang Heng; +Cc: tiwai, perex, linux-sound, linux-kernel, Shredrum
On Wed, 18 Nov 2026 04:39:01 +0100,
Zhang Heng wrote:
>
> The HP 250 G6 (ALC3227, subsystem 103c:832e) has much quieter internal
> speakers than on Windows. The Windows driver writes coef 0x6d = 0x0900
> and four EQ coefficients framed by 0x22 writes, while Linux leaves the
> high nibble of 0x6d at its hardware default (0xe900) and never writes
> the EQ coefficients. Add a fixup to apply the same coefficients on init.
>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=222283
> Tested-by: Shredrum <alex0plays007@gmail.com>
> Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-18 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 3:39 [PATCH] ALSA: hda/realtek: Fix quiet speakers on HP 250 G6 Zhang Heng
2026-11-18 12:56 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®