summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-10-11 02:06:42 +0000
committerDave Chapman <dave@dchapman.com>2009-10-11 02:06:42 +0000
commit178337970e7e09c68d3b4ff1b7bce61fb45ff321 (patch)
treebca69dda72421e020256101cf6e1d11ff9a2835c
parent0ada0ae7899e0feca17cfd5530406d420dc47adf (diff)
downloadrockbox-178337970e7e09c68d3b4ff1b7bce61fb45ff321.tar.gz
rockbox-178337970e7e09c68d3b4ff1b7bce61fb45ff321.zip
Nano2G - call storage_flush() before rolo_restart() to ensure FTL is flushed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23087 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/rolo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index faceef360a..37834b3f1e 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -33,6 +33,7 @@
33#include "adc.h" 33#include "adc.h"
34#include "string.h" 34#include "string.h"
35#include "buffer.h" 35#include "buffer.h"
36#include "storage.h"
36#include "rolo.h" 37#include "rolo.h"
37 38
38#ifdef MI4_FORMAT 39#ifdef MI4_FORMAT
@@ -363,6 +364,9 @@ int rolo_load(const char* filename)
363 PAIOR = 0x0FA0; 364 PAIOR = 0x0FA0;
364#endif 365#endif
365#endif 366#endif
367#ifdef HAVE_STORAGE_FLUSH
368 storage_flush();
369#endif
366 rolo_restart(audiobuf, ramstart, length); 370 rolo_restart(audiobuf, ramstart, length);
367 371
368 return 0; /* this is never reached */ 372 return 0; /* this is never reached */