From: Stephan Lensky <linux@slensky.com>
To: Takashi Iwai <tiwai@suse.com>
Cc: "Jaroslav Kysela" <perex@perex.cz>,
"Mark Brown" <broonie@kernel.org>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Hans de Goede" <hansg@kernel.org>, "Len Brown" <lenb@kernel.org>,
"Kevin Cuperus" <cuperus.kevin@hotmail.com>,
linux-sound@vger.kernel.org, linux-acpi@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
"Stephan Lensky" <linux@slensky.com>
Subject: [PATCH 4/4] ALSA: hda/realtek: Add MAX98390 fixup for Samsung Galaxy Book4 Pro 360
Date: Tue, 1 Dec 2026 22:12:33 -0500 [thread overview]
Message-ID: <20261202031233.171555-5-linux@slensky.com> (raw)
In-Reply-To: <20261202031233.171555-1-linux@slensky.com>
From: Kevin Cuperus <cuperus.kevin@hotmail.com>
The internal speakers of the Samsung Galaxy Book4 Pro 360 (NP960QGK,
PCI SSID 144d:c892) produce no sound. The laptop pairs an ALC298 codec
with four MAX98390 amplifiers on I2C, which need to be configured by
the host.
Add ALC298_FIXUP_SAMSUNG_MAX98390_4_AMPS, which registers the four
"max98390-hda" instances created by serial-multi-instantiate as HDA
components using comp_generic_fixup, and apply it to the NP960QGK. The
fixup is also selectable as the "alc298-samsung-max98390-4-amps"
model.
Other Galaxy Book4 and Book5 models are reported to use the same
amplifier configuration and will be added once they have been tested.
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220808
Link: https://github.com/thesofproject/linux/issues/5606
Signed-off-by: Kevin Cuperus <cuperus.kevin@hotmail.com>
[stephan: limited the quirk to the tested NP960QGK]
Signed-off-by: Stephan Lensky <linux@slensky.com>
---
sound/hda/codecs/realtek/alc269.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index a4b433387889..624cb882fa4a 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -3609,6 +3609,12 @@ static void cs35l41_fixup_spi_four(struct hda_codec *codec, const struct hda_fix
comp_generic_fixup(codec, action, "spi", "CSC3551", "-%s:00-cs35l41-hda.%d", 4);
}
+static void max98390_fixup_i2c_four(struct hda_codec *codec, const struct hda_fixup *fix,
+ int action)
+{
+ comp_generic_fixup(codec, action, "i2c", "MAX98390", "-%s:00-max98390-hda.%d", 4);
+}
+
static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const struct hda_fixup *fix,
int action)
{
@@ -4505,6 +4511,7 @@ enum {
ALC298_FIXUP_MSI_GE66_ALC1316_AMP,
ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS,
ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS,
+ ALC298_FIXUP_SAMSUNG_MAX98390_4_AMPS,
ALC298_FIXUP_LG_GRAM_STYLE_14,
ALC298_FIXUP_RAZER_BLADE16_2025_PINS,
ALC298_FIXUP_RAZER_BLADE16_2025,
@@ -6460,6 +6467,10 @@ static const struct hda_fixup alc269_fixups[] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc298_fixup_samsung_amp_v2_4_amps
},
+ [ALC298_FIXUP_SAMSUNG_MAX98390_4_AMPS] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = max98390_fixup_i2c_four
+ },
[ALC298_FIXUP_LG_GRAM_STYLE_14] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc298_fixup_lg_gram_style_14
@@ -8492,6 +8503,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x144d, 0xc870, "Samsung Galaxy Book2 Pro (NP950XED)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
SND_PCI_QUIRK(0x144d, 0xc872, "Samsung Galaxy Book2 Pro (NP950XEE)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
SND_PCI_QUIRK(0x144d, 0xc886, "Samsung Galaxy Book3 Pro (NP964XFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
+ SND_PCI_QUIRK(0x144d, 0xc892, "Samsung Galaxy Book4 Pro 360 (NP960QGK)", ALC298_FIXUP_SAMSUNG_MAX98390_4_AMPS),
SND_PCI_QUIRK(0x144d, 0xc902, "Samsung Galaxy Book5 360 (NP750QHA)", ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
SND_PCI_QUIRK(0x144d, 0xc1ca, "Samsung Galaxy Book3 Pro 360 (NP960QFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
SND_PCI_QUIRK(0x144d, 0xc1cb, "Samsung Galaxy Book3 Pro 360 (NP965QFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
@@ -9120,6 +9132,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
{.id = ALC298_FIXUP_MSI_GE66_ALC1316_AMP, .name = "alc298-alc1316-amp"},
{.id = ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS, .name = "alc298-samsung-amp-v2-2-amps"},
{.id = ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS, .name = "alc298-samsung-amp-v2-4-amps"},
+ {.id = ALC298_FIXUP_SAMSUNG_MAX98390_4_AMPS, .name = "alc298-samsung-max98390-4-amps"},
{.id = ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc256-samsung-headphone"},
{.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"},
{.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"},
--
2.55.0
prev parent reply other threads:[~2026-12-02 3:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 3:12 [PATCH 0/4] ALSA: hda: Add MAX98390 side codec support for Samsung Galaxy Book4 Pro 360 Stephan Lensky
2026-12-02 3:12 ` [PATCH 1/4] ASoC: max98390: Move register definitions to include/sound Stephan Lensky
2026-12-02 3:12 ` [PATCH 2/4] ACPI/platform: Add MAX98390 to serial-multi-instantiate Stephan Lensky
2026-12-02 3:12 ` [PATCH 3/4] ALSA: hda: Add MAX98390 side codec driver Stephan Lensky
2026-12-02 3:23 ` sashiko-bot
2026-12-02 3:12 ` Stephan Lensky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202031233.171555-5-linux@slensky.com \
--to=linux@slensky.com \
--cc=broonie@kernel.org \
--cc=cuperus.kevin@hotmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=lenb@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.