]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt286: add jack detection disable with NULL jack passed
authorJie Yang <yang.jie@intel.com>
Tue, 10 Feb 2015 09:01:56 +0000 (17:01 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 24 Feb 2015 15:06:12 +0000 (00:06 +0900)
commitb16bf9be0af1f551926cc60daea56563f58abac4
treed8594e2216e605f7dc0f8f79e7b1cdd4f31257c1
parentb7d65746744b343701de14ca433982a3229390be
ASoC: rt286: add jack detection disable with NULL jack passed

Some platforms, e.g. WSB, don't need jack detection when
system is in Suspend, for power save reason.

Here add headphone/mic jack detection disable feature with NULL
jack passed in, when disabled, it will disable interrupt, and
disable LDO1, which is used for jack detection when headphone
is plugged in.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Reviewed-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c