diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-10-31 21:25:04 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-10-31 21:25:04 +0000 |
commit | 19d1cacb1a63c306d842f81127d382512c49a062 (patch) | |
tree | bac051d18aae2c9f201744890177e0021e5269be /apps/mpeg.c | |
parent | 3aa58328080ab9a254d9f2329696fa4309a30d50 (diff) | |
download | rockbox-19d1cacb1a63c306d842f81127d382512c49a062.tar.gz rockbox-19d1cacb1a63c306d842f81127d382512c49a062.zip |
cleanup storage defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/mpeg.c')
-rw-r--r-- | apps/mpeg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index 713915d5a6..3c37a6b22f 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c | |||
@@ -1603,7 +1603,8 @@ static void mpeg_thread(void) | |||
1603 | /* Don't read more than until the end of the buffer */ | 1603 | /* Don't read more than until the end of the buffer */ |
1604 | amount_to_read = MIN(audiobuflen - audiobuf_write, | 1604 | amount_to_read = MIN(audiobuflen - audiobuf_write, |
1605 | amount_to_read); | 1605 | amount_to_read); |
1606 | #ifdef HAVE_MMC /* MMC is slow, so don't read too large chunks */ | 1606 | #if (CONFIG_STORAGE & STORAGE_MMC) |
1607 | /* MMC is slow, so don't read too large chunks */ | ||
1607 | amount_to_read = MIN(0x40000, amount_to_read); | 1608 | amount_to_read = MIN(0x40000, amount_to_read); |
1608 | #elif MEM == 8 | 1609 | #elif MEM == 8 |
1609 | amount_to_read = MIN(0x100000, amount_to_read); | 1610 | amount_to_read = MIN(0x100000, amount_to_read); |
@@ -1912,7 +1913,8 @@ static void mpeg_thread(void) | |||
1912 | 1913 | ||
1913 | amount_to_save = MIN(amount_to_save, | 1914 | amount_to_save = MIN(amount_to_save, |
1914 | audiobuflen - audiobuf_read); | 1915 | audiobuflen - audiobuf_read); |
1915 | #ifdef HAVE_MMC /* MMC is slow, so don't save too large chunks at once */ | 1916 | #if (CONFIG_STORAGE & STORAGE_MMC) |
1917 | /* MMC is slow, so don't save too large chunks at once */ | ||
1916 | amount_to_save = MIN(0x40000, amount_to_save); | 1918 | amount_to_save = MIN(0x40000, amount_to_save); |
1917 | #elif MEM == 8 | 1919 | #elif MEM == 8 |
1918 | amount_to_save = MIN(0x100000, amount_to_save); | 1920 | amount_to_save = MIN(0x100000, amount_to_save); |