ASoC: Simplify default WM8958 jack detection code
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 22 Feb 2011 04:51:13 +0000 (20:51 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 22 Feb 2011 18:42:33 +0000 (10:42 -0800)
commit864c4bd2487619564acd75fdcf1a4349992e9090
tree1fa2ec8b34711ad4de61cc16c896462751a31151
parent48e028eccabc9c246bfad175262582a1ce34a316
ASoC: Simplify default WM8958 jack detection code

The default WM8958 jack detection handler implements a full set of buttons
and also support for video detection. Support for multi-button jacks is
fairly system specific and will usually require some tuning for headsets
so simplify the implementation to only report a simple short to ground
button, leaving multi-button headsets to be handled by system specific
code.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8994.c