summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-21 01:46:05 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-04-21 19:10:34 +0100
commit9313274302554d06f0ba58fce44109088a8908aa (patch)
tree48afdd2d921ba05d444d36a363d1c49d466ade42 /firmware
parent27b44bca7325b72f881505029c1020eeb3a3bd23 (diff)
FiiO M3K: fix LCD weirdness when booting via RoLo
Change-Id: I2234a0d1b3095adbcca0bbd060fd5a7e13a895c1
Diffstat (limited to 'firmware')
-rw-r--r--firmware/rolo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 622110576a..d435db977e 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -65,6 +65,10 @@ extern int write_bootdata(unsigned char* buf, int len, unsigned int boot_volume
#include "ascodec.h"
#endif
+#if defined(FIIO_M3K)
+#include "backlight-target.h"
+#endif
+
#if !defined(IRIVER_IFP7XX_SERIES)
/* FIX: this doesn't work on iFP */
@@ -292,6 +296,12 @@ int rolo_load(const char* filename)
lcd_remote_puts(0, 1, "Executing");
lcd_remote_update();
#endif
+
+#if defined(FIIO_M3K)
+ /* Avoids the LCD backlight ramping down & up weirdly */
+ backlight_hw_off();
+#endif
+
adc_close();
#if CONFIG_CPU == AS3525v2
/* Set CVDD1 power supply to default*/