summaryrefslogtreecommitdiff
path: root/apps/recorder/pcm_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/pcm_record.c')
-rw-r--r--apps/recorder/pcm_record.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 0221963b2b..6ecb75f608 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -131,7 +131,7 @@ static unsigned long pre_record_ticks; /* pre-record time in ticks */
131****************************************************************************/ 131****************************************************************************/
132 132
133/** buffer parameters where incoming PCM data is placed **/ 133/** buffer parameters where incoming PCM data is placed **/
134#if MEM <= 2 134#if MEMORYSIZE <= 2
135#define PCM_NUM_CHUNKS 16 /* Power of 2 */ 135#define PCM_NUM_CHUNKS 16 /* Power of 2 */
136#else 136#else
137#define PCM_NUM_CHUNKS 256 /* Power of 2 */ 137#define PCM_NUM_CHUNKS 256 /* Power of 2 */
@@ -180,13 +180,13 @@ static int flood_watermark; /* boost thread priority when here */
180#ifdef HAVE_PRIORITY_SCHEDULING 180#ifdef HAVE_PRIORITY_SCHEDULING
181#define PRIO_SECONDS 10 /* max flush time before priority boost */ 181#define PRIO_SECONDS 10 /* max flush time before priority boost */
182#endif 182#endif
183#if MEM <= 2 183#if MEMORYSIZE <= 2
184/* fractions must be integer fractions of 4 because they are evaluated with 184/* fractions must be integer fractions of 4 because they are evaluated with
185 * X*4*XXX_SECONDS, that way we avoid float calculation */ 185 * X*4*XXX_SECONDS, that way we avoid float calculation */
186#define LOW_SECONDS 1/4 /* low watermark time till empty */ 186#define LOW_SECONDS 1/4 /* low watermark time till empty */
187#define PANIC_SECONDS 1/2 /* flood watermark time until full */ 187#define PANIC_SECONDS 1/2 /* flood watermark time until full */
188#define FLUSH_SECONDS 1 /* flush watermark time until full */ 188#define FLUSH_SECONDS 1 /* flush watermark time until full */
189#elif MEM <= 16 189#elif MEMORYSIZE <= 16
190#define LOW_SECONDS 1 /* low watermark time till empty */ 190#define LOW_SECONDS 1 /* low watermark time till empty */
191#define PANIC_SECONDS 5 /* flood watermark time until full */ 191#define PANIC_SECONDS 5 /* flood watermark time until full */
192#define FLUSH_SECONDS 7 /* flush watermark time until full */ 192#define FLUSH_SECONDS 7 /* flush watermark time until full */
@@ -194,7 +194,7 @@ static int flood_watermark; /* boost thread priority when here */
194#define LOW_SECONDS 1 /* low watermark time till empty */ 194#define LOW_SECONDS 1 /* low watermark time till empty */
195#define PANIC_SECONDS 8 195#define PANIC_SECONDS 8
196#define FLUSH_SECONDS 10 196#define FLUSH_SECONDS 10
197#endif /* MEM */ 197#endif /* MEMORYSIZE */
198 198
199/** encoder events **/ 199/** encoder events **/
200static void (*enc_events_callback)(enum enc_events event, void *data); 200static void (*enc_events_callback)(enum enc_events event, void *data);