]> 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)
commitbc9f10c59ef7b3f75f6800bc727e5ae2cf00c387
treebe20715854692094a08a2b1af955505117357571
parente50fad57f3da755aee3f6158152a89e5c36234c5
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