mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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)
|
bool headphones_inserted(void)
|
||||||
{
|
{
|
||||||
int status = 0;
|
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);
|
sysfs_get_int(sysfs_hp_switch, &status);
|
||||||
|
|
||||||
return status ? true : false;
|
return status ? true : false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue