summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-06-28 09:52:27 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-28 09:52:59 +0200
commit8742f6f0e2cf7c03716d4486f4fad3b57b98d8d3 (patch)
treef6db87cfbaaf8b94b6dcc7dbc9d7f8770a743cc6
parent971001d141e7695e758496c927fd42215489b3f6 (diff)
downloadrockbox-8742f6f.tar.gz
rockbox-8742f6f.tar.bz2
rockbox-8742f6f.zip
Agptek: Fix headphones detection
Change-Id: Id43bfee7357eef8dda6a617c1207b930f3ea90a0
-rw-r--r--firmware/target/hosted/agptek/button-agptek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/agptek/button-agptek.c b/firmware/target/hosted/agptek/button-agptek.c
index a8b5debee5..2d2deda6f6 100644
--- a/firmware/target/hosted/agptek/button-agptek.c
+++ b/firmware/target/hosted/agptek/button-agptek.c
@@ -132,7 +132,7 @@ int button_read_device(void)
bool headphones_inserted(void)
{
int status = 0;
- const char * const sysfs_hp_switch = "/sys/devices/switch/headset/status";
+ const char * const sysfs_hp_switch = "/sys/class/switch/headset/state";
sysfs_get_int(sysfs_hp_switch, &status);
return status ? true : false;