From 979385a78ef44b0cef086ed7066bbccd5df32432 Mon Sep 17 00:00:00 2001 From: Alex Swedenburg Date: Tue, 17 Nov 2015 10:10:30 -0700 Subject: [PATCH] Export GPIO for inputs --- ptt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ptt.c b/ptt.c index 693171f..78efc6f 100644 --- a/ptt.c +++ b/ptt.c @@ -556,6 +556,11 @@ void ptt_init (struct audio_s *audio_config_p) export_gpio(audio_config_p->achan[ch].octrl[ot].ptt_gpio, audio_config_p->achan[ch].octrl[ot].ptt_invert, 1); } } + for (ot = 0; ot < NUM_ICTYPES; ot++) { + if (audio_config_p->achan[ch].ictrl[ot].method == PTT_METHOD_GPIO) { + export_gpio(audio_config_p->achan[ch].ictrl[ot].gpio, audio_config_p->achan[ch].ictrl[ot].invert, 0); + } + } } } #endif