index 2303d6960ed7e482f6dcf0baac43eb62d92997fb..48b8f7b6f3147d79ed30fc947d9e821975314118 100644 (file)
#define ASP_DECOP_CB_MAX_NUM_PCM_CH_MAT ( 32 ) // decoder output circular buffer maximum number audio PCM channels for MAT
#define ASP_DECOP_CB_MAX_PCM_FRAME_LEN_48kMAT ( 4*256 ) // decoder output circular buffer maximum PCM frame length at 48kHz sampling rate
+// TODO: update for dts
+#define ASP_DECOP_CB_MAX_NUM_PCM_CH_DTS ( 32 ) // decoder output circular buffer maximum number audio PCM channels for MAT
+#define ASP_DECOP_CB_MAX_PCM_FRAME_LEN_48kDTS ( 16*256 ) // decoder output circular buffer maximum PCM frame length at 48kHz sampling rate
#define ASP_DECOP_CB_PCM_BUF_SZ ( ASP_DECOP_CB_MAX_NUM_PCM_CH * ASP_DECOP_CB_MAX_NUM_PCM_FRAMES * ASP_DECOP_CB_MAX_PCM_FRAME_LEN )
#define ASP_DECOP_CB_PCM_BUF_SZ_32CH48kMAT ( ASP_DECOP_CB_MAX_NUM_PCM_CH_MAT * ASP_DECOP_CB_MAX_NUM_PCM_FRAMES * ASP_DECOP_CB_MAX_PCM_FRAME_LEN_48kMAT )
//#define ASP_DECOP_CB_INIT_LAG_THD ( 5 ) // 5*20ms = 100 ms, For the worst case of 100 ms
#define ASP_DECOP_CB_TARGET_ND_SAMPS_48kTHD ( 3504 )//( 2224 ) // THD target Nominal Delay in number of samples, fs=48 kHz
+// DTS - TODO: to update for DTS
+#define ASP_DECOP_CB_MAX_NUM_AF_DTS ( 10 )
+#if (ASP_DECOP_CB_MAX_NUM_AF_DTS > ASP_DECOP_CB_MAX_NUM_AF)
+ #error "CB Max AF DTS error"
+#endif
+#define ASP_DECOP_CB_INIT_LAG_DTS ( 2 )
+#define ASP_DECOP_CB_INIT_WRTIDX_DTS ( 3 )
+#define ASP_DECOP_CB_INIT_RDIDX_DTS ( 0 )
+
#define ASP_DECODE_CB_GATE_NAME ( "AspDecOpCbGate" ) // name of GateMP used for circular buffer shared memory protection
#define ASP_DECODE_CB_GATE_REGION_ID ( 0 ) // IPC shared region ID used for CB gate allocation