summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-15 11:54:56 +0000
committerDave Chapman <dave@dchapman.com>2006-02-15 11:54:56 +0000
commit32df71851b0f9423b6d447636016582c575302ee (patch)
treef85e85e66547407887afbaf878d7d37f6fd71a4b
parentad79b7188bff3bba961134ce61269609ad1ec6fe (diff)
downloadrockbox-32df71851b0f9423b6d447636016582c575302ee.tar.gz
rockbox-32df71851b0f9423b6d447636016582c575302ee.zip
iPod 5G: Add a yield() to the lcd_bcm_finishup() function. This function typically waits in a while loop for 14ms whilst the Broadcom DSP updates the LCD - yielding gives that time back to audio decoding.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8693 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd-ipodvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-ipodvideo.c b/firmware/drivers/lcd-ipodvideo.c
index e3bdf163a6..d9ca0fc9da 100644
--- a/firmware/drivers/lcd-ipodvideo.c
+++ b/firmware/drivers/lcd-ipodvideo.c
@@ -139,6 +139,8 @@ static void lcd_bcm_finishup(void) {
lcd_bcm_read32(0x1FC);
do {
+ /* This function takes about 14ms to execute - so we yield() */
+ yield();
data = lcd_bcm_read32(0x1F8);
} while (data == 0xFFFA0005 || data == 0xFFFF);