Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp3658lqz; Fri, 29 Mar 2024 06:58:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKK/YTNljC09wEuRHiTpvBf5GBJigkCcuMxXRUvpNG4A63gU2exo1viCUQ4XFNgt6f0T68dhLIRS05KvrqMKDjjg+VuASj9sV71CGfng== X-Google-Smtp-Source: AGHT+IFwC/YX/F5qLubnwf/r1qED9osH/QbXoUV/VM3WsWBBWYLUQjy6zkZeSM92a0AqWMdYqiRY X-Received: by 2002:a17:90a:a012:b0:2a0:7b20:212f with SMTP id q18-20020a17090aa01200b002a07b20212fmr2133177pjp.4.1711720721701; Fri, 29 Mar 2024 06:58:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711720721; cv=pass; d=google.com; s=arc-20160816; b=IkM/V7pdMjSTJxm+wcDJMrQ/Kf3xXNT0Sq0AHyxcApq2qeXAJqis92yltrSlhFWpeT MEfDgMNRMYuGTWLfLQvq1Q1nD+FPmDetmPXPAVniVcX5kSBpHJCRGUbgWcTr3D36KN+y jgtpKwWdEDbhr0rw5Y788SyuXS/6XTQf0PJzdiFUopMIABvfplRNVGnAR0wwSzDJrukC m/hzNjo99hzR04Rnfc2VrKYHX076e9/KbABHgL1kgo0FgfmIwanQaMPSioMRSL/DX/3p D+ImZDV4vSIDPid/uPzE0eP/kG+b5bQ7vx7UTn9H99gGBKxFN9kRQamO5CY8xGkYZFsN UGug== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2+o7wWav5vuvhLGeHISsceSeqbd1BS/oyBpDeNNSJec=; fh=nXLvM0ZIahZlUpJkPkd7jkiI3e6YHumsbl/61FKQvBs=; b=tLwHFhp95EkfO+Y3QUSTgoEBP5+j0AwcTaiM0tA4XALAwLxMGffXVRCwChJ6iyCjxE SLwlZ8CKqP8Svbqyo1f/MQMJkwkJRb5J+xBryClTqv232aCAHNivu45Tow6PEZ/rTlOY u5V0iLsNeKtdT4N19yELUftr4LNbI9taoIoXpnHagbxw/fytC7ui/Xf3OJbEx+chFNbJ rrwQ+BmIX8qaGreMtlkE0ZiaD3FJwXh60l1LChPJn6BewLmufxPcNpDQDrX5cfT41rNR mT5kSJABzjOtz4FP1uNaUj5tZ2Fh5X48r0Ldhb0uU5v1Z5u1ZTgsEfv5ZBXft7on1eDo DMAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJKMM7z4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q4-20020a17090a938400b002a028c3b3e3si5829701pjo.73.2024.03.29.06.58.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJKMM7z4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 8F5382878EC for ; Fri, 29 Mar 2024 13:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1AA148FE9; Fri, 29 Mar 2024 12:42:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sJKMM7z4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AF8E8194C9E; Fri, 29 Mar 2024 12:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716167; cv=none; b=mFvMrtUE5CZwxnqbFKDbCajcRMiZDeV3NaCuWbtuGGLTDipcr5nusEyb6Kgkkgy5VCA6btEyIx2yy/d/eKn8f9cSP9c4AywMs7COPfi3iH3m16usflqH5R9UHF7DTGfXTouZQxi3VsQl1iqr/SPEN+N1yVjJ4osIuYtd/T4eArc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716167; c=relaxed/simple; bh=k5sDD4+Vpoaj/hvTPW+o2mryEI3k1nHt3V8TlXWV0rk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M4sF896cGhM2h6YhTkz6jMRle52I2GeNJBIBGqeqniY8c+8V64cz9YEAguycxrRWWrFYJtdi4/yKpfZavE3nlFLgPaSpnrNRGdJAE+PfEiaHdzoEMKOaV/dg3w6OGuNjpJ4O7ZCmxLL7kslI2znVpeNJRYXQB1xYNE5JJ8Rxbco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sJKMM7z4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2982CC433C7; Fri, 29 Mar 2024 12:42:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716167; bh=k5sDD4+Vpoaj/hvTPW+o2mryEI3k1nHt3V8TlXWV0rk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sJKMM7z4hccotL/CeZAsmO408lZxqnwqqK8KAY+er7CyWLiXiJmEZEGUtx4/XDvx0 LyHUATOjjnfm5FF46x7cPmxJsufgDNJEiknR4garYaH+bP1iGtN3QdeT4/t4BzyONQ H4bfa2+YKiYmULweUtAjdgbmt3NX0VIX5mjKJlHsXTFvaHp4tT0qNt0LxpYp+QtAUJ LN1JzBS6yY716vpe1MC32+FqnJzUlE/l+Tbi1efd0jzfMLqEOq72H2u1D47yZvlehm 8t1GLGOkjKekkoMFWJVMib3xhBP0y7Ulo6rS/Aw9tGBGRLmghnbC25Z25vUjKsFHaC 6MalZICj3RUnw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jichi Zhang , Takashi Iwai , Sasha Levin , perex@perex.cz, tiwai@suse.com, sbinding@opensource.cirrus.com, kailang@realtek.com, luke@ljones.dev, shenghao-ding@ti.com, foss@athaariq.my.id, rf@opensource.cirrus.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 95/98] ALSA: hda/realtek: Add quirk for Lenovo Yoga 9 14IMH9 Date: Fri, 29 Mar 2024 08:38:06 -0400 Message-ID: <20240329123919.3087149-95-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Jichi Zhang [ Upstream commit 9b714a59b719b1ba9382c092f0f7aa4bbe94eba1 ] The speakers on the Lenovo Yoga 9 14IMH9 are similar to previous generations such as the 14IAP7, and the bass speakers can be fixed using similar methods with one caveat: 14IMH9 uses CS35L41 amplifiers which need to be activated separately. Signed-off-by: Jichi Zhang Message-ID: <20240315081954.45470-3-i@jichi.ca> Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a1facdb98d9a0..83a1d5c719be6 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7466,6 +7466,7 @@ enum { ALC287_FIXUP_LEGION_16ITHG6, ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK, ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN, + ALC287_FIXUP_YOGA9_14IMH9_BASS_SPK_PIN, ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS, ALC236_FIXUP_DELL_DUAL_CODECS, ALC287_FIXUP_CS35L41_I2C_2_THINKPAD_ACPI, @@ -9589,6 +9590,12 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK, }, + [ALC287_FIXUP_YOGA9_14IMH9_BASS_SPK_PIN] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc287_fixup_yoga9_14iap7_bass_spk_pin, + .chained = true, + .chain_id = ALC287_FIXUP_CS35L41_I2C_2, + }, [ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS] = { .type = HDA_FIXUP_FUNC, .v.func = alc295_fixup_dell_inspiron_top_speakers, @@ -10320,6 +10327,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x38c3, "Y980 DUAL", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38cb, "Y790 YG DUAL", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x17aa, 0x38cd, "Y790 VECO DUAL", ALC287_FIXUP_TAS2781_I2C), + SND_PCI_QUIRK(0x17aa, 0x38d2, "Lenovo Yoga 9 14IMH9", ALC287_FIXUP_YOGA9_14IMH9_BASS_SPK_PIN), + SND_PCI_QUIRK(0x17aa, 0x38d7, "Lenovo Yoga 9 14IMH9", ALC287_FIXUP_YOGA9_14IMH9_BASS_SPK_PIN), 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), -- 2.43.0