]> 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)
commit0f7b59c3c989e4d26a0d7559708edf78e2bdaab4
treed8594e2216e605f7dc0f8f79e7b1cdd4f31257c1
parent9cbe621030a9cce16d27329dac74fd4b1c1d9412
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