]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5645: Prevent the pop sound of the headphone while rebooting or shutdowning
authorOder Chiou <oder_chiou@realtek.com>
Thu, 27 Aug 2015 07:14:51 +0000 (15:14 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 27 Aug 2015 19:17:40 +0000 (20:17 +0100)
commitdc0a3d35312511f60965b5267c600a28a49afef3
treef5d9514dfdf29ecb83079ac2096418a47ac2095a
parent3a6c092b27eaedfddbad101b59a96659e425892e
ASoC: rt5645: Prevent the pop sound of the headphone while rebooting or shutdowning

Add i2c shutdown function to prevent the pop sound of the headphone while
the system is rebooting or shutdowning. It de-initials the jack detection
function, and it cannot be turned off in _BIAS_OFF. If we don't de-initial
it, the pop sound will be heard in the situation of powering off. And
replace the related register settings from magic number to meaningful
defined name.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.h