summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-09-17 14:53:29 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2020-09-18 00:22:52 +0000
commit2df3a5b04c40d548391c69c18780fefd420fac02 (patch)
tree48f56c70a30c688e9360a03eff836de7fba9f73b /firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
parent4fa945d810a574c96503834d1c9324d02f17fc4b (diff)
downloadrockbox-2df3a5b04c.tar.gz
rockbox-2df3a5b04c.tar.bz2
rockbox-2df3a5b04c.zip
Headphone / lineout pause/resume #FS13237
Allow Lineout to behave like headphone port in regards to plug/unplug pause/resume Change-Id: I9cb2c9c40e0bdf3bf7e1e272164acd343f6b3850
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
index 0db1bada9b..ebf3c64b47 100644
--- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
+++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
@@ -89,10 +89,12 @@ void button_init_device(void)
__gpio_as_output(PIN_CHARGE_CON);
__gpio_as_input(PIN_PH_DECT);
+ __gpio_enable_pull(PIN_PH_DECT);
/*__gpio_disable_pull(PIN_PH_DECT); // Spurious Detections */
__gpio_as_input(PIN_LO_DECT);
- __gpio_disable_pull(PIN_LO_DECT);
+ __gpio_enable_pull(PIN_LO_DECT);
+ /*__gpio_disable_pull(PIN_LO_DECT); // Spurious Detections */
}
bool button_hold(void)