Agptek: Fix headphones detection
Change-Id: Id43bfee7357eef8dda6a617c1207b930f3ea90a0
This commit is contained in:
parent
971001d141
commit
8742f6f0e2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue