diff options
author | Jorge Eduardo Candelaria <jorge.candelaria@ti.com> | 2010-12-11 03:45:17 +0100 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-12-14 21:31:54 +0100 |
commit | a2d2362edf9f068bdee7d0411e0603b322f8415d (patch) | |
tree | e1cd6c0a6627add28700cbbc564b9a5c199f2292 /sound/soc/codecs/twl6040.h | |
parent | ASoC: TWL4030: Fix 24bit support (diff) | |
download | linux-a2d2362edf9f068bdee7d0411e0603b322f8415d.tar.xz linux-a2d2362edf9f068bdee7d0411e0603b322f8415d.zip |
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.h | 7 |
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__ */ |