From nobody Wed Feb 11 23:46:11 2026 Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54C021DA5E for ; Fri, 29 Mar 2024 18:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711738469; cv=none; b=lnYoKGSaYmX0CtQNIaL00wZT4T2U2mVNhbUhQgQb1EpHqw26XwSSUQdh1CK2uo45IYjEaUFv7BuRr/TjHTNJUQXAsXZpyyRgABXACvsmD1u6jkFby1mFkxIAZWkEuKIA8j79fD8l5l9CC6SvP1GK5rtR83oFJRrTTpDSzLi+jB4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711738469; c=relaxed/simple; bh=nyFd1gVD6IOaOkZxv+ijhnFzzD+61fz5CSxFthsNV08=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=c6pK6LxAun7W5rEXhvlJmUEYQEz954y4yDzGl5vzJBxh6RU4xbHyLw5GCqAiqhR+uXKktVx1VBZ5SiqnAmvcSLFUuKF1KAN37Z0DXWQJMFYCJqPEey4VH/DkklU1S7C6tDjqruovzQuebt+vkbACI7kZWzkTOhwSFy9dKTXcjr8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bendiksen.me; spf=pass smtp.mailfrom=bendiksen.me; dkim=pass (2048-bit key) header.d=bendiksen.me header.i=@bendiksen.me header.b=g3oQXPAi; arc=none smtp.client-ip=185.70.40.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bendiksen.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bendiksen.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bendiksen.me header.i=@bendiksen.me header.b="g3oQXPAi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bendiksen.me; s=protonmail; t=1711738459; x=1711997659; bh=PbTlUZvfyW5EEgU8CtWt38HrMcQmW9XR3nwwcixiO80=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=g3oQXPAiCbXjswnX844LZUf4oeXU9jlHBfne70b0iKbXNkHOnm9woeDFRjisSLfQR RMAkPxLujCTyAbDZ8xGQyuIR44FNS3fb7V8CYnPSJK06F6HbYlMs95e066DkB58pOB jOYBwFwOoy5i/kVQcgRXQ/OuF92X8G2ZvtJPF9SoR05RnrkYacfsRXlvVkDIvF4tRp NebpEGV67yxan0KVxiD/TFK6QUlcW40Y4fs9b77C1OOwHkiUgmfUxmJDU+Nvt1LecF Hmze1cpO4Y9j3ZMS3yyHynVUH0n9LW8J5a7Xg71TCXkGug9RaphqBwM9EZFyi+BmKv 8jSL/MbDMW7MQ== Date: Fri, 29 Mar 2024 18:54:14 +0000 To: james.schulman@cirrus.com, david.rhodes@cirrus.com, rf@opensource.cirrus.com, perex@perex.cz, tiwai@suse.com, sbinding@opensource.cirrus.com, kailang@realtek.com, luke@ljones.dev, shenghao-ding@ti.com, foss@athaariq.my.id, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org From: Christian@bendiksen.me Cc: Christian Bendiksen Subject: [PATCH] Add sound quirks for Lenovo Legion slim 7 16ARHA7 models. Message-ID: <20240329185406.9802-1-christian@bendiksen.me> Feedback-ID: 100541561:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Christian Bendiksen This fixes the sound not working from internal speakers on Lenovo Legion Slim 7 16ARHA7 models. The correct subsystem ID have been added to cs35l41_hda_property.c and patch_realtek.c. Signed-off-by: Christian Bendiksen --- sound/pci/hda/cs35l41_hda_property.c | 4 ++++ sound/pci/hda/patch_realtek.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_h= da_property.c index 72ec872afb8d..959864994eca 100644 --- a/sound/pci/hda/cs35l41_hda_property.c +++ b/sound/pci/hda/cs35l41_hda_property.c @@ -115,6 +115,8 @@ static const struct cs35l41_config cs35l41_config_table= [] =3D { { "17AA38B5", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -= 1, 0, 0, 0 }, { "17AA38B6", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -= 1, 0, 0, 0 }, { "17AA38B7", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -= 1, 0, 0, 0 }, + { "17AA3877", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -= 1, 0, 0, 0 }, + { "17AA3878", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -= 1, 0, 0, 0 }, {} }; =20 @@ -503,6 +505,8 @@ static const struct cs35l41_prop_model cs35l41_prop_mod= el_table[] =3D { { "CSC3551", "17AA38B5", generic_dsd_config }, { "CSC3551", "17AA38B6", generic_dsd_config }, { "CSC3551", "17AA38B7", generic_dsd_config }, + { "CSC3551", "17AA3877", generic_dsd_config }, + { "CSC3551", "17AA3878", generic_dsd_config }, {} }; =20 diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a17c36a36aa5..540868d6c602 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10347,6 +10347,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[= ] =3D { SND_PCI_QUIRK(0x17aa, 0x38b5, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L4= 1_I2C_2), SND_PCI_QUIRK(0x17aa, 0x38b6, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L4= 1_I2C_2), SND_PCI_QUIRK(0x17aa, 0x38b7, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L4= 1_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x3877, "Legion Slim 7 16ARHA7", ALC287_FIXUP_CS35L= 41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x3878, "Legion Slim 7 16ARHA7", ALC287_FIXUP_CS35L= 41_I2C_2), SND_PCI_QUIRK(0x17aa, 0x38ba, "Yoga S780-14.5 Air AMD quad YC", ALC287_FI= XUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38bb, "Yoga S780-14.5 Air AMD quad AAC", ALC287_F= IXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38be, "Yoga S980-14.5 proX YC Dual", ALC287_FIXUP= _TAS2781_I2C), --=20 2.44.0