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>
(cherry picked from commit 5c50d2e998143ce00c0629dcaabd73c3d962545c)
[Vegard: fix conflict in context due to missing commit
79223bf190919199652441d9f455cb0deabc75f5 ("ASoC: rt5645/rt5677: replace
codec to component").]
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
1 file changed