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)
commite2cef68d5903cc2052e9f6e46b323b7ead695e73
treed8594e2216e605f7dc0f8f79e7b1cdd4f31257c1
parentc517d838eb7d07bbe9507871fab3931deccff539
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