aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98088.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/max98088.h')
-rw-r--r--sound/soc/codecs/max98088.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98088.h b/sound/soc/codecs/max98088.h
index be89a4f4aab..cf4b04d2d07 100644
--- a/sound/soc/codecs/max98088.h
+++ b/sound/soc/codecs/max98088.h
@@ -194,6 +194,25 @@
194 #define M98088_PWRSV8K (1<<1) 194 #define M98088_PWRSV8K (1<<1)
195 #define M98088_PWRSV (1<<0) 195 #define M98088_PWRSV (1<<0)
196 196
197/* M98088_REG_4E_BIAS_CNTL */
198 #define M98088_JDWK (1<<1)
199
200/* M98088_REG_4B_CFG_JACKDET */
201 #define M98088_JDETEN (1<<7)
202 #define M98088_JDEB (3<<0)
203 #define M98088_JDEB_25 (0<<0)
204 #define M98088_JDEB_50 (1<<0)
205 #define M98088_JDEB_100 (2<<0)
206 #define M98088_JDEB_200 (3<<0)
207
208
209/* M98088_REG_0F_IRQ_ENABLE */
210 #define M98088_IJDET (1<<1)
211
212/* M98088_REG_02_JACK_STAUS */
213 #define M98088_JKSNS_7 (1<<7)
214 #define M98088_JKSNS_6 (1<<6)
215
197/* Line inputs */ 216/* Line inputs */
198#define LINE_INA 0 217#define LINE_INA 0
199#define LINE_INB 1 218#define LINE_INB 1
@@ -203,4 +222,7 @@
203#define M98088_BYTE1(w) ((w >> 8) & 0xff) 222#define M98088_BYTE1(w) ((w >> 8) & 0xff)
204#define M98088_BYTE0(w) (w & 0xff) 223#define M98088_BYTE0(w) (w & 0xff)
205 224
225int max98088_headset_detect(struct snd_soc_codec *codec,
226 struct snd_soc_jack *jack, enum snd_jack_types type);
227
206#endif 228#endif