aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-09-29 16:24:35 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-09-30 12:36:13 -0400
commita4f28c001d9fbe378852771c0734af4f7798d3c0 (patch)
treec556ecd9f97b2a91492434d0c94a7daa7eca9471 /include
parentdee0bb9d0fef4535cc52df84b5165cbe2db383d7 (diff)
ASoC: Provide microphone bias configuration for WM8962
Add the widget for MICBIAS power control and allow configuration of the microphone bias setup via the platform data for the WM8962. When microphone status signals are brought out to GPIO this should be sufficient to enable microphone detection. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/sound/wm8962.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/wm8962.h b/include/sound/wm8962.h
index cc32aff53222..9722aac5a138 100644
--- a/include/sound/wm8962.h
+++ b/include/sound/wm8962.h
@@ -17,6 +17,12 @@
17struct wm8962_pdata { 17struct wm8962_pdata {
18 u32 gpio_init[WM8962_MAX_GPIO]; 18 u32 gpio_init[WM8962_MAX_GPIO];
19 19
20 /* Setup for microphone detection, raw value to be written to
21 * R48(0x30) - only microphone related bits will be updated.
22 * Detection may be enabled here for use with signals brought
23 * out on the GPIOs. */
24 u32 mic_cfg;
25
20 bool irq_active_low; 26 bool irq_active_low;
21 27
22 bool spk_mono; /* Speaker outputs tied together as mono */ 28 bool spk_mono; /* Speaker outputs tied together as mono */