summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2014-10-16 20:24:26 +0200
committerMark Brown <broonie@kernel.org>2014-10-22 12:43:14 +0200
commit5e3363ad1b7b2e1f197a3f56b01e21cb155ad454 (patch)
treed48dcf9a18002a24588c4f855388d2b7fbbf5452 /include
parentASoC: rt5677: add build dependency to spi (diff)
downloadlinux-5e3363ad1b7b2e1f197a3f56b01e21cb155ad454.tar.xz
linux-5e3363ad1b7b2e1f197a3f56b01e21cb155ad454.zip
ASoC: rt5677: add GPIO IRQ support
This allows to enable Mic Jack detection feature Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Modified-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/rt5677.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sound/rt5677.h b/include/sound/rt5677.h
index a56b429a1dbc..d9eb7d861cd0 100644
--- a/include/sound/rt5677.h
+++ b/include/sound/rt5677.h
@@ -30,6 +30,13 @@ struct rt5677_platform_data {
/* configures GPIO, 0 - floating, 1 - pulldown, 2 - pullup */
u8 gpio_config[6];
+
+ /* jd1 can select 0 ~ 3 as OFF, GPIO1, GPIO2 and GPIO3 respectively */
+ unsigned int jd1_gpio;
+ /* jd2 and jd3 can select 0 ~ 3 as
+ OFF, GPIO4, GPIO5 and GPIO6 respectively */
+ unsigned int jd2_gpio;
+ unsigned int jd3_gpio;
};
#endif