summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/twl6040.h
diff options
context:
space:
mode:
authorJorge Eduardo Candelaria <jorge.candelaria@ti.com>2010-12-10 20:45:17 -0600
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-12-14 20:31:54 +0000
commita2d2362edf9f068bdee7d0411e0603b322f8415d (patch)
treee1cd6c0a6627add28700cbbc564b9a5c199f2292 /sound/soc/codecs/twl6040.h
parentdcdeda4a60b2046dd18d3dd20cbd888f25d8916b (diff)
ASoC: twl6040: Add jack support for headset and handset
This patch adds support for reporting twl6040 headset and handset jack events. The machine driver retrieves and report the status through twl6040_hs_jack_detect. A workq is used to debounce of the irq. Signed-off-by: Jorge Eduardo Candelaria <jorge.candelaria@ti.com> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/twl6040.h')
-rw-r--r--sound/soc/codecs/twl6040.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl6040.h b/sound/soc/codecs/twl6040.h
index f7c77fa58a3c..67396f63c1ec 100644
--- a/sound/soc/codecs/twl6040.h
+++ b/sound/soc/codecs/twl6040.h
@@ -135,4 +135,11 @@
#define TWL6040_HPPLL_ID 1
#define TWL6040_LPPLL_ID 2
+/* STATUS (0x2E) fields */
+
+#define TWL6040_PLUGCOMP 0x02
+
+void twl6040_hs_jack_detect(struct snd_soc_codec *codec,
+ struct snd_soc_jack *jack, int report);
+
#endif /* End of __TWL6040_H__ */