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 0288B41B36C; Wed, 4 Feb 2026 15:24:26 +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=1770218666; cv=none; b=TRtYo66qehuiI3rs1pLV73kxjLICwslB6gUPIt6hEJhane2hRVxmBqOce97emeAekenXv67eKYu5VHsDSx3TCBt4hU7qwi9ZzY+2/0+2YZFC+YYWXxyvVIgPQ79O1KguMNYuux4/yhuM3vrLP6c863IhGCwSh/a0Uq5F0fdF06o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770218666; c=relaxed/simple; bh=TtloezVzmq+FnQ+zC1tXXvadb9OJI3q6gdHQpl++igA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qZVN6u2v5nq2mg6s1aI25QCTG36GfVXLvEgQchi5iGjg1+aEhDpwHisoh6igON817hh38aULX494V7XfAycyPGf3YYowF24QQ9vKt8UpXVwwr7t/FNT6G8lbsxtoveEJrL1U0njP/OSIAcKuOOJgnKq4bJf2PZGYVCf8XAd7KGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W444WRwm; 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="W444WRwm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78F0DC4CEF7; Wed, 4 Feb 2026 15:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770218665; bh=TtloezVzmq+FnQ+zC1tXXvadb9OJI3q6gdHQpl++igA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W444WRwmFowdMtvKZJYuNf98UvqNcVwr3VQ1yhARKrFezvCkQeDrO2oKTE0Usjhpp dVRMenW2c1m3FaHpPIjDisBbiNTRHSBhgwZa67iuOsDH+GRkDAgts4SjZlMYLt2AQt ZD4MFQec4wEH0WHSUA3reGiaUY/p9UqSl3lvkjqA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tagir Garaev , Mark Brown , Sasha Levin Subject: [PATCH 6.12 25/87] ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion Date: Wed, 4 Feb 2026 15:40:23 +0100 Message-ID: <20260204143847.815997789@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143846.906385641@linuxfoundation.org> References: <20260204143846.906385641@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tagir Garaev [ Upstream commit 213c4e51267fd825cd21a08a055450cac7e0b7fb ] The headphone GPIO should be set to the inverse of speaker_en. When speakers are enabled, headphones should be disabled and vice versa. Currently both GPIOs are set to the same value (speaker_en), causing audio to play through both speakers and headphones simultaneously when headphones are plugged in. Tested on Huawei Matebook (BOD-WXX9) with ES8336 codec. Fixes: 6e1ff1459e00 ("ASoC: Intel: sof_es8336: support a separate gpio to control headphone") Signed-off-by: Tagir Garaev Link: https://patch.msgid.link/20260121152435.101698-1-tgaraev653@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_es8336.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index fc998fe4b1960..bc27229be7c24 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -120,7 +120,7 @@ static void pcm_pop_work_events(struct work_struct *work) gpiod_set_value_cansleep(priv->gpio_speakers, priv->speaker_en); if (quirk & SOF_ES8336_HEADPHONE_GPIO) - gpiod_set_value_cansleep(priv->gpio_headphone, priv->speaker_en); + gpiod_set_value_cansleep(priv->gpio_headphone, !priv->speaker_en); } -- 2.51.0