]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: rt5645: Fix the electric noise due to the CBJ contacts floating
authorDerek Fang <derek.fang@realtek.com>
Mon, 8 Apr 2024 09:10:56 +0000 (17:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:48:50 +0000 (09:48 +0200)
commit622a27f37447e5e814d526891d47717df28dd276
tree4b8b7cb7c4e824bfd10a7973ecd278f6865ee405
parent7dfbd2c39a04415ffdef1463e3063d118f8abb1f
ASoC: rt5645: Fix the electric noise due to the CBJ contacts floating

[ Upstream commit 103abab975087e1f01b76fcb54c91dbb65dbc249 ]

The codec leaves tie combo jack's sleeve/ring2 to floating status
default. It would cause electric noise while connecting the active
speaker jack during boot or shutdown.
This patch requests a gpio to control the additional jack circuit
to tie the contacts to the ground or floating.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
Link: https://msgid.link/r/20240408091057.14165-1-derek.fang@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5645.c