From mboxrd@z Thu Jan 1 00:00:00 1970 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 53C5814F9DA; Tue, 20 Feb 2024 21:02:03 +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=1708462923; cv=none; b=TKUg3WHPEfKsubG2h9oZ2bUiezTtiCD7fAWX7U6jXHnPOCs3B8zb80ucoKDx50yEVFBNTTWaPtSsJb8ZAchVV/w/5NNWd5LqZo7tP1YN/D7LkYtFNhx2PCPRnYWfY9Tsa8H4ronmmtexgfXrx38kUxSbklLt/vV6HUkU/fN5O10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708462923; c=relaxed/simple; bh=HgkOguFblR3DL4z09+1stln84etR7VLWpoILfKWlbEs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OlKKvanTnHFj7Oiej0vZPrggMeLl8Y+xg+E8TbsntyG0ofnyapiTvEfFL6oaC8R8BqRzdLHctRRY0plPdmWfo8YTP9+PZXLyRs4onPxSsoDckvd/rd3KkSJlQ4mikHRxS7yfep3XDWRZig0Hc/UQqt8wwh+4MPSOFb1SWmMcb94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=myh8LLWO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="myh8LLWO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFC65C433F1; Tue, 20 Feb 2024 21:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708462923; bh=HgkOguFblR3DL4z09+1stln84etR7VLWpoILfKWlbEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=myh8LLWOepJPfnYixEqqOpWRuoEgRbOvdr31pcaYWWrwBYSmhqRvqpQQs1kCIuDwB aK8Eo0PRaCgK73ZC65oyPC8gOMdX51zqoun9vH0h9s2jheEGeA6cv9XzFKwJIguR6A 3I2MKPrt80pevwPjBfYbPV4TYGrwljMxT0TKUqlk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Jos=C3=A9=20Relvas?= , Takashi Iwai Subject: [PATCH 6.1 080/197] ALSA: hda/realtek: Apply headset jack quirk for non-bass alc287 thinkpads Date: Tue, 20 Feb 2024 21:50:39 +0100 Message-ID: <20240220204843.480656282@linuxfoundation.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240220204841.073267068@linuxfoundation.org> References: <20240220204841.073267068@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: José Relvas commit 2468e8922d2f6da81a6192b73023eff67e3fefdd upstream. There currently exists two thinkpad headset jack fixups: ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK ALC285_FIXUP_THINKPAD_HEADSET_JACK The latter is applied to alc285 and alc287 thinkpads which contain bass speakers. However, the former was only being applied to alc285 thinkpads, leaving non-bass alc287 thinkpads with no headset button controls. This patch fixes that by adding ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK to the alc287 chains, allowing the detection of headset buttons. Signed-off-by: José Relvas Cc: Link: https://lore.kernel.org/r/20240131113407.34698-3-josemonsantorelvas@gmail.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9377,7 +9377,7 @@ static const struct hda_fixup alc269_fix .type = HDA_FIXUP_FUNC, .v.func = cs35l41_fixup_i2c_two, .chained = true, - .chain_id = ALC269_FIXUP_THINKPAD_ACPI, + .chain_id = ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK, }, [ALC245_FIXUP_HP_MUTE_LED_COEFBIT] = { .type = HDA_FIXUP_FUNC, @@ -9392,6 +9392,8 @@ static const struct hda_fixup alc269_fix [ALC287_FIXUP_THINKPAD_I2S_SPK] = { .type = HDA_FIXUP_FUNC, .v.func = alc287_fixup_bind_dacs, + .chained = true, + .chain_id = ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK, }, [ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD] = { .type = HDA_FIXUP_FUNC,