OSDN Git Service

ASoC: rt5645: improve headphone depop function
authorJohn Lin <john.lin@realtek.com>
Tue, 12 May 2015 12:43:02 +0000 (20:43 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2015 18:50:39 +0000 (19:50 +0100)
commitd12d6c4ef252dd2c40786860c859ab09e0311857
treeb0115d7783b0d81cdddeaa070be844a8227a42ea
parentac4fc3eeb79e06499779db99937522526e863ab6
ASoC: rt5645: improve headphone depop function

We add a calibration function and call it at the beginning of i2c_probe.
The calibration value will be kept until codec is shutdown. We will reset
the codec after the calibration is finished. So, we set cache_bypass in
the calibration function. The benefit is we can shorter the delay time
in headphone depop.

We also change the register setting in the depop sequence which will
reduce the pop noise in headphone playback.

Signed-off-by: John Lin <john.lin@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c