aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8753.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8753.h')
-rw-r--r--sound/soc/codecs/wm8753.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8753.h b/sound/soc/codecs/wm8753.h
index 94edac144bc..550af291d3f 100644
--- a/sound/soc/codecs/wm8753.h
+++ b/sound/soc/codecs/wm8753.h
@@ -112,7 +112,28 @@
112#define WM8753_VXCLK_DIV_8 (3 << 6) 112#define WM8753_VXCLK_DIV_8 (3 << 6)
113#define WM8753_VXCLK_DIV_16 (4 << 6) 113#define WM8753_VXCLK_DIV_16 (4 << 6)
114 114
115#define WM8753_DAI_HIFI 0 115/* GPIO Control 2 */
116#define WM8753_DAI_VOICE 1 116#define WM8753_GP2M_MASK (7 << 3)
117#define WM8753_GP2M_INT (3 << 3)
117 118
119/* GPIO Control 1 */
120#define WM8753_INTCON_MASK (3 << 7)
121#define WM8753_INTCON_AL (3 << 7)
122
123/* Interrupt Polarity*/
124#define WM8753_GPIO4IPOL_MASK (1 << 4)
125#define WM8753_GPIO4IPOL_LOW (1 << 4)
126#define WM8753_GPIO4IPOL_HIGH (0 << 4)
127
128/* Interrupt Enable*/
129#define WM8753_GPIO4IEN_MASK (1 << 4)
130#define WM8753_GPIO4IEN_EN (1 << 4)
131#define WM8753_GPIO4IEN_DIS (0 << 4)
132
133#define WM8753_DAI_HIFI 0
134#define WM8753_DAI_VOICE 1
135
136int wm8753_headphone_detect(struct snd_soc_codec *codec,
137 struct snd_soc_jack *jack, enum snd_jack_types type,
138 unsigned int debounce_time_hp);
118#endif 139#endif