diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-03-27 13:36:51 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-27 13:36:51 +0000 |
commit | ee4674852fefafa00e19795e0376f95df068b442 (patch) | |
tree | 7e9d75c03902d231f2453a2189ba2a3fcb71efc8 | |
parent | 3ca32bb06dfeac737be4678e6a69decfc4d9a509 (diff) | |
download | rockbox-ee4674852fefafa00e19795e0376f95df068b442.tar.gz rockbox-ee4674852fefafa00e19795e0376f95df068b442.zip |
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
-rw-r--r-- | docs/CREDITS | 1 | ||||
-rw-r--r-- | firmware/powermgmt.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index 8cd0603762..a38fb7c926 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -188,3 +188,4 @@ Nicolas Pennequin | |||
188 | Ralf Herz | 188 | Ralf Herz |
189 | Michael DiFebbo | 189 | Michael DiFebbo |
190 | David Rothenberger | 190 | David Rothenberger |
191 | 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 @@ | |||
45 | #include "uda1380.h" | 45 | #include "uda1380.h" |
46 | #elif defined(HAVE_TLV320) | 46 | #elif defined(HAVE_TLV320) |
47 | #include "tlv320.h" | 47 | #include "tlv320.h" |
48 | #elif defined(HAVE_WM8758) | ||
49 | #include "wm8758.h" | ||
50 | #elif defined(HAVE_WM8975) | ||
51 | #include "wm8975.h" | ||
48 | #endif | 52 | #endif |
49 | #ifdef HAVE_LCD_BITMAP | 53 | #ifdef HAVE_LCD_BITMAP |
50 | #include "font.h" | 54 | #include "font.h" |
@@ -1039,6 +1043,18 @@ void shutdown_hw(void) | |||
1039 | uda1380_close(); | 1043 | uda1380_close(); |
1040 | #elif defined(HAVE_TLV320) | 1044 | #elif defined(HAVE_TLV320) |
1041 | tlv320_close(); | 1045 | tlv320_close(); |
1046 | #elif defined(HAVE_WM8758) || defined(HAVE_WM8975) | ||
1047 | wmcodec_close(); | ||
1048 | #endif | ||
1049 | #ifdef APPLE_IPODVIDEO | ||
1050 | /* Fill the screen solid white on 5g to | ||
1051 | remove ghosting effect on shutdown */ | ||
1052 | lcd_clear_display(); | ||
1053 | lcd_set_drawmode(DRMODE_SOLID); | ||
1054 | lcd_set_foreground(LCD_WHITE); | ||
1055 | lcd_fillrect(0, 0, LCD_WIDTH, LCD_HEIGHT); | ||
1056 | lcd_update(); | ||
1057 | sleep(HZ/16); | ||
1042 | #endif | 1058 | #endif |
1043 | backlight_off(); | 1059 | backlight_off(); |
1044 | lcd_set_contrast(0); | 1060 | lcd_set_contrast(0); |