[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_dsp / framework / itopo / system.c
1 //
2 // See pa/f/s19/i14/system.c
3 //
5 #include <xdc/std.h>
6 #include <xdc/cfg/global.h>
7 #include <xdc/runtime/Log.h>
8 #include <xdc/runtime/System.h>
10 #include <paftyp.h>
11 #include <pafsys_a.h>
12 #include "noasp.h"
13 #include "systemStream.h"
15 const struct {
16 PAF_SST_FxnsMain *main;
17 Int count;
18 struct {
19 PAF_SST_FxnsCompute *compute;
20 PAF_SST_FxnsTransmit *transmit;
21 } sub[5];
22 } systemStreamPrimaryFxns =
23 {
24 &systemStreamMain,
25 5,
26 {
27 { &systemStream1Compute, &systemStream1Transmit, },
28 #ifndef NOBM
29 { &systemStream2Compute, &systemStream2Transmit, },
30 #endif
31 #ifndef NODEM
32 { &systemStream3Compute, &systemStream3Transmit, },
33 #endif
34 #ifdef THX
35 { &systemStream4Compute, &systemStream4Transmit, },
36 #else
37 { NULL, NULL, },
38 #endif
39 { &systemStream5Compute, &systemStream5Transmit, },
40 },
41 };
43 const PAF_SST_Params systemStreamParams_PA[1] =
44 {
45 {
46 1, 0, 1, 1,
47 (const PAF_SST_Fxns *)&systemStreamPrimaryFxns,
48 },
49 };
51 #define systemStreamParams systemStreamParams_PA
53 PAF_SystemStatus systemStreamStatus[1] = {
54 {
55 sizeof (PAF_SystemStatus),
56 PAF_SYS_MODE_ALL,
57 0,
58 PAF_SYS_RECREATIONMODE_AUTO,
59 2 + PAF_SYS_SPEAKERSIZE_SMALL,
60 1 + PAF_SYS_SPEAKERSIZE_SMALL,
61 2 + PAF_SYS_SPEAKERSIZE_SMALL,
62 2 + PAF_SYS_SPEAKERSIZE_SMALL,
63 1 + PAF_SYS_SPEAKERSIZE_BASS,
64 PAF_SYS_CCRTYPE_STANDARD, // channelConfigurationRequestType
65 0, 0, 0, // switchImage, imageNum, imageNumMax
66 0, // Unused
67 0, 0, // cpuLoad, peakCpuLoad
68 0, 0, 0, 0, // speakerWide, speakerHead, unused[2]
69 0, 0, 0, 0, //unused2[4]
70 PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0, 0, 0, 0, 0,
71 },
72 };
74 PAF_SST_Config systemStreamConfig[1] =
75 {
76 {
77 NULL,
78 &systemStreamStatus[0],
79 },
80 };
83 extern Int gSysInit;
85 /*
86 * ======== idleAudioStream ========
87 * IDLE function for audio stream
88 */
89 Void idleAudioStream()
90 {
91 Int32 i;
93 //System_printf("Enter idleAudioStream()\n");
94 //Log_info0("Enter idleAudioStream()");
96 if (gSysInit == 0)
97 return;
99 for (i=0; i < lengthof(systemStreamConfig); i++)
100 systemStreamParams[i].fxns->main
101 (&systemStreamParams[i], &systemStreamConfig[i]);
102 }