1
0
Fork 0
forked from len0rd/rockbox

FiiO M3K: minor fixes

- Drop obsolete NAND patch script (it's simpler to use 'dd' directly)
- Remove an outdated comment
- Fix missing 'void' in a function definition
- Reset the poweroff timer when we poke the backlight

Change-Id: I752624386f30ac95f41a731d2b6be837e12275a9
This commit is contained in:
Aidan MacDonald 2021-05-23 15:20:07 +01:00
parent 663c5268ac
commit 2066465b78
3 changed files with 3 additions and 71 deletions

View file

@ -43,7 +43,6 @@ bool backlight_hw_init(void)
pwm_enable(BL_BTN_CHN);
backlight_hw_brightness(MAX_BRIGHTNESS_SETTING);
buttonlight_hw_brightness(MAX_BRIGHTNESS_SETTING);
/* TODO: avoid buttonlight flicker when powering up the machine */
return true;
}

View file

@ -22,6 +22,7 @@
#include "button.h"
#include "kernel.h"
#include "backlight.h"
#include "powermgmt.h"
#include "panic.h"
#include "axp173.h"
#include "gpio-x1000.h"
@ -313,6 +314,7 @@ static void ft_step_state(uint32_t t, int evt, int tx, int ty)
/* Poke the backlight */
backlight_on();
buttonlight_on();
reset_poweroff_timer();
fsm.orig_x = fsm.cur_x;
fsm.orig_y = fsm.cur_y;
@ -481,7 +483,7 @@ int button_read_device(void)
return r;
}
bool headphones_inserted()
bool headphones_inserted(void)
{
return hp_detect_reg & 0x40 ? true : false;
}