Agptek: Fix headphones detection

Change-Id: Id43bfee7357eef8dda6a617c1207b930f3ea90a0
This commit is contained in:
Marcin Bukat 2018-06-28 09:52:27 +02:00
parent 971001d141
commit 8742f6f0e2

View file

@ -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;