summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5c4824)
raw | patch | inline | side by side (parent: d5c4824)
author | Frank Livingston <frank-livingston@ti.com> | |
Sun, 4 Sep 2016 21:07:26 +0000 (16:07 -0500) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Sun, 4 Sep 2016 21:07:37 +0000 (16:07 -0500) |
processor_audio_sdk_1_00_00_00/pasdk/test_arm/framework/itopo/params.c | patch | blob | history |
diff --git a/processor_audio_sdk_1_00_00_00/pasdk/test_arm/framework/itopo/params.c b/processor_audio_sdk_1_00_00_00/pasdk/test_arm/framework/itopo/params.c
index 2bbf88696f0a171a6ba0be54f470bc3677de5288..d722c786f1fe90db2053b7d58442cd70de3383e1 100644 (file)
#include "asp1.h"
#include "audioStreamProc_params.h"
#include "asp1.h"
#include "audioStreamProc_params.h"
+#include "audioStreamDecodeProc.h"
//
// Framework Declarations
//
// Framework Declarations
extern const PAF_ASP_AlgKey PAF_ASP_params_decAlgKey;
#endif
extern const PAF_ASP_AlgKey PAF_ASP_params_decAlgKey;
#endif
-#if 0
-const PAF_ASP_AlgKey PAF_ASP_params_encAlgKey =
-{
- PAF_SOURCE_N, // length
- /* Relies on the fact that ACP_SERIES_* != 0 here */
- 0, // PAF_SOURCE_UNKNOWN
- 0, // PAF_SOURCE_NONE
- 0, // PAF_SOURCE_PASS
- 0, // PAF_SOURCE_SNG
- 0, // PAF_SOURCE_AUTO
- 0, // PAF_SOURCE_BITSTREAM
- 0, // PAF_SOURCE_DTSALL
- 0, // PAF_SOURCE_PCMAUTO
- PAF_ASP_ALPHACODE (STD, PCE), // PAF_SOURCE_PCM
- 0, // PAF_SOURCE_PC8
- 0, // PAF_SOURCE_AC3
- 0, // PAF_SOURCE_DTS
- 0, // PAF_SOURCE_AAC
- 0, // PAF_SOURCE_MPEG
- 0, // PAF_SOURCE_DTS12
- 0, // PAF_SOURCE_DTS13
- 0, // PAF_SOURCE_DTS14
- 0, // PAF_SOURCE_DTS16
- 0, // PAF_SOURCE_WMA9PRO
- PAF_ASP_ALPHACODE (STD, MPE), // PAF_SOURCE_MP3
- 0, // PAF_SOURCE_DSD1
- 0, // PAF_SOURCE_DSD2
- 0 // PAF_SOURCE_DSD3
-};
-#endif // FL: #if 0
-
-#if 0
-const PAF_ASP_SioMap PAF_ASP_params_decSioMap =
-{
- PAF_SOURCE_N, // length
- PAF_SOURCE_UNKNOWN, // PAF_SOURCE_UNKNOWN -> ...
- PAF_SOURCE_NONE, // PAF_SOURCE_NONE -> ...
- PAF_SOURCE_PASS, // PAF_SOURCE_PASS -> ...
- PAF_SOURCE_PCM, // PAF_SOURCE_SNG -> PCM
- PAF_SOURCE_AUTO, // PAF_SOURCE_AUTO -> ...
- PAF_SOURCE_BITSTREAM, // PAF_SOURCE_BITSTREAM -> ...
- PAF_SOURCE_DTSALL, // PAF_SOURCE_UNUSED1 -> ...
- PAF_SOURCE_PCMAUTO, // PAF_SOURCE_UNUSED2 -> ...
- PAF_SOURCE_PCM, // PAF_SOURCE_PCM -> ...
- PAF_SOURCE_PC8, // PAF_SOURCE_PC8 -> ...
- PAF_SOURCE_AC3, // PAF_SOURCE_AC3 -> ...
- PAF_SOURCE_DTS, // PAF_SOURCE_DTS -> ...
- PAF_SOURCE_AAC, // PAF_SOURCE_AAC -> ...
- PAF_SOURCE_MPEG, // PAF_SOURCE_MPEG -> ...
- PAF_SOURCE_DTS12, // PAF_SOURCE_DTS12 -> ...
- PAF_SOURCE_DTS13, // PAF_SOURCE_DTS13 -> ...
- PAF_SOURCE_DTS14, // PAF_SOURCE_DTS14 -> ...
- PAF_SOURCE_DTS16, // PAF_SOURCE_DTS16 -> ...
- PAF_SOURCE_WMA9PRO, // PAF_SOURCE_WMA9PRO -> ...
- PAF_SOURCE_MP3, // PAF_SOURCE_MP3 -> ...
- PAF_SOURCE_DSD1, // PAF_SOURCE_DSD1 -> ...
- PAF_SOURCE_DSD2, // PAF_SOURCE_DSD2 -> ...
- PAF_SOURCE_DSD3, // PAF_SOURCE_DSD3 -> ...
- PAF_SOURCE_DDP, // PAF_SOURCE_DDP -> ...
- PAF_SOURCE_DTSHD, // PAF_SOURCE_DTSHD -> ...
- PAF_SOURCE_THD, // PAF_SOURCE_THD -> ...
- PAF_SOURCE_DXP, // PAF_SOURCE_DXP -> ...
-};
-#endif // FL: #if 0
-
#if 1
// FL: This MUST be shared between ARM/DSP.
// FL: extern this, making it look like shared information between ARM/DSP.
#if 1
// FL: This MUST be shared between ARM/DSP.
// FL: extern this, making it look like shared information between ARM/DSP.
extern const SmInt PAF_AST_streamsFromDecodes_std[DECODEN_MAX];
#endif
extern const SmInt PAF_AST_streamsFromDecodes_std[DECODEN_MAX];
#endif
-#if 0
-const SmInt PAF_AST_streamsFromEncodes_std[ENCODEN_MAX] =
-{
- 0, 1, 2,
-};
-#endif
-
const SmInt PAF_AST_inputsFromDecodes_std[DECODEN_MAX] =
{
0, 1, 2,
};
const SmInt PAF_AST_inputsFromDecodes_std[DECODEN_MAX] =
{
0, 1, 2,
};
-#if 0
-extern const SmInt PAF_AST_outputsFromEncodes_std[ENCODEN_MAX];
-#ifndef __TI_EABI__
-asm ("_PAF_AST_outputsFromEncodes_std .set _PAF_AST_inputsFromDecodes_std");
-#else
-asm ("PAF_AST_outputsFromEncodes_std .set PAF_AST_inputsFromDecodes_std");
-#endif
-
-#endif // FL: #if 0
-
-#if 0
-//
-// Setting of audio stream order
-//
-
-const SmInt PAF_AST_streamOrder[1] =
-{
- 0,
-};
-#endif // FL: #if 0
-
//
// Audio Framework Initialization Function Table Declarations
//
// External declarations to patched IROM provide standard functionality.
//
//
// Audio Framework Initialization Function Table Declarations
//
// External declarations to patched IROM provide standard functionality.
//
-extern const PAF_AST_Fxns PAF_ASDT_params_fxns;
-
-#if 0
-//
-// Audio Framework Status Initialization Declarations
-//
-// External declarations to patched IROM provide standard functionality.
-//
-
-const PAF_InpBufStatus PAF_AST_params_inpBufStatus =
-{
- sizeof (PAF_InpBufStatus), // size
- 0, // mode
- 0, // sioSelect
- 0x80, // lockOverride = none
- 0, // unused
- PAF_SAMPLERATE_UNKNOWN, // sampleRateOverride
- PAF_SAMPLERATE_NONE, // sampleRateData
- PAF_SAMPLERATE_NONE, // sampleRateMeasured
- PAF_SAMPLERATE_UNKNOWN, // sampleRateStatus
- PAF_IEC_AUDIOMODE_UNKNOWN, // nonaudio
- PAF_IEC_PREEMPHASIS_UNKNOWN, // emphasisData
- 0, // emphasisOverride
- PAF_IEC_PREEMPHASIS_NO, // emphasisStatus
- 0, // lock
- 0, // scanAtHighSampleRateMode
- 0, // zeroRun
- 0, // unused2[1] // FL: rateTrackMode
- 24, // precisionDefault
- -1, // precisionDetect
- 0, // precisionOverride
- 0, // precisionInput
- 100, // zeroRunTrigger
- 100, // zeroRunRestart
- 2048, // unknownTimeout
- 0, // lastFrameMask
- 0, // lastFrameFlag
- 0, // reportDTS16AsDTSForLargeSampleRate
- 0, 0 // reserved
-};
-#endif // FL: #if 0
+extern const PAF_ASDT_Fxns PAF_ASDT_params_fxns;
#if 1
// FL: This MUST be shared between ARM/DSP.
#if 1
// FL: This MUST be shared between ARM/DSP.
//extern const PAF_DecodeStatus *const PAF_AST_params_decodeStatus[];
#endif // FL: #if 0
//extern const PAF_DecodeStatus *const PAF_AST_params_decodeStatus[];
#endif // FL: #if 0
-#if 0
-const PAF_OutBufStatus PAF_AST_params_outBufStatus =
-{
- sizeof (PAF_OutBufStatus), // size
- 1, // mode
- 0, // sioSelect
- PAF_SAMPLERATE_UNKNOWN, // sampleRate
- 0, // audio
- PAF_OB_CLOCK_INTERNAL, // clock
- PAF_OB_FLUSH_ENABLE, // flush
- 0, // unused[2] // FL: rateTrackMode
- 0, // PAF_OB_MARKER_ENABLED // FL: markerMode
- 0 // FL: maxNumBufOverride
- // FL: (*** ?) missing init. values for numBufOverride[PAF_SOURCE_N]
-};
-#endif // FL: #if 0
-
-#if 0
-const PAF_EncodeStatus PAF_AST_params_encodeStatus_primary =
-{
- sizeof (PAF_EncodeStatus), // size
- 1, // mode
- 0, // unused1
- PAF_SAMPLERATE_UNKNOWN, // sampleRate
- 0, // channelCount
- 0, 0, 0, 0, //Unused
- 0, 0, 0, 0, //Unused
- 0, 0, 0, 0, //Unused
- 0, 0, 0, 0, //Unused
- 0, 0, 0, 0, //Unused
- 0, // frameLength
- 0, // encBypass
- PAF_SOURCE_PCM, // select
- PAF_CC_SAT_SURROUND4, PAF_CC_SUB_ONE, PAF_CC_AUX_SURROUND4_UNKNOWN, 0,0,0,0,0,
- // channelConfigurationRequest.full
- PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0,0,0,0,0,
- // channelConfigurationStream.full
- PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0,0,0,0,0,
- // channelConfigurationEncode.full
- 0, 0, 0, 0, 0, 0, 0, 0, //Unused
- -3, // channelMap.from[0]
- -3, // channelMap.from[1]
- -3, // channelMap.from[2]
- -3, // channelMap.from[3]
- -3, // channelMap.from[4]
- -3, // channelMap.from[5]
- -3, // channelMap.from[6]
- -3, // channelMap.from[7]
- -3, // channelMap.from[8]
- -3, // channelMap.from[9]
- -3, // channelMap.from[10]
- -3, // channelMap.from[11]
- -3, // channelMap.from[12]
- -3, // channelMap.from[13]
- -3, // channelMap.from[14]
- -3, // channelMap.from[15]
- -3, // channelMap.to[0]
- -3, // channelMap.to[1]
- -3, // channelMap.to[2]
- -3, // channelMap.to[3]
- -3, // channelMap.to[4]
- -3, // channelMap.to[5]
- -3, // channelMap.to[6]
- -3, // channelMap.to[7]
- -3, // channelMap.to[8]
- -3, // channelMap.to[9]
- -3, // channelMap.to[10]
- -3, // channelMap.to[11]
- -3, // channelMap.to[12]
- -3, // channelMap.to[13]
- -3, // channelMap.to[14]
- -3, // channelMap.to[15]
- -3, // channelMap.from[0]
- -3, // channelMap.from[1]
- -3, // channelMap.from[2]
- -3, // channelMap.from[3]
- -3, // channelMap.from[4]
- -3, // channelMap.from[5]
- -3, // channelMap.from[6]
- -3, // channelMap.from[7]
- -3, // channelMap.from[8]
- -3, // channelMap.from[9]
- -3, // channelMap.from[10]
- -3, // channelMap.from[11]
- -3, // channelMap.from[12]
- -3, // channelMap.from[13]
- -3, // channelMap.from[14]
- -3, // channelMap.from[15]
- -3, // channelMap.to[0]
- -3, // channelMap.to[1]
- -3, // channelMap.to[2]
- -3, // channelMap.to[3]
- -3, // channelMap.to[4]
- -3, // channelMap.to[5]
- -3, // channelMap.to[6]
- -3, // channelMap.to[7]
- -3, // channelMap.to[8]
- -3, // channelMap.to[9]
- -3, // channelMap.to[10]
- -3, // channelMap.to[11]
- -3, // channelMap.to[12]
- -3, // channelMap.to[13]
- -3, // channelMap.to[14]
- -3, // channelMap.to[15]
- 0, // programFormat.mask
- 0, // programFormat.form
- 0, // sampleProcess[0]
-};
-#endif // FL: #if 0
-
-#if 0
-const PAF_EncodeStatus *const PAF_AST_params_encodeStatus[] =
-{
- &PAF_AST_params_encodeStatus_primary,
-};
-#endif // FL: #if 0
-
-#if 0
-const PAF_VolumeStatus PAF_AST_params_volumeStatus =
-{
- sizeof (PAF_VolumeStatus), // size
- 1, // mode
- PAF_MAXNUMCHAN, // channelCount
- 0x0f, // implementation
- 0, // unused1
- 50, // rampTime: 50 msec/dB (20 dB/sec)
- 0, // unused2
- 0, // unused3
- -2 * 20, 0, 0, 0, // master
- -2 * 0, 0, 0, 0, // trim
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, // trim - upper16
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
- -2 * 0, 0, 0, 0, //
-
-};
-#endif // FL: #if 0
-
//
// Common Space Parameter Declarations and Definitions
//
//
// Common Space Parameter Declarations and Definitions
//
//extern int SDRAM;
//extern int L3RAM;
//extern int SDRAM;
//extern int L3RAM;
-#if 0
-// .............................................................................
-// DIB memory requirements
-
-// primary input
-const IALG_MemRec inpMemTabPrimary[] =
-{
- // SDRAM circular buffer
- // 2 buffers * 256 samples/buffer * 8 words/sample * 3 bytes/word
- {
- 3 * 60 * 1024, // size
- //180 * 1024, // size
- //6 * 60 * 1024, // size
- 128, // alignment
- IALG_SARAM1, //IALG_EXTERNAL, // space
- IALG_PERSIST, // attrs
- NULL, // base
- },
-
- // IRAM scratch memory for autodetection and stereo PCM input
- // High watermark needs are set by the latter:
- // double buffer stereo 32bit PCM input 512 max frame size
- // 1 buffers * 512 samples/buffer * 2 words/sample * 4 bytes/word
- {
- 8 * 1024, // size
- 128, // alignment
- IALG_SARAM, // space
- IALG_SCRATCH, // attrs
- NULL, // base
- }
-};
-
-const PAF_SIO_IALG_Params inpSioAlgParamsPrimary =
-{
- 2,
- inpMemTabPrimary
-};
-
-const PAF_ASP_LinkInit inpLinkInitPrimary[] =
-{
- PAF_ASP_LINKINITPARAMS (STD, IB, TIH, &inpSioAlgParamsPrimary),
- PAF_ASP_LINKNONE
-};
-
-const PAF_ASP_LinkInit *const inpLinkInit[] =
-{
- inpLinkInitPrimary
-};
-
-// .............................................................................
-// DOB memory requirements
-
-// primary output
-const IALG_MemRec outMemTabPrimary[] =
-{
- // SDRAM buffer
- // 4 buffers * 256 samples * 32 ch * 4 bytes
- {
- 4 * 256 * 32 * 4, // size: note:
- //6 * 256 * 32 * 4, // size: note:
- //16 * 256 * 32 * 4, // size: note:
- 128, // alignment
- IALG_EXTERNAL, // space
- IALG_PERSIST, // attrs
- NULL, // base
- }
-};
-
-
-const PAF_SIO_IALG_Params outSioAlgParamsPrimary =
-{
- 1,
- outMemTabPrimary
-};
-
-const PAF_ASP_LinkInit outLinkInitPrimary[] =
-{
- PAF_ASP_LINKINITPARAMS (STD, OB, TIH, &outSioAlgParamsPrimary),
- PAF_ASP_LINKNONE
-};
-
-const PAF_ASP_LinkInit * const outLinkInit[] =
-{
- outLinkInitPrimary,
-};
-
-
-// .............................................................................
-// sourceProgram mapped to DOB num of buffers
-const PAF_ASP_outNumBufMap outPrimaryNumBufMap =
-{
- 4, // maxNumBuf
-// 6, // maxNumBuf
-// 16, // maxNumBuf
- PAF_SOURCE_N, // length
- 0, // PAF_SOURCE_UNKNOWN
- 0, // PAF_SOURCE_NONE
- 2, // PAF_SOURCE_PASS
- 2, // PAF_SOURCE_SNG
- 0, // PAF_SOURCE_AUTO
- 0, // PAF_SOURCE_BITSTREAM
- 0, // PAF_SOURCE_DTSALL
- 0, // PAF_SOURCE_PCMAUTO
- 2, // PAF_SOURCE_PCM
- 0, // PAF_SOURCE_PC8
- 2, // PAF_SOURCE_AC3
- 2, // PAF_SOURCE_DTS
- 2, // PAF_SOURCE_AAC
- 0, // PAF_SOURCE_MPEG
- 2, // PAF_SOURCE_DTS12
- 2, // PAF_SOURCE_DTS13
- 2, // PAF_SOURCE_DTS14
- 2, // PAF_SOURCE_DTS16
- 0, // PAF_SOURCE_WMA9PRO
- 0, // PAF_SOURCE_MP3
- 2, // PAF_SOURCE_DSD1,
- 2, // PAF_SOURCE_DSD2,
- 2, // PAF_SOURCE_DSD3,
- 4, // PAF_SOURCE_DDP
- 4, // PAF_SOURCE_DTSHD
- 4, // PAF_SOURCE_THD
-// 6, // PAF_SOURCE_THD
-// 16, // PAF_SOURCE_THD
- 4, // PAF_SOURCE_DXP
-
-};
-
-const PAF_ASP_outNumBufMap *const outNumBufMap[] =
-{
- &outPrimaryNumBufMap,
-};
-#endif // FL: #if 0
-
// .............................................................................
const PAF_MetadataBufStatus PAF_ASDT_params_MetadataBufStatus[] =
{
// .............................................................................
const PAF_MetadataBufStatus PAF_ASDT_params_MetadataBufStatus[] =
{
// Global definition in RAM provides standard & non-standard functionality.
//
// Global definition in RAM provides standard & non-standard functionality.
//
-const PAF_AST_Params asdp_params_PAi =
+const PAF_ASDT_Params asdp_params_PAi =
{
&PAF_ASDT_params_fxns, // fxns
{ // zone
0, // master
{
&PAF_ASDT_params_fxns, // fxns
{ // zone
0, // master
- 1, // inputs
- 0, // input1
- 1, // inputN
1, // decodes
0, // decode1
1, // decodeN
1, // streams
1, // decodes
0, // decode1
1, // decodeN
1, // streams
- 0, // stream1 /* unused */
- 1, // streamN /* unused */
- 1, // encodes
- 0, // encode1
- 1, // encodeN
- 1, // outputs
- 0, // output1
- 1, // outputN
},
PAF_AST_inputsFromDecodes_std,
},
PAF_AST_inputsFromDecodes_std,
- NULL, //PAF_AST_outputsFromEncodes_std,
{ // heap
&gPafHeapIdInt1, //&IRAM // pIntern
&gPafHeapIdExt, //&SDRAM, // pExtern
{ // heap
&gPafHeapIdInt1, //&IRAM // pIntern
&gPafHeapIdExt, //&SDRAM, // pExtern
- NULL, //&IRAM, // pInpbuf
- NULL, //&IRAM, // pOutbuf
&gPafHeapIdInt1, //&IRAM, // pFrmbuf
&gPafHeapIdInt1, //&IRAM, // pFrmbuf
- &gPafHeapIdInt1, //&L3RAM, // pIntern1
+ &gPafHeapIdInt1, //&L3RAM, // pIntern1
1, // clear
},
{ // common
params_memspace_PAi_Slave, // space
},
1, // clear
},
{ // common
params_memspace_PAi_Slave, // space
},
- NULL, // z_rx_bufsiz
- NULL, // z_tx_bufsiz
PAF_AST_params_numchan, // z_numchan
256, // framelength
&PAF_ASDT_params_audioFrameFunctions, // pAudioFrameFunctions
&PAF_ASP_chainFxns, // pChainFxns
PAF_AST_params_numchan, // z_numchan
256, // framelength
&PAF_ASDT_params_audioFrameFunctions, // pAudioFrameFunctions
&PAF_ASP_chainFxns, // pChainFxns
- NULL, //&PAF_AST_params_inpBufStatus, // pInpBufStatus
PAF_ASDT_params_decodeStatus, // z_pDecodeStatus
PAF_ASDT_params_decodeStatus, // z_pDecodeStatus
- NULL, //&PAF_AST_params_outBufStatus, // pOutBufStatus
- NULL, //PAF_AST_params_encodeStatus, // z_pEncodeStatus
- NULL, //&PAF_AST_params_volumeStatus, // pVolumeStatus
&PAF_ASP_params_decAlgKey, // pDecAlgKey
&PAF_ASP_params_decAlgKey, // pDecAlgKey
- NULL, //&PAF_ASP_params_encAlgKey, // pEncAlgKey
- NULL, //&PAF_ASP_params_decSioMap, // pDecSioMap
PAF_AST_streamsFromDecodes_std, // streamsFromDecodes
PAF_AST_streamsFromDecodes_std, // streamsFromDecodes
- NULL, //PAF_AST_streamsFromEncodes_std, // streamsFromEncodes
1536, // maxFramelength
1536, // maxFramelength
- NULL, //PAF_AST_streamOrder, // streamOrder
- NULL, //inpLinkInit, // i_inpLinkInit
- NULL, //outLinkInit, // i_outLinkInit
- NULL, //outNumBufMap, // outNumBufMap // FL: poutNumBufMap
PAF_ASDT_params_MetadataBufStatus, //metadata buffer status
PAF_ASDT_params_MetadataBufStatus, //metadata buffer status
- NULL, //PAF_AST_params_AudioFrameBufStatus //Audio frame buffer status
+ NULL //PAF_AST_params_AudioFrameBufStatus //Audio frame buffer status
};
// EOF
};
// EOF