]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5670: export jack suspend/resume APIs
authorBard Liao <bardliao@realtek.com>
Wed, 11 Mar 2015 03:42:45 +0000 (11:42 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 11 Mar 2015 12:08:20 +0000 (12:08 +0000)
commitbda25aa4ac82cfe7ceba159f035b75671508498c
treebe20715854692094a08a2b1af955505117357571
parenta145f2d7dd1f3789b9240ec1b7046c2e49a816f5
ASoC: rt5670: export jack suspend/resume APIs

We force enable "Mic Det Power" when a jack is inserted. Also, we
set codec idle_bias_off = true. As a result, codec driver will not
suspend as we expect.

On Braswell, we don't need the jack detection when suspend but need
it after resume, so export the jack suspend/resume APIs which are
provided for machine driver to control during suspend/resume.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5670.c
sound/soc/codecs/rt5670.h