FS#8707 - Enable "Load to RAM" (HAS_TC_RAMCACHE) compilation without Directory Cache (HAS_DIRCACHE).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16594 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2008-03-09 20:33:19 +00:00
parent 7317139eb4
commit 6ab1c90513
4 changed files with 7 additions and 4 deletions

View file

@ -570,7 +570,7 @@ struct mp3entry* audio_current_track(void)
if (!filename)
filename = "No file!";
#ifdef HAVE_TC_RAMCACHE
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
if (tagcache_fill_tags(&temp_id3, filename))
return &temp_id3;
#endif

View file

@ -3794,10 +3794,10 @@ static bool load_tagcache(void)
# ifdef HAVE_DIRCACHE
while (dircache_is_initializing())
sleep(1);
dircache_set_appflag(DIRCACHE_APPFLAG_TAGCACHE);
# endif
dircache_set_appflag(DIRCACHE_APPFLAG_TAGCACHE);
logf("loading tagcache to ram...");
fd = open(TAGCACHE_FILE_MASTER, O_RDONLY);

View file

@ -379,6 +379,7 @@ Yohann Misquitta
Keith Perri
Mark Fawcus
Ivan Pesic
Marcel Barbulescu
The libmad team

View file

@ -308,8 +308,10 @@
/* Enable the directory cache and tagcache in RAM if we have
* plenty of RAM. Both features can be enabled independently. */
#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \
!defined(BOOTLOADER) && !defined(SANSA_E200) && !defined(SANSA_C200)
!defined(BOOTLOADER)
#if !defined(SANSA_E200) && !defined(SANSA_C200)
#define HAVE_DIRCACHE
#endif
#ifdef HAVE_TAGCACHE
#define HAVE_TC_RAMCACHE
#endif