From a4f28c001d9fbe378852771c0734af4f7798d3c0 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Wed, 29 Sep 2010 13:24:35 -0700 Subject: 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 Acked-by: Liam Girdwood --- include/sound/wm8962.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 @@ struct wm8962_pdata { u32 gpio_init[WM8962_MAX_GPIO]; + /* Setup for microphone detection, raw value to be written to + * R48(0x30) - only microphone related bits will be updated. + * Detection may be enabled here for use with signals brought + * out on the GPIOs. */ + u32 mic_cfg; + bool irq_active_low; bool spk_mono; /* Speaker outputs tied together as mono */ -- cgit v1.2.1