ASoC: sn95031: Add support for reading mic bias
authorVinod Koul <vinod.koul@intel.com>
Wed, 9 Feb 2011 16:14:34 +0000 (21:44 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 9 Feb 2011 22:32:53 +0000 (22:32 +0000)
commit36633237be60c0ec88b11e00d5fa22a305563d03
tree1b2ae4b31f9cd19947e13f7225a67128da66be94
parent42aee9b43e76645cda59bce30a101e7574ce913e
ASoC: sn95031: Add support for reading mic bias

This patch adds support to read the mic bias voltage
when a jack is inserted. It uses ADC to measure.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Harsha Priya <priya.harsha@intel.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sn95031.c
sound/soc/codecs/sn95031.h