diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2014-10-16 14:24:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-22 06:43:14 -0400 |
commit | 5e3363ad1b7b2e1f197a3f56b01e21cb155ad454 (patch) | |
tree | d48dcf9a18002a24588c4f855388d2b7fbbf5452 /include/sound | |
parent | ac884fc47b7750b1e7eaf04f0236610c84ceee54 (diff) |
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/sound')
-rw-r--r-- | include/sound/rt5677.h | 7 |
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 { | |||
30 | 30 | ||
31 | /* configures GPIO, 0 - floating, 1 - pulldown, 2 - pullup */ | 31 | /* configures GPIO, 0 - floating, 1 - pulldown, 2 - pullup */ |
32 | u8 gpio_config[6]; | 32 | u8 gpio_config[6]; |
33 | |||
34 | /* jd1 can select 0 ~ 3 as OFF, GPIO1, GPIO2 and GPIO3 respectively */ | ||
35 | unsigned int jd1_gpio; | ||
36 | /* jd2 and jd3 can select 0 ~ 3 as | ||
37 | OFF, GPIO4, GPIO5 and GPIO6 respectively */ | ||
38 | unsigned int jd2_gpio; | ||
39 | unsigned int jd3_gpio; | ||
33 | }; | 40 | }; |
34 | 41 | ||
35 | #endif | 42 | #endif |