From patchwork Thu Jul 13 16:29:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Xu X-Patchwork-Id: 13314804 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49296EB64DD for ; Sun, 16 Jul 2023 12:59:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 81A16DFA; Sun, 16 Jul 2023 14:58:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 81A16DFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689512371; bh=vjdzkz1kokNTPv/OsvjnKMC2W0CWVYmBmXkFsesvKaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rk15UKG3v2c/wZRnVIVKeqdwWnLct79y2zT3clCSPAEkeLukoOE7ggGC1zDe7RVth YOnVZ6d3I3qArRi2uMgUkISM3cYB/2gzfarTDy8KlKC39uveQSQkG2YCV9teFtapd1 6xZJ7X4YQzur17PeTT4ix+/WrS0X2G8+6d+WzLvA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 329D0F8057B; Sun, 16 Jul 2023 14:57:54 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id AA10DF8057E; Sun, 16 Jul 2023 14:57:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 47F44F8027B; Thu, 13 Jul 2023 18:30:42 +0200 (CEST) Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn20827.outbound.protection.outlook.com [IPv6:2a01:111:f403:7005::827]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 4E747F80249 for ; Thu, 13 Jul 2023 18:30:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4E747F80249 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=hotmail.com header.i=@hotmail.com header.a=rsa-sha256 header.s=selector1 header.b=en+4vNE7 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I0V5cnpn7Yx/wxOsxsKjfvLyhpCx+FU0BucstTdhVLvMgha2l4Ua7VZoYEIp5Lm2f6GDhKIBDOzqbstHRCh4Cd71HB8dLUr8wDoRx55Sdagz2cinFmKWhvfz5Mggut3RzyLdyhw8gMxNxxA05KNFdfYUs6qXX6s/PvbHQxSTUfNxQBudrt7LVrxG174UIPfroXqA54LAx6MG50cCdIwtFd+A33Te1zWpM9lsTB9qAkQfU9Cwc88pHXidJZ6YUZ7J/Pa0JEK/zEcnEol16Gmg1JZkFVL9i6s1+3IqNasYYD1IwsmVCAdc+3UKzCqwpoFoAfVLpQj+KxJazMlqJGXgaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TQdNsbOGTZM22GthjPokb6fIXvhlSUu4SdntYZsqhNE=; b=AXB+OQTU+drbodaRsA6GLRXeFpAckwW8BQo33k/GTncvGdnu7o0ChzEGMoPtHpXEqNAnINCw/UGtMVoK0FE0i85Kg+LYzB3D5Lg6Kj/nv5W/2z+lS4GnFbqPMnz9RelUY4hm1t3yXEm1SWftMkRwlMtSuBsin/7pTTXYf7GQl2vtkJfIy35KMkIFXiF5C2s8UB3+w3eGIUhTf1eDc9mmi2y8p/h07FklUMqmoGs/gyjg+d6gFOKH4lMHyhCvwx30hQ5nchmKDqTb+pT0L9M4xssh73Qzt+6/NT/PspexGDeHgpV9HDeS+sgl21Qm3jRRIQG7pR6VeWMViXHiqDJAwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TQdNsbOGTZM22GthjPokb6fIXvhlSUu4SdntYZsqhNE=; b=en+4vNE7wfT43Xx+g4PVv1kgQD30gERDJ0XqdHI+X1sVBYmNYkhWke3NrrsbR9ohq5gJ4tygf+iFikeO5BvExVDB5xN6aSRjzOhfBc/CmG/A53SPKPVtbmDcmiqCOCr2j2uhtaswTiDevPyuSAlPzzojUjFrNrLIXKoWPdpRxJLl5YyNqeaiOnjl5/116+/G+XfrEgIEDI3ctsSgNLINNOfanNskHaNN0Vld17U0XtBVQ/CMEj0/ydbTMmhkVyTWFUic2sA7Tsg1SALxwDF2vz3A0vpvUSJtF7fZKDkssJ7Tc8rll8g2NXZ0GPmHO8m4ZisAdKYXf920C4/z5pitkQ== Received: from SY4P282MB1835.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:c2::7) by SY6P282MB3254.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:165::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.26; Thu, 13 Jul 2023 16:30:29 +0000 Received: from SY4P282MB1835.AUSP282.PROD.OUTLOOK.COM ([fe80::8302:9e75:933d:b45]) by SY4P282MB1835.AUSP282.PROD.OUTLOOK.COM ([fe80::8302:9e75:933d:b45%6]) with mapi id 15.20.6588.024; Thu, 13 Jul 2023 16:30:29 +0000 From: David Xu To: James Schulman , David Rhodes , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai , "Luke D. Jones" , Stefan Binding , Andy Chi , Tim Crawford , Philipp Jungkamp , =?utf-8?q?Kacper_Michaj=C5=82ow?= , Matthew Anderson , Yuchi Yang , Yang Yingliang Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, David Xu Subject: [PATCH 2/2] ALSA: hda/realtek: Add quirks for Lenovo 16IAH7, 16IAX7 and 16ARHA7 Date: Fri, 14 Jul 2023 00:29:55 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230713162955.34842-1-xuwd1@hotmail.com> References: <20230713162955.34842-1-xuwd1@hotmail.com> X-TMN: [fs06H3BeN0QhvwCjWzUObJafeZb21865] X-ClientProxiedBy: TYCP286CA0125.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::7) To SY4P282MB1835.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:c2::7) X-Microsoft-Original-Message-ID: <20230713162955.34842-3-xuwd1@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SY4P282MB1835:EE_|SY6P282MB3254:EE_ X-MS-Office365-Filtering-Correlation-Id: a82c8a00-d375-4dbd-3780-08db83be7891 X-MS-Exchange-SLBlob-MailProps: ZILSnhm0P3nN7ksDdJHhaEOcm48SSgzZgL6F/YuI9gmDi06p/1nukHZHE6nO4AGcmdlQY/DGuRoeLrjaXGQox4eV7oLAgiy53MyOGe4ITqKmEBRCtduKs68ytc3D3XTYUNbjfomsc0AcQWnyF0bGDeU8Mf1QKE23AGgtJv5oSZjFjDScz7MrN9K+I9zU+mmkak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xxXahdTshWHl+697OfvQ2W6bcK7f0dhJzLdw/IVklk5rVpicgD3YGkV+2H6y5K78Wm71ZQpuLsNg7t8iN2EXYkbGDOSvud1cbm+TVHXg/ULY0ZLnFDtUi2d6AmcmN+BZ21+5i8G/G50Li5wdPiyRJQnhk76wv9L5Ys62OqpR4VXeUHi19jaobQ8halNwgS0BoqWardU56j+kInhN4IBuHSonKcQEH1paNe1hRdiZxqAPl32txSqWr4YdeI3/sR6IGbuRxDTf022ZLWHxxyGhsPeJcZX7i27BOAKT8o+aOS6OqW/B9XDFHqrzU4Ui/aPnzgavq+3SXaMFkQWLwtaE5iHki73si6nJlVS+rdZ8370+6M4yVFIG7whd+Di/0FbHHpfFRIaVVr1gMCAUHrYixMdZ0BT5P78Hwg== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-746f3.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: a82c8a00-d375-4dbd-3780-08db83be7891 X-MS-Exchange-CrossTenant-AuthSource: SY4P282MB1835.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2023 16:30:29.4738 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY6P282MB3254 X-MailFrom: xuwd1@hotmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: HT5ETU7APGSPDYEQKW2IPHGPZVKZXFE4 X-Message-ID-Hash: HT5ETU7APGSPDYEQKW2IPHGPZVKZXFE4 X-Mailman-Approved-At: Sun, 16 Jul 2023 12:57:51 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add quirks for Lenovo 16IAH7, 16IAX7 and 16ARHA7 that have dual cs35l41 amplifiers that drives their speakers. Please note that this patch depends on patch 1, for the added quirks to work for the specified models, proper CSC3551 configurtion fixups have to be applied. Signed-off-by: David Xu --- sound/pci/hda/patch_realtek.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e2f8b608de82..cc10bb8b75d1 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9831,6 +9831,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x31af, "ThinkCentre Station", ALC623_FIXUP_LENOVO_THINKSTATION_P340), SND_PCI_QUIRK(0x17aa, 0x3801, "Lenovo Yoga9 14IAP7", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN), SND_PCI_QUIRK(0x17aa, 0x3802, "Lenovo Yoga DuetITL 2021", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS), + SND_PCI_QUIRK(0x17aa, 0x3803, "Legion Slim 7i 16IAH7", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x17aa, 0x3813, "Legion 7i 15IMHG05", ALC287_FIXUP_LEGION_15IMHG05_SPEAKERS), SND_PCI_QUIRK(0x17aa, 0x3818, "Lenovo C940 / Yoga Duet 7", ALC298_FIXUP_LENOVO_C940_DUET7), SND_PCI_QUIRK(0x17aa, 0x3819, "Lenovo 13s Gen2 ITL", ALC287_FIXUP_13S_GEN2_SPEAKERS), @@ -9846,6 +9847,10 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x3853, "Lenovo Yoga 7 15ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS), SND_PCI_QUIRK(0x17aa, 0x3855, "Legion 7 16ITHG6", ALC287_FIXUP_LEGION_16ITHG6), SND_PCI_QUIRK(0x17aa, 0x3869, "Lenovo Yoga7 14IAL7", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN), + SND_PCI_QUIRK(0x17aa, 0x386e, "Legion Slim 7i 16IAH7", ALC287_FIXUP_CS35L41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x386f, "Legion 7i 16IAX7", ALC287_FIXUP_CS35L41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x3874, "Legion 7i 16IAX7", ALC287_FIXUP_CS35L41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x3877, "Legion 7 16ARHA7", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI), SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),