ASoC: rt5682: fix a little pop while playback
authorDerek Fang <derek.fang@realtek.com>
Thu, 14 Oct 2021 09:40:54 +0000 (17:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:28 +0000 (09:48 +0100)
commit8eab383460c4f29c8e6dc2e8a24e696334d3bee7
tree8b78c7badc70b66d50e1da555a59502ab25ea516
parent065334f6640d074a1caec2f8b0091467a22f9483
ASoC: rt5682: fix a little pop while playback

[ Upstream commit 4b19e4a77cc6baa0f840e8bae62ab974667f6207 ]

A little pop can be heard obviously from HP while playing a silent.
This patch fixes it by using two functions:
1. Enable HP 1bit output mode.
2. Change the charge pump switch size during playback on and off.

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