From ee4674852fefafa00e19795e0376f95df068b442 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 27 Mar 2006 13:36:51 +0000 Subject: [PATCH] Patch 4819 from Robert Keevil to shutdown the codec and clear the LCD on ipod shutdown git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9286 a1c6a512-1295-4272-9138-f99709370657 --- docs/CREDITS | 1 + firmware/powermgmt.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/docs/CREDITS b/docs/CREDITS index 8cd0603762..a38fb7c926 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -188,3 +188,4 @@ Nicolas Pennequin Ralf Herz Michael DiFebbo David Rothenberger +Robert Keevil diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 8712d6c8f2..1a0404bbda 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -45,6 +45,10 @@ #include "uda1380.h" #elif defined(HAVE_TLV320) #include "tlv320.h" +#elif defined(HAVE_WM8758) +#include "wm8758.h" +#elif defined(HAVE_WM8975) +#include "wm8975.h" #endif #ifdef HAVE_LCD_BITMAP #include "font.h" @@ -1039,6 +1043,18 @@ void shutdown_hw(void) uda1380_close(); #elif defined(HAVE_TLV320) tlv320_close(); +#elif defined(HAVE_WM8758) || defined(HAVE_WM8975) + wmcodec_close(); +#endif +#ifdef APPLE_IPODVIDEO + /* Fill the screen solid white on 5g to + remove ghosting effect on shutdown */ + lcd_clear_display(); + lcd_set_drawmode(DRMODE_SOLID); + lcd_set_foreground(LCD_WHITE); + lcd_fillrect(0, 0, LCD_WIDTH, LCD_HEIGHT); + lcd_update(); + sleep(HZ/16); #endif backlight_off(); lcd_set_contrast(0);