From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.152 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796181231; b=f5OJQEBiRG2AIImAYAb9LS0992MP3iVNC6uXDNi9cOSY22BYKK9pqYYwyVhp+3v5TcAh U6h3DdQXlFw80vD+s7IlxMax06aVLy0/OO7PuelU0YxnCHf91Z2UG/VX90VjatDLDydOu B7AB49o7iENcVpxOOmh9VVbtxm33GNYo+z0ViR27I3wWPj4uMCnKtciwZlDrL0aiOSHKe AFdVclxunxy2QozBk1VcAtk2WIIxGwy/UtwYtFBpiWnDvnYjQtOSZNsaE0wpP2PF9qaNn mAoPNXzU5ZNLns9uBzi4Peo/8iMilOTlKNluoT7y04x6y9KwJ8qSHJl59thIWWP4XIg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796181231; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=bvkNooUwk/NFxL71NidW9zKhErqfHpg+j4epmNSVchM=; b=zNMVxPU8/VaSTsG9eMzSDgheOd0taidqaz9W63hCoAaFCHWlDXCIYO0otJSzFDkxBVHc 57WuMIbDgYt8XcSMjO71fQuwtFgMGt/tOF2PW5cNuV2Iwnq8l08pNFINUAJdPNrz7C9Za IEtA9IBmoBLt/sGA09tda3sFlt+SXp+CbE1RCwnM4rJSL/S1SPEXexyvORLelGJXqRcSZ t+jSBe9FIWdJ3AHhVJW/hX+RxsyyeDP1Jmu5c936gYXKDVaAEERTLO2c+9JtNFnLtNBty lTHwy61JhmIr4C42he2LaeyDv8V/nDM+Za1WD7aBSgpcmHcNzk+OwNYG1xyBS1ZshEg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=slensky.com; spf=pass smtp.mailfrom=slensky.com; dkim=pass header.d=slensky.com header.i=@slensky.com header.a=rsa-sha256 header.s=MBO0001 header.b=rnicopJO; arc=none smtp.remote-ip=80.241.56.152 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E177E606A31A; Wed, 2 Dec 2026 03:13:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E177E606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=slensky.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=slensky.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=slensky.com header.i=@slensky.com header.a=rsa-sha256 header.s=MBO0001 header.b=rnicopJO Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4jfNBh4HtyzKvnk; Wed, 02 Dec 2026 04:13:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slensky.com; s=MBO0001; t=1796181228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bvkNooUwk/NFxL71NidW9zKhErqfHpg+j4epmNSVchM=; b=rnicopJOdUz0OCCm6eSQiCh9MjG0846YKiRCt4b/KUpgvrxUKSgKQYKxtX1GHhnc/a7k7f oVZPkteVoPzBaly58fOKm9Y1HSp/tLj7Q+wAIvDdYBeSL+fACbwfXxHHvQsu4bf7kDgPnq tfLIAYGErSPKp8Ylgr/BflDUCb10v7qjmypBLRNRFRj2jW89q2x1ST+0yua9AfNRxbj3rw Ophbbku4jjpBud4zq5rLqd5FUCLjVB0c4w7tdjTXRpu53iAC5S3z65fMiV7NCl08Xtvsik ghLZ9e/jjObr/y56HEeNOcBNik++MPIYf06eF8qrXyGgzF6i/4yRQldLaDqDYA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of linux@slensky.com designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=linux@slensky.com From: Stephan Lensky To: Takashi Iwai Cc: Jaroslav Kysela , Mark Brown , Liam Girdwood , "Rafael J . Wysocki" , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede , Len Brown , Kevin Cuperus , linux-sound@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, Stephan Lensky 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 Message-ID: <20261202031233.171555-5-linux@slensky.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261202031233.171555-1-linux@slensky.com> References: <20261202031233.171555-1-linux@slensky.com> X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4jfNBh4HtyzKvnk From: Kevin Cuperus 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 [stephan: limited the quirk to the tested NP960QGK] Signed-off-by: Stephan Lensky --- 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