diff options
author | Tomasz Malesinski <tomal@rockbox.org> | 2006-08-12 23:01:52 +0000 |
---|---|---|
committer | Tomasz Malesinski <tomal@rockbox.org> | 2006-08-12 23:01:52 +0000 |
commit | 28910e7e17786607d0286f2901d77a83d55a7f2c (patch) | |
tree | af59a984937d627f40dc93b63a17f124bc7aa155 /apps/pcmbuf.h | |
parent | c1810b31f170e887668652ff4e3d76c392a5fb70 (diff) | |
download | rockbox-28910e7e17786607d0286f2901d77a83d55a7f2c.tar.gz rockbox-28910e7e17786607d0286f2901d77a83d55a7f2c.zip |
Various lower limits and sizes for targets with 1MB of RAM (Iriver iFP7xx).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10556 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.h')
-rw-r--r-- | apps/pcmbuf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h index 15633d5214..18a6894fee 100644 --- a/apps/pcmbuf.h +++ b/apps/pcmbuf.h | |||
@@ -19,12 +19,18 @@ | |||
19 | #ifndef PCMBUF_H | 19 | #ifndef PCMBUF_H |
20 | #define PCMBUF_H | 20 | #define PCMBUF_H |
21 | 21 | ||
22 | #if MEMORYSIZE > 1 | ||
22 | #define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks | 23 | #define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks |
23 | on the pcm buffer */ | 24 | on the pcm buffer */ |
24 | #define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of | 25 | #define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of |
25 | chunks on the pcm buffer (or we run out | 26 | chunks on the pcm buffer (or we run out |
26 | of buffer descriptors, which is | 27 | of buffer descriptors, which is |
27 | non-fatal) */ | 28 | non-fatal) */ |
29 | #else | ||
30 | #define PCMBUF_TARGET_CHUNK 16384 | ||
31 | #define PCMBUF_MINAVG_CHUNK 12288 | ||
32 | #endif | ||
33 | |||
28 | #define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than | 34 | #define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than |
29 | this to the DMA */ | 35 | this to the DMA */ |
30 | #define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet | 36 | #define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet |