From patchwork Mon Feb 12 19:33:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Kudela X-Patchwork-Id: 200015 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp126245dyb; Mon, 12 Feb 2024 11:34:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpcaIaNvplTiTYAK+SNSfANdVasBelhmOTIK1bw896RJdJjrhuk5zKeWwGPR0xtZI8ze1p X-Received: by 2002:a0d:ef87:0:b0:604:9b58:9d2 with SMTP id y129-20020a0def87000000b006049b5809d2mr5728000ywe.34.1707766443937; Mon, 12 Feb 2024 11:34:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707766443; cv=pass; d=google.com; s=arc-20160816; b=tVaj1JfUYvs/JqAtKXcWIWUhTxpmE/Q4GLBLIq4RS2Bc6CunCQH74oBX0zvn4ceMDZ rMYg+6deeAt8gI0iXmndQkaSdtCGpxvFm/e/yRiJMkoiIoRqfjwpMYwqs6RLcj65RbEm HMHepdDUMycT0fvuPkeqb2QYj1NVt8GXJAc1/UjPBjCfM2hLugQpY69WccIwTTgfC723 6G20cJGhv/TSQYqyjBVMWu8J3YyifSFps7gE9S2n9PehzRwvGI6OBTnbxNDiwR8M8B6g +aiOXw/dbD19/fv4lbMx1vOYa3z48I/E6IX8p4yLAsdzG2HxBA/MIhKb0rjcS10JEKHu Llhw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=oum1jt+Q8dDAhYrJmUGRUjhcfu3Z0CZYzh6RXzXRq4o=; fh=yLqSSdVItBxbb/+N9rE/ar1HAVnRvQ3k2Mcw3qTcVd0=; b=mfcT1UQCA/UkaZGJAHJBJAvlZE9fSAG8VjrDmrWMDE7ySNy2xImLzDrdvubKQ3zzs5 ShTvfEw/ydh4ovMyMaSFSOYtGlvS4pYTunK7q12fNGDylbm1bdAsnLHKjsWODQ7GUyvM odbWrRyqVs7BidEPR3ywI0mVViZQKmzuOhaN2Rl6R0QaSaNfpdUkiDFw0hc3CcIqlX82 b3RpcZq9mfgkOZVPp/y5JxtrvTBWh5l/76TVFkZQtOXtmmLA1aZp3tjD7qd43g0q7emg isUrjCXiavjMl/JPPyrePESi7L3vmSoUuqtxwEAgKD+VOo3sNZAYpZvRpikxknEHrl19 gQhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zeprw5OP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-62275-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62275-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCWKEfcGsKihm7A9H0bKS4ChxxcOMI5tyRfXWCIbR3mYG8nN3LUR7axZhimq1DXko/WXe0baUOQ9kAm6o8kwM8D6eiwh6A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l25-20020a05620a211900b00785950307cbsi2137016qkl.698.2024.02.12.11.34.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:34:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62275-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zeprw5OP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-62275-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62275-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A9A281C2149D for ; Mon, 12 Feb 2024 19:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3B5947A6F; Mon, 12 Feb 2024 19:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Zeprw5OP" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B3F741208; Mon, 12 Feb 2024 19:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707766426; cv=none; b=PhCpRzzeDlGbNs44rylRP4hwGXl9yeZGjc/MiH3EzT8V3yFTBpHBFHiPWmTCBq9ofSAFzLT3/Kr9hnL4cNsIPCzJkUdA0Rm9V7fZn/8iTGivcSobXpStcvIwsoOpWnfUnqm4zL0dJjgR9Rjep0ei2fSV003CGDYZ/ZLBZBPqN0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707766426; c=relaxed/simple; bh=VHD7V7W4qwRQhqwPSDefa6gX+ovxXlDZA21Vs4ZGEfg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VxuhgMLV3OYrTo7cH44H8FzW6yU4NkKd39tcpR6t85Jd8JirbMW93vwkL4Aci1ZbmUjKTx+Iyubr9AV7JVmZs+kzSqwJgx6kgakbmE6MYvJdb71kGDbzXJnx58SjojK8hPfIkp1fJ/8nW9ZsY/gElDJ3ka4LsBbN/i8umYRyo5A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Zeprw5OP; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d0dc3fdd1bso37237631fa.0; Mon, 12 Feb 2024 11:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707766422; x=1708371222; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oum1jt+Q8dDAhYrJmUGRUjhcfu3Z0CZYzh6RXzXRq4o=; b=Zeprw5OPYTpbybUt6cHCMv2QIRsycKomuoMpngNnzgp1u1j4NsWAfEuaOzTXkyDdJb mx4BtWFx3pauEWGtxVCdurUOL71KIIeKSo7cqa8a6CoRww1BFozdiA/XQkRhrhkjsBe4 Wn0JUZECtIuluYBIxrXFa259ry3JEOlX+J5yt6IVBM8SEW0pC2eXxYBvw/fMzsv5IOnh HiET0MuL2TLY7iUnr9tigpAnb1NRwfBpzOjHHBoVD90SeWUPr8OCWVIzwU5xttdeFoSz wSNnGGGA+XshkCci7S7BOBKr1by4zOt6az07dckIHaNpn+iohP6EV8P3ocZO/qUez9hY Pbog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707766422; x=1708371222; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oum1jt+Q8dDAhYrJmUGRUjhcfu3Z0CZYzh6RXzXRq4o=; b=bOMpjJrz0wYjGl3PpCzY16JVhcl/lM9yIFxf9EAvmP3Y0J1sLhvX5rZETsCKI+fiFx shverDm4Du9FTpZjY/a7QtPFIYDNp405Ut5IHLzwHULxo43xETpSB+9DW49ftnnoO0Yg D77jcbT2hCXIUDitpVBbc/E814pTUpzdf184zVHORU0aH7avO3uKSltf3/5y0tGWBcLL L+UDPaZV5E77HQrvDv7l+n2RgPLObWOIXB31DUjej7XYrUZypc4ECRKRQqgspBy/Y+5s YUC4ddAzpFuOdfS9Uyor5FVgYhvSw6NEOjORGMrtkWcfJZc7WmuTaWbLT3PY7NWIozxS Otew== X-Gm-Message-State: AOJu0YyodPxpiZTIMFx9Uy59pRrh4RURNFz+vBcpOB4Xq4slaWBzzv3O 3osQNipXS3ZEMnzZnXlYh9CIS7Ws7F0nUfrCq2W0NlUlsMxmUAMn X-Received: by 2002:a2e:9786:0:b0:2d0:7a98:a493 with SMTP id y6-20020a2e9786000000b002d07a98a493mr4846826lji.39.1707766422053; Mon, 12 Feb 2024 11:33:42 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWoXX0vLop0ktvQhx4o6Q8IadytmX76FfJx/4Dz2GhnX8qNSE9lpa0Fp3T0rMcCPyfLqcRdfwMpebyEsY9Am8HG4orbqp+J1fS0slepcN47i42j07t58Wk3QyXZgqS09uapXkwrjpNsu3dSvATOEuv+fLHfhQZvE8XanUVnzdZucA9lTdOfr5tfQceK53hNGSjcoIeZ06I/JTDEoxEl249x0k51sSPLE6fhgVY6ocLYIRyMjwRTga2q2u7xMWVdJy+ZvGrVWOlzbal/YSqRo+W0wC6UKOTOeHP7j56isxWx9PTPrjtRO5s7i6OUJQFynIN8noEJ0tW6X+o2f1sfLuYZwHsG2JVrlhw73Usfa/mf//bhJAP0uQjNctesk6pI9b4QE2uGBUVFQcYQsoiImh+tpGLLIedkjm+yp3Ze0qoKhlIvpX3nfV1WT7BNjaHyCnA6BVt75Pl8Uk6joTGwYNy+M1mnUO0gaUIRwTOkJ4TDIRUswW2n+9Hv9iZaOSJFQCf6aCr1vhUXwjVuzUH/Dm8LuAbIfmDsHxSAuhES19435g6m5rA= Received: from tkudela.. (c156-103.icpnet.pl. [85.221.156.103]) by smtp.gmail.com with ESMTPSA id d13-20020a170906370d00b00a3c66ac5146sm501104ejc.120.2024.02.12.11.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:33:41 -0800 (PST) From: "T. Kudela" 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, andy.chi@canonical.com, shenghao-ding@ti.com, ruinairas1992@gmail.com, vitalyr@opensource.cirrus.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "T. Kudela" Subject: [PATCH] Add Lenovo Legion 7i gen7 sound quirk Date: Mon, 12 Feb 2024 20:33:27 +0100 Message-Id: <20240212193327.59507-1-ramzes005@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790722906680790183 X-GMAIL-MSGID: 1790722906680790183 Add sound support for the Legion 7i gen7 laptop (16IAX7). Signed-off-by: T. 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 }, { "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),