2009-10-04 08:49:23 +00:00
|
|
|
#ifndef _CONFIG_TREMOR_H
|
|
|
|
#define _CONFIG_TREMOR_H
|
|
|
|
|
2008-11-20 11:27:31 +00:00
|
|
|
#include "codeclib.h"
|
2009-10-04 08:49:23 +00:00
|
|
|
|
2006-01-28 21:21:21 +00:00
|
|
|
#ifdef CPU_ARM
|
|
|
|
#define _ARM_ASSEM_
|
|
|
|
#endif
|
|
|
|
|
2005-05-07 22:41:17 +00:00
|
|
|
#ifdef ROCKBOX_BIG_ENDIAN
|
2005-02-17 09:08:18 +00:00
|
|
|
#define BIG_ENDIAN 1
|
|
|
|
#define LITTLE_ENDIAN 0
|
2005-05-07 22:41:17 +00:00
|
|
|
#define BYTE_ORDER BIG_ENDIAN
|
2005-02-19 11:58:42 +00:00
|
|
|
#else
|
2005-05-07 22:41:17 +00:00
|
|
|
#define BYTE_ORDER LITTLE_ENDIAN
|
|
|
|
#define LITTLE_ENDIAN 1
|
|
|
|
#define BIG_ENDIAN 0
|
2005-02-19 11:58:42 +00:00
|
|
|
#endif
|
2005-05-27 09:14:00 +00:00
|
|
|
|
2006-11-09 21:59:27 +00:00
|
|
|
#ifndef ICODE_ATTR_TREMOR_MDCT
|
|
|
|
#define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR
|
|
|
|
#endif
|
|
|
|
|
2009-10-04 08:49:23 +00:00
|
|
|
/* Workaround for gcc bug where all static functions are called with short
|
|
|
|
calls */
|
|
|
|
#if !defined(ICODE_ATTR_TREMOR_NOT_MDCT) && (CONFIG_CPU==S5L8701)
|
|
|
|
#define STATICIRAM_NOT_MDCT
|
|
|
|
#else
|
|
|
|
#define STATICIRAM_NOT_MDCT static
|
|
|
|
#endif
|
|
|
|
|
2006-11-09 21:59:27 +00:00
|
|
|
#ifndef ICODE_ATTR_TREMOR_NOT_MDCT
|
|
|
|
#define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR
|
2006-01-03 11:58:39 +00:00
|
|
|
#endif
|
2005-05-27 09:14:00 +00:00
|
|
|
|
2009-04-25 11:25:13 +00:00
|
|
|
/* Define CPU of large IRAM (MCF5250) */
|
|
|
|
#if (CONFIG_CPU == MCF5250)
|
|
|
|
/* PCM_BUFFER : 32768 Byte (4096*2*4) *
|
|
|
|
* WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) *
|
|
|
|
* TOTAL : 37376 */
|
|
|
|
#define IRAM_IBSS_SIZE 37376
|
|
|
|
|
|
|
|
/* Define CPU of large IRAM (PP5022/5024) */
|
2009-11-09 20:01:07 +00:00
|
|
|
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
|
2009-04-25 11:25:13 +00:00
|
|
|
/* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) *
|
|
|
|
* WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) *
|
|
|
|
* TOTAL : 41984 */
|
|
|
|
#define IRAM_IBSS_SIZE 41984
|
|
|
|
|
|
|
|
/* Define CPU of Normal IRAM (96KB) (and SIM also) */
|
|
|
|
#else
|
|
|
|
/* PCM_BUFFER : 16384 Byte (2048*2*4) *
|
|
|
|
* WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) *
|
|
|
|
* TOTAL : 20992 */
|
|
|
|
#define IRAM_IBSS_SIZE 20992
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* max 2 channels */
|
|
|
|
#define CHANNELS 2
|
|
|
|
|
2005-05-27 09:14:00 +00:00
|
|
|
// #define _LOW_ACCURACY_
|
2009-10-04 08:49:23 +00:00
|
|
|
|
|
|
|
#endif /* _CONFIG_TREMOR_H */
|