ASoC: twl6040: Add jack support for headset and handset
authorJorge Eduardo Candelaria <jorge.candelaria@ti.com>
Sat, 11 Dec 2010 02:45:17 +0000 (20:45 -0600)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 14 Dec 2010 20:31:54 +0000 (20:31 +0000)
commita2d2362edf9f068bdee7d0411e0603b322f8415d
treee1cd6c0a6627add28700cbbc564b9a5c199f2292
parentdcdeda4a60b2046dd18d3dd20cbd888f25d8916b
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>
sound/soc/codecs/twl6040.c
sound/soc/codecs/twl6040.h