Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2951143rdb; Tue, 13 Feb 2024 02:11:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEukbbX4ryG5Fm1LbPTADeQXpcXcJLDAtOzvw1vBK9AmzslQLi46n6NLAkqakVVVH5XX9u X-Received: by 2002:a17:90b:106:b0:297:21b:1e4f with SMTP id p6-20020a17090b010600b00297021b1e4fmr6982904pjz.9.1707819091308; Tue, 13 Feb 2024 02:11:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707819091; cv=pass; d=google.com; s=arc-20160816; b=dxSzhaSz8ChAw7tjWXuh2zlodnd7f8VioaF6d+g7iskDbivlF7dGfai5SldDq4Ko60 dfInl2Zncjpz/7tHU1A4Lqm7yrhqwEieLhXLZdIiiPMOtuS3uyzW1VBfMFaB+PnaWxzW 3hBnCL9Tybb+d2w3a8Gx6WS32Siqq469LRGIEQE3sJmdYsc2Nfj4fTD5kSqABktCPyhF 4XAzDRr6RgW/ELqi7zUY++jY4ySTaVYWOwCL6BBOaVzWS935cwyGBjhDEIPHbYwCfxDY clTWOsSDdeaIaqUY3VLa7XWUMt2eWLYk4pCmDCH1fSzdX0GccEdr4c2ICx4mx1vvCsGO 2eRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:content-language:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:in-reply-to:references:cc:to:from :dkim-signature; bh=RLSQFPTXCZBB55mewGC3/S3cyEfZxcsMBJJpNhdcNt4=; fh=Q16S96psTvhjKVEEcBFWrJZzTX/nnlgmJzvcIi1DDSU=; b=j47Sn0TSUSd9RUeaspyAwQptAIHZKvgg2OXGcJrPdjwX7uLcv0RABYsTNRdiVzVPoz 3so6ko/kqpM2dFPRFBhtLpEw2HLYrbVd4y2n81t0wRwXKJO/qC9jsdt/AKfTCvaAW2OJ RxZiqXZTUg7XPo6XoaxAwLoDnh2SHvwoXo5aERx+iAqkSLCnG1FMdWRCO8h73al5YS/j QX2mx5x3R2WQq6dGWyB8V0hnLOko1XlqW/6P73osATtxNDbXTF5UNYh9/AI7uTg/DtpC r6TdVDGvjx+TSsgJt6xcEzNkS+/qe1V1/UDoSP+a6EV24JQ7YQmariSJLt49mLTkBWlz T2aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=DJ6FBow3; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-63295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com X-Forwarded-Encrypted: i=2; AJvYcCXlKixH8HhYw9Ie3MvPJ2wapUbFPS8Aaedljaaiz7gJn+RlijdGoYTN4+0NR3Cf/aT3o7vjvNL4aYwjzhbBsCQ9810Djo1FPYmzhK7W+w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id so1-20020a17090b1f8100b00298997d5cc6si1454868pjb.36.2024.02.13.02.11.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 02:11:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=DJ6FBow3; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-63295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 66BA928A6F7 for ; Tue, 13 Feb 2024 10:02:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7331F24205; Tue, 13 Feb 2024 10:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="DJ6FBow3" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (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 9B53F241E0; Tue, 13 Feb 2024 10:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818436; cv=none; b=kDRQRXfO7QkXKl+0WBwZ5SJNi/rXk81w3pz2PQxxFmSik/LgkbvIhUCwYF5UzulLcudPij2Kzo1yn1UeUupOQz7CEiK14dSNuyVrE1FKI7+xJ2BFnPjExP8pwNLQK27OJ8bVc9mv+sQE0d7jRrlgkz6C+A+bsvud045LFrle4cA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818436; c=relaxed/simple; bh=cVV/IHvHgosEFZwF8TVZgUPovyuJO6ZLbQNTlYmYIms=; h=From:To:CC:References:In-Reply-To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=U4gBiVMqD1tU5cbN8ajJ8z4irWhPxcMaADVQU1pL6lPrRD5tl5+aloDA5XIYUq9HHhNivsXVHVqx/Qr6M5Fllt/GVhxx+Uz3sTmi+qmI/aM62HDuN+8XYjsRe2kSogxy0ghCMDKAS2fv+9zdy5Evp3dhUomLcTjutzpLqePCSmI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=DJ6FBow3; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41D6usn6030912; Tue, 13 Feb 2024 04:00:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding; s= PODMain02222019; bh=RLSQFPTXCZBB55mewGC3/S3cyEfZxcsMBJJpNhdcNt4=; b= DJ6FBow3hk9Y64sQGT+Sibpc0GPRWb1aMIf1T6YR2E1g1b2Q0xZPjwBGyWdVhJ8P v0lXstwqh/pcFmenTwfnvKWhHH5c19bCHOc4MN5Lm7esb3bp7yPWCNN6OhgbJXll tt+uxHBrwD+WiVv/wwoJmtS/2b58IP7VT1i/IVByczEwSdKw07Wsv58RkGwZ1SvR qbHLZdctdqnMBL8Am/Xstlc7D8e1V3Vn9T/8qZuKb7iXdbMAshc8KEBU2vSGPPlY pjNwr/0dhVm6ZmpXs7qnbMA/jqYG6B0iYd9nK/G3KGOPKk757e9oOXJ8rgtJ90rd EpEjVGU451Np8bWgVBijpw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3w67e22y13-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 04:00:07 -0600 (CST) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 13 Feb 2024 10:00:03 +0000 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40 via Frontend Transport; Tue, 13 Feb 2024 10:00:03 +0000 Received: from LONN2DGDQ73 (LONN2DGDQ73.ad.cirrus.com [198.61.64.235]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 53A2F820243; Tue, 13 Feb 2024 10:00:03 +0000 (UTC) From: Stefan Binding To: 'Tomasz Kudela' CC: , , , , , , , , , , , , , , References: <20240212193327.59507-1-ramzes005@gmail.com> <20240213082116.15049-1-ramzes005@gmail.com> In-Reply-To: <20240213082116.15049-1-ramzes005@gmail.com> Subject: RE: [PATCH v2] Add Lenovo Legion 7i gen7 sound quirk Date: Tue, 13 Feb 2024 10:00:03 +0000 Message-ID: <000101da5e63$6a2565e0$3e7031a0$@opensource.cirrus.com> 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="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQL5cxh77Ymk4rKL11VQD0BqvrFTygGP9Uvorr1f3IA= X-Proofpoint-ORIG-GUID: 4w35IuzkN3UfhFYAz8bRE5jDqIfh_Shl X-Proofpoint-GUID: 4w35IuzkN3UfhFYAz8bRE5jDqIfh_Shl X-Proofpoint-Spam-Reason: safe Hi, > -----Original Message----- > From: Tomasz Kudela > Sent: Tuesday, February 13, 2024 8:21 AM > To: ramzes005@gmail.com > Cc: alsa-devel@alsa-project.org; andy.chi@canonical.com; > david.rhodes@cirrus.com; james.schulman@cirrus.com; > kailang@realtek.com; linux-kernel@vger.kernel.org; linux- > sound@vger.kernel.org; luke@ljones.dev; > patches@opensource.cirrus.com; perex@perex.cz; > rf@opensource.cirrus.com; ruinairas1992@gmail.com; > sbinding@opensource.cirrus.com; shenghao-ding@ti.com; > tiwai@suse.com; vitalyr@opensource.cirrus.com > Subject: [PATCH v2] Add Lenovo Legion 7i gen7 sound quirk > > From: "T. Kudela" > > Add sound support for the Legion 7i gen7 laptop (16IAX7). > > Signed-off-by: Tomasz Kudela > --- > sound/pci/hda/cs35l41_hda_property.c | 2 ++ > sound/pci/hda/patch_realtek.c | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/sound/pci/hda/cs35l41_hda_property.c > b/sound/pci/hda/cs35l41_hda_property.c > index d74cf11eef1e..8a6b484b2184 100644 > --- a/sound/pci/hda/cs35l41_hda_property.c > +++ b/sound/pci/hda/cs35l41_hda_property.c > @@ -95,6 +95,7 @@ static const struct cs35l41_config > cs35l41_config_table[] = { > { "10431F12", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 > }, 0, 1, -1, 1000, 4500, 24 }, > { "10431F1F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 > }, 1, -1, 0, 0, 0, 0 }, > { "10431F62", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 > }, 1, 2, 0, 0, 0, 0 }, > + { "17AA386F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 > }, 0, 1, -1, 0, 0, 0 }, I don't believe this laptop has a Speaker ID, so this configuration should be: { "17AA386F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 }, Thanks, Stefan > { "17AA38B4", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 > }, 0, 1, -1, 0, 0, 0 }, > { "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 }, > @@ -431,6 +432,7 @@ static const struct cs35l41_prop_model > cs35l41_prop_model_table[] = { > { "CSC3551", "10431F12", generic_dsd_config }, > { "CSC3551", "10431F1F", generic_dsd_config }, > { "CSC3551", "10431F62", generic_dsd_config }, > + { "CSC3551", "17AA386F", generic_dsd_config }, > { "CSC3551", "17AA38B4", generic_dsd_config }, > { "CSC3551", "17AA38B5", generic_dsd_config }, > { "CSC3551", "17AA38B6", generic_dsd_config }, > diff --git a/sound/pci/hda/patch_realtek.c > b/sound/pci/hda/patch_realtek.c > index 6994c4c5073c..0029f61d4693 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -10260,6 +10260,7 @@ 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, 0x386f, "Legion 7i 16IAX7", > ALC287_FIXUP_CS35L41_I2C_2), > SND_PCI_QUIRK(0x17aa, 0x3870, "Lenovo Yoga 7 14ARB7", > ALC287_FIXUP_YOGA7_14ARB7_I2C), > SND_PCI_QUIRK(0x17aa, 0x387d, "Yoga S780-16 pro Quad AAC", > ALC287_FIXUP_TAS2781_I2C), > SND_PCI_QUIRK(0x17aa, 0x387e, "Yoga S780-16 pro Quad YC", > ALC287_FIXUP_TAS2781_I2C), > -- > 2.34.1 >