diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-15 14:14:34 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-16 11:56:54 -0400 |
commit | 37f88e8407f75fc6ced5cefb633c314556de3ad1 (patch) | |
tree | 95b4bd8d967f4c229becaad4b5dc503be6f46448 /sound/soc/codecs/wm8903.h | |
parent | 73b34ead7429789f35eea147a3e185abd61c7d94 (diff) |
ASoC: Initial WM8903 microphone bias and short detection
Provide support for WM8903 microphone presence and short detection
using the GPIOs to route out a logic signal suitable for handling
using snd_soc_jack_add_gpios() on the processor GPIOs.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8903.h')
-rw-r--r-- | sound/soc/codecs/wm8903.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sound/soc/codecs/wm8903.h b/sound/soc/codecs/wm8903.h index 551736cf2195..8f19a2413785 100644 --- a/sound/soc/codecs/wm8903.h +++ b/sound/soc/codecs/wm8903.h | |||
@@ -173,28 +173,6 @@ extern struct snd_soc_codec_device soc_codec_dev_wm8903; | |||
173 | #define WM8903_VMID_RES_5K 4 | 173 | #define WM8903_VMID_RES_5K 4 |
174 | 174 | ||
175 | /* | 175 | /* |
176 | * R6 (0x06) - Mic Bias Control 0 | ||
177 | */ | ||
178 | #define WM8903_MICDET_HYST_ENA 0x0080 /* MICDET_HYST_ENA */ | ||
179 | #define WM8903_MICDET_HYST_ENA_MASK 0x0080 /* MICDET_HYST_ENA */ | ||
180 | #define WM8903_MICDET_HYST_ENA_SHIFT 7 /* MICDET_HYST_ENA */ | ||
181 | #define WM8903_MICDET_HYST_ENA_WIDTH 1 /* MICDET_HYST_ENA */ | ||
182 | #define WM8903_MICDET_THR_MASK 0x0070 /* MICDET_THR - [6:4] */ | ||
183 | #define WM8903_MICDET_THR_SHIFT 4 /* MICDET_THR - [6:4] */ | ||
184 | #define WM8903_MICDET_THR_WIDTH 3 /* MICDET_THR - [6:4] */ | ||
185 | #define WM8903_MICSHORT_THR_MASK 0x000C /* MICSHORT_THR - [3:2] */ | ||
186 | #define WM8903_MICSHORT_THR_SHIFT 2 /* MICSHORT_THR - [3:2] */ | ||
187 | #define WM8903_MICSHORT_THR_WIDTH 2 /* MICSHORT_THR - [3:2] */ | ||
188 | #define WM8903_MICDET_ENA 0x0002 /* MICDET_ENA */ | ||
189 | #define WM8903_MICDET_ENA_MASK 0x0002 /* MICDET_ENA */ | ||
190 | #define WM8903_MICDET_ENA_SHIFT 1 /* MICDET_ENA */ | ||
191 | #define WM8903_MICDET_ENA_WIDTH 1 /* MICDET_ENA */ | ||
192 | #define WM8903_MICBIAS_ENA 0x0001 /* MICBIAS_ENA */ | ||
193 | #define WM8903_MICBIAS_ENA_MASK 0x0001 /* MICBIAS_ENA */ | ||
194 | #define WM8903_MICBIAS_ENA_SHIFT 0 /* MICBIAS_ENA */ | ||
195 | #define WM8903_MICBIAS_ENA_WIDTH 1 /* MICBIAS_ENA */ | ||
196 | |||
197 | /* | ||
198 | * R8 (0x08) - Analogue DAC 0 | 176 | * R8 (0x08) - Analogue DAC 0 |
199 | */ | 177 | */ |
200 | #define WM8903_DACBIAS_SEL_MASK 0x0018 /* DACBIAS_SEL - [4:3] */ | 178 | #define WM8903_DACBIAS_SEL_MASK 0x0018 /* DACBIAS_SEL - [4:3] */ |