summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 17:43:32 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 17:43:32 +0000
commit5d849a963e562d1996c20cd72228835276288141 (patch)
tree8c96a2524f6c1b6d714506a8d012a9c7ded24918 /apps/buffering.c
parent35bcdef1441519bb66a77b675013309ef39e9eec (diff)
downloadrockbox-5d849a963e562d1996c20cd72228835276288141.tar.gz
rockbox-5d849a963e562d1996c20cd72228835276288141.zip
Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29189 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 46b6455178..8d41324190 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -119,7 +119,7 @@ static volatile size_t buf_ridx; /* current reading position */
119 119
120/* Configuration */ 120/* Configuration */
121static size_t conf_watermark = 0; /* Level to trigger filebuf fill */ 121static size_t conf_watermark = 0; /* Level to trigger filebuf fill */
122#if MEM > 8 122#if MEMORYSIZE > 8
123static size_t high_watermark = 0; /* High watermark for rebuffer */ 123static size_t high_watermark = 0; /* High watermark for rebuffer */
124#endif 124#endif
125 125
@@ -1509,7 +1509,7 @@ void buffering_thread(void)
1509#if 0 1509#if 0
1510 /* TODO: This needs to be fixed to use the idle callback, disable it 1510 /* TODO: This needs to be fixed to use the idle callback, disable it
1511 * for simplicity until its done right */ 1511 * for simplicity until its done right */
1512#if MEM > 8 1512#if MEMORYSIZE > 8
1513 /* If the disk is spinning, take advantage by filling the buffer */ 1513 /* If the disk is spinning, take advantage by filling the buffer */
1514 else if (storage_disk_is_active() && queue_empty(&buffering_queue)) 1514 else if (storage_disk_is_active() && queue_empty(&buffering_queue))
1515 { 1515 {
@@ -1589,7 +1589,7 @@ bool buffering_reset(char *buf, size_t buflen)
1589 base_handle_id = -1; 1589 base_handle_id = -1;
1590 1590
1591 /* Set the high watermark as 75% full...or 25% empty :) */ 1591 /* Set the high watermark as 75% full...or 25% empty :) */
1592#if MEM > 8 1592#if MEMORYSIZE > 8
1593 high_watermark = 3*buflen / 4; 1593 high_watermark = 3*buflen / 4;
1594#endif 1594#endif
1595 1595