Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp161933lqz; Fri, 29 Mar 2024 11:54:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUes4GomMBNjpfDg4kZS5qI4yzEEyXOv2zkzg5yIvDqZOXCaTKnlklXoXVJybiu154XUq8aJhqTv1ma4Muk58VA0pHtlvDPDGEekdJT8g== X-Google-Smtp-Source: AGHT+IHbChevzu0p9WpMRXiO8LiFBONDDH9lV5S/sfCW5VYSEIKbJdpDRA8ferWmOgxlQyYWAjPX X-Received: by 2002:a05:6a20:da8e:b0:1a5:6e11:2fd9 with SMTP id iy14-20020a056a20da8e00b001a56e112fd9mr3358285pzb.6.1711738477376; Fri, 29 Mar 2024 11:54:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711738477; cv=pass; d=google.com; s=arc-20160816; b=UcUaqsxigrN9deOzKa0lfkFuRZlWXyYVlrHePGXqSYyWBk0B3EPRaDnexH2M7w7weK W5qlPWojfYAaVy51/ZuGFOTJEap322YqpFkZcs0hQ9KVEXTlgwNMq+Yb+WQ4zETLGfml hxNMbo0cmfJSxLD8r+fzHDbxP+8PZvHkSvqCT2hI6gxNF2c36AFr872eIF9VWFBmdlk5 bQOV8cfBjh1cXmgtly6n4zek0wQq+ZBQ5x5CzKospXaQnSreYI3TMU++n3wvP3xnVDFg tOFXDTdF7u7HZLj9aW3tsN7T9EtzssK06h3cxDMets9hRl0yuDOTnSmGgnzNi8hMz9f/ 6yvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:message-id:subject:cc :from:to:date:dkim-signature; bh=PbTlUZvfyW5EEgU8CtWt38HrMcQmW9XR3nwwcixiO80=; fh=uvwz/eyZzebeGrJfFwKRLAX1u7yU3Elq1DYOGN755vU=; b=wbTd/8pbJw4Eiw5W9MpvOjOVss1VILINkJFWbDhcQTvPT3jF5tmfbufyhGkGpYAyBW GyNP4ZKNWd94YBDXZvPoCNjRPbEfbFialZHRnYE7uRol7vSSHqXkKV35EHyT3TpcDdbK 9MuMGJz1meMaj6dfTfr1gatXJ9I5i58x+ag2Fn5Xadkps1mkqfnpQqRSfxpADgG2Wo3H ltUP10r+yUBlFyYEsPsHdsAQqVk0BJ37TEncoGCqucuLMn5rAEpHjzZc9zHjun5zsijw W8cHqeeCaJAsMBzLT56zkQKYZ5z5d+XJfGg605jd3plump5Nqbh9w3kih3HrvOTS3k+O qtdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bendiksen.me header.s=protonmail header.b=g3oQXPAi; arc=pass (i=1 spf=pass spfdomain=bendiksen.me dkim=pass dkdomain=bendiksen.me dmarc=pass fromdomain=bendiksen.me); spf=pass (google.com: domain of linux-kernel+bounces-125294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bendiksen.me Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p29-20020a637f5d000000b005dc12a99c6esi4040249pgn.355.2024.03.29.11.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 11:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bendiksen.me header.s=protonmail header.b=g3oQXPAi; arc=pass (i=1 spf=pass spfdomain=bendiksen.me dkim=pass dkdomain=bendiksen.me dmarc=pass fromdomain=bendiksen.me); spf=pass (google.com: domain of linux-kernel+bounces-125294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bendiksen.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 69C85B23C2A for ; Fri, 29 Mar 2024 18:54:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 636734AEED; Fri, 29 Mar 2024 18:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bendiksen.me header.i=@bendiksen.me header.b="g3oQXPAi" 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 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-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 { =09{ "17AA38B5", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1,= -1, 0, 0, 0 }, =09{ "17AA38B6", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1,= -1, 0, 0, 0 }, =09{ "17AA38B7", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1,= -1, 0, 0, 0 }, +=09{ "17AA3877", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1,= -1, 0, 0, 0 }, +=09{ "17AA3878", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1,= -1, 0, 0, 0 }, =09{} }; =20 @@ -503,6 +505,8 @@ static const struct cs35l41_prop_model cs35l41_prop_mod= el_table[] =3D { =09{ "CSC3551", "17AA38B5", generic_dsd_config }, =09{ "CSC3551", "17AA38B6", generic_dsd_config }, =09{ "CSC3551", "17AA38B7", generic_dsd_config }, +=09{ "CSC3551", "17AA3877", generic_dsd_config }, +=09{ "CSC3551", "17AA3878", generic_dsd_config }, =09{} }; =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 { =09SND_PCI_QUIRK(0x17aa, 0x38b5, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35= L41_I2C_2), =09SND_PCI_QUIRK(0x17aa, 0x38b6, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35= L41_I2C_2), =09SND_PCI_QUIRK(0x17aa, 0x38b7, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35= L41_I2C_2), +=09SND_PCI_QUIRK(0x17aa, 0x3877, "Legion Slim 7 16ARHA7", ALC287_FIXUP_CS3= 5L41_I2C_2), +=09SND_PCI_QUIRK(0x17aa, 0x3878, "Legion Slim 7 16ARHA7", ALC287_FIXUP_CS3= 5L41_I2C_2), =09SND_PCI_QUIRK(0x17aa, 0x38ba, "Yoga S780-14.5 Air AMD quad YC", ALC287_= FIXUP_TAS2781_I2C), =09SND_PCI_QUIRK(0x17aa, 0x38bb, "Yoga S780-14.5 Air AMD quad AAC", ALC287= _FIXUP_TAS2781_I2C), =09SND_PCI_QUIRK(0x17aa, 0x38be, "Yoga S980-14.5 proX YC Dual", ALC287_FIX= UP_TAS2781_I2C), --=20 2.44.0