From e2be0e75ab91ff9a29496a375386297bdb184716 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 12 Jan 2013 19:08:05 +0000 Subject: [PATCH] imx233: correctly send the LCD_EVENT_ACTIVATION on enable For some reason it is the responsability of the driver to send this event so do it. This might fix some non-updating screens. Change-Id: Ib5fdc94bf266c3497a8ac4e89d0418c0e876ff9f --- firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c | 2 ++ firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c | 2 ++ firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | 1 + 3 files changed, 5 insertions(+) diff --git a/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c index f452ae083e..6f2adc43ae 100644 --- a/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c +++ b/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c @@ -252,6 +252,8 @@ void lcd_enable(bool enable) lcd_enable_seq(enable); if(!enable) common_lcd_enable(false); + else + send_event(LCD_EVENT_ACTIVATION, NULL); } #endif diff --git a/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c b/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c index d04271369c..17fab032bf 100644 --- a/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c +++ b/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c @@ -226,6 +226,8 @@ void lcd_enable(bool enable) lcd_enable_seq(enable); if(!enable) common_lcd_enable(false); + else + send_event(LCD_EVENT_ACTIVATION, NULL); } #endif diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c index 46480f5b01..376673e675 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c @@ -521,6 +521,7 @@ void lcd_enable(bool enable) else { lcd_sync_settings(); + send_event(LCD_EVENT_ACTIVATION, NULL); } } #endif -- 2.11.4.GIT