diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-15 11:54:56 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-15 11:54:56 +0000 |
commit | 32df71851b0f9423b6d447636016582c575302ee (patch) | |
tree | f85e85e66547407887afbaf878d7d37f6fd71a4b | |
parent | ad79b7188bff3bba961134ce61269609ad1ec6fe (diff) | |
download | rockbox-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.c | 2 |
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) { | |||
139 | lcd_bcm_read32(0x1FC); | 139 | lcd_bcm_read32(0x1FC); |
140 | 140 | ||
141 | do { | 141 | do { |
142 | /* This function takes about 14ms to execute - so we yield() */ | ||
143 | yield(); | ||
142 | data = lcd_bcm_read32(0x1F8); | 144 | data = lcd_bcm_read32(0x1F8); |
143 | } while (data == 0xFFFA0005 || data == 0xFFFF); | 145 | } while (data == 0xFFFA0005 || data == 0xFFFF); |
144 | 146 | ||