From patchwork Fri Dec 29 23:04:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dorian Cruveiller X-Patchwork-Id: 13506718 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 C736014AA1; Fri, 29 Dec 2023 23:05:34 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EqWHgWmY" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40d5a41143fso33339665e9.3; Fri, 29 Dec 2023 15:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703891133; x=1704495933; 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=XuYPybffDFeo+aLlhJnUJLlzKhbvOFBWBB5vAdXznK8=; b=EqWHgWmYHUQuEwoSK1L4EmmYak1sZsUmPwadc4avaObtp96opqqkCa+ez+1TSOQVIS l7mwOoVQ7Kk6YnEp1F2G7r0h1xxIowFtjwZk2QrJAZEWpJslvhtRjsqdhrHF07Kcb/eD BdthFOIPJzAaEdVeF9aaRZSkGfPDpItBRj8r2fjwIO0RSNXE0iXIx4bNZGaDeQpA5mAb LgVcGGlJbxm0G7dWXrWrd/jKg67P5wXEowjz014XbZbnjrU7tDUai22bQWQhQzLJFCBb XfSg1vjwB9d96jOg0hQbHMD5RA5i5fAbfb+pLqIgQaYzOK9ExQJORtDS8399DrDuGLLr vJpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703891133; x=1704495933; 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=XuYPybffDFeo+aLlhJnUJLlzKhbvOFBWBB5vAdXznK8=; b=MTJJmFBVDDtUnxdIJVBEhuWQ7ue8dgvoYfz8fb+v166ZtlKB+LnLRgUcXaZJdZUktx QzLcJRW0OYH8W5jfb0LIZ97kki57SHmAreCNS4aEH+U3ny1wtfrF+JMxLN0oF3nu3dI9 fM5X0hcViRup96AOAaXAjKGaWQpDnUE46c9mhGCDzi1+un5TSUvXHUwT4K8kPc6ttaLd jN69rcx09aXzwmz6177XsdpwrfRha3UepwOiM1vu9lCQf6CNUJ16Fy9XlNPi0Fapphrv W8/Fck5+IhMJNeuF2/+/1iWEOb29s5K/JcJ88AP0G/vTsiefof8lx7xxnToIfJwJ0/Rq Joag== X-Gm-Message-State: AOJu0YwtJRSHjNe4oW+egvKx5mgl3vwFQyvjuvrqAtJWrBw5BPX1iqUc JrrzGsHyCN/PbobxuTF8rL4= X-Google-Smtp-Source: AGHT+IEtytzksgyHe4iTbHaGZ60tYGKlCKHfdT3GyPcNDKHH8LohnZvxjlD1MFvvh/AveDkd7tEpqg== X-Received: by 2002:a05:600c:1f8f:b0:40d:6572:e8e6 with SMTP id je15-20020a05600c1f8f00b0040d6572e8e6mr1680826wmb.124.1703891132607; Fri, 29 Dec 2023 15:05:32 -0800 (PST) Received: from localhost.localdomain ([2a02:842a:1ce:5301:f733:18af:2fff:3d3d]) by smtp.gmail.com with ESMTPSA id j17-20020a05600c191100b0040d5f3ef2a2sm9938103wmq.16.2023.12.29.15.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 15:05:32 -0800 (PST) From: Dorian Cruveiller To: perex@perex.cz, tiwai@suse.com, sbinding@opensource.cirrus.com, kailang@realtek.com, luke@ljones.dev, andy.chi@canonical.com, shenghao-ding@ti.com, l.guzenko@web.de, ruinairas1992@gmail.com, yangyuchi66@gmail.com, vitalyr@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dorian Cruveiller Subject: [PATCH 1/2] ALSA:hda/realtek enable SND_PCI_QUIRK for Lenovo Legion Slim 7 Gen 8 (2023) series Date: Sat, 30 Dec 2023 00:04:50 +0100 Message-ID: <20231229230450.72291-1-doriancruveiller@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Link up the realtek audio chip to the cirrus cs35l41 sound amplifier chip on 4 models of the Lenovo legion slim 7 gen 8 (2023). These models are 16IRH8 (2 differents subsystem id) and 16APH8 (2 differents subsystem ids). Subsystem ids list: - 17AA38B4 - 17AA38B5 - 17AA38B6 - 17AA38B7 Signed-off-by: Dorian Cruveiller --- sound/pci/hda/patch_realtek.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c3a756528886..3918bf994756 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10226,6 +10226,10 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x3886, "Y780 VECO DUAL", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38a7, "Y780P AMD YG dual", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38a8, "Y780P AMD VECO dual", ALC287_FIXUP_TAS2781_I2C), + SND_PCI_QUIRK(0x17aa, 0x38b4, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x38b5, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x38b6, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L41_I2C_2), + SND_PCI_QUIRK(0x17aa, 0x38b7, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x17aa, 0x38ba, "Yoga S780-14.5 Air AMD quad YC", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38bb, "Yoga S780-14.5 Air AMD quad AAC", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38be, "Yoga S980-14.5 proX YC Dual", ALC287_FIXUP_TAS2781_I2C), From patchwork Fri Dec 29 23:07:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dorian Cruveiller X-Patchwork-Id: 13506719 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 7409414F63; Fri, 29 Dec 2023 23:07:13 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j4fyKLTG" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40d5adef341so30847535e9.3; Fri, 29 Dec 2023 15:07:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703891231; x=1704496031; 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=7vDk6yXubdjleW8KS/Yd5sSQPNErxsx6AQraKAf7z34=; b=j4fyKLTGIIHjNof0pM1qcdiI9x77g1InHO/m9XreeA+oKmBhyje6qx22XWedSK5V+b eUkgQPsGEYACZy6cVCX4Q2uekB9ICQcIFjtQyj4NU6pnk0XTQlRj3qXdvAWSy4JEumTj T8+khs+WAbDvDS+qAhQt3EX9kS3CXc6jpV/YOHQwYC9Uc2x7Gsr/aJBZhEYptpjvbKLz 5O2ltO+pCzpwIxv+lsuvjKp0xYqu7LqpxRk++sShfX6/9h7uaPh83H0Ig5S0pQBFNERO YDOOmpnQK8ZYK7JQA6YLG7n4+gIAOBFgF6lzAUZbri9ciucgrl7Mf6PN9s2GjP0DPRAE fsNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703891231; x=1704496031; 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=7vDk6yXubdjleW8KS/Yd5sSQPNErxsx6AQraKAf7z34=; b=InPybni4XTxzKtcK4sb7a4Ypa36v1hDyNZ08BnxdzEMojGhnM2oqtRSfSaj03TBqgk 9tU3M2m+ldXNwy3676VKFNYPgZgBUu0hCpAEHJhryFPJ+ylrzjiwpM+IFWvbuRKlrUP9 /oMmiugoscZF3PEic6/Q+GXoO4t6y0asKQFfSUkr/MTzbvy/0kk3uBbbr8aOn8oEvHHc W5exKzIyEMiIzfS5Mafb+v3CHJ/SujHN4BZf2rqysaqYKnhixdA5hUc+y0ZBIn1m1I7k s6Or4bApx6KcrcD6g7LbPVGm3nkErGRHHc8/NlHsgOh9FFAo2VxT5UalFAYHjJN8OZie qRNQ== X-Gm-Message-State: AOJu0YwAc2i56HsZgN5OhWYWdEdieGU7rezmjM6QViIV4pEj7ek27wmv srNuV30walDLGjtbDARgWV3c+9vTylahww== X-Google-Smtp-Source: AGHT+IF3UYBCxCiNIMXnJZC8QJViApDP2JWnU8Qnqn5rwy+SwWjB0hPF7mhaFrbh/V4dDhkOIOCtzA== X-Received: by 2002:a05:600c:4393:b0:40d:3cdb:5dca with SMTP id e19-20020a05600c439300b0040d3cdb5dcamr3992985wmn.316.1703891231325; Fri, 29 Dec 2023 15:07:11 -0800 (PST) Received: from localhost.localdomain ([2a02:842a:1ce:5301:f733:18af:2fff:3d3d]) by smtp.gmail.com with ESMTPSA id hg10-20020a05600c538a00b0040d7c3d5454sm2922681wmb.3.2023.12.29.15.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 15:07:11 -0800 (PST) From: Dorian Cruveiller To: james.schulman@cirrus.com, david.rhodes@cirrus.com, rf@opensource.cirrus.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dorian Cruveiller Subject: [PATCH 2/2] Add driver properties for cs35l41 for Lenovo Legion Slim 7 Gen 8 serie Date: Sat, 30 Dec 2023 00:07:03 +0100 Message-ID: <20231229230703.73876-1-doriancruveiller@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add driver properties on 4 models of this laptop serie since they don't have _DSD in the ACPI table Signed-off-by: Dorian Cruveiller --- sound/pci/hda/cs35l41_hda_property.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_hda_property.c index 194e1179a253..8370da3d14a4 100644 --- a/sound/pci/hda/cs35l41_hda_property.c +++ b/sound/pci/hda/cs35l41_hda_property.c @@ -71,6 +71,10 @@ static const struct cs35l41_config cs35l41_config_table[] = { { "10431F12", I2C, 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 }, { "10431F1F", SPI, 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, -1, 0, 0, 0, 0 }, { "10431F62", SPI, 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 0, 0, 0 }, + { "17AA38B4", I2C, 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, + { "17AA38B5", I2C, 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, + { "17AA38B6", I2C, 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, + { "17AA38B7", I2C, 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 }, {} }; @@ -377,6 +381,10 @@ 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", "17AA38B4", generic_dsd_config }, + { "CSC3551", "17AA38B5", generic_dsd_config }, + { "CSC3551", "17AA38B6", generic_dsd_config }, + { "CSC3551", "17AA38B7", generic_dsd_config }, {} };