comparison src/cs/services/audio/tests/audio_test.c @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 /******************************************************************************/
2 /* */
3 /* File Name: audio_test.c */
4 /* */
5 /* Purpose: This file contains AUDIO test generic functions. */
6 /* */
7 /* Note: None. */
8 /* */
9 /* Version 0.1 */
10 /* */
11 /* Date Modification */
12 /* ------------------------------------------------------------------------ */
13 /* 14 May 2001 Create */
14 /* */
15 /* Author Francois Mazard - Stephanie Gerthoux */
16 /* */
17 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */
18 /******************************************************************************/
19
20 #include "tests/rv/rv_test_filter.h"
21
22
23 #if ((AUDIO_REGR == SW_COMPILED) || (AUDIO_MISC == SW_COMPILED))
24 #ifndef _WINDOWS
25 #include "config/swconfig.cfg"
26 #include "config/sys.cfg"
27 #include "config/chipset.cfg"
28 #endif
29
30 #include "l1_confg.h"
31 #include "rv/rv_general.h"
32 #include "rvm/rvm_gen.h"
33 #include "audio/audio_ffs_i.h"
34 #include "audio/audio_api.h"
35 #include "audio/audio_structs_i.h"
36 #include "audio/audio_var_i.h"
37 #include "audio/audio_messages_i.h"
38 #include "rvf/rvf_target.h"
39 #include "audio/audio_const_i.h"
40 #include "audio/audio_error_hdlr_i.h"
41 #include "audio/audio_macro_i.h"
42 #include "audio/tests/audio_test_regr.h"
43 #ifdef _WINDOWS
44 /* include the usefull L1 header */
45 #define BOOL_FLAG
46 #include "l1_types.h"
47 #include "l1audio_const.h"
48 #include "l1audio_cust.h"
49 #include "l1audio_defty.h"
50 #include "l1audio_msgty.h"
51 #include "l1audio_signa.h"
52 #include "l1_const.h"
53 #include "l1_defty.h"
54 #include "l1_msgty.h"
55 #include "l1_signa.h"
56 #include "l1_varex.h"
57 #endif
58 #include "audio/tests/audio_test.h"
59
60 #include "tests/rv/rv_test.h"
61
62 /* Define the global variables used with AUDIO test level */
63 T_RVF_MB_ID mb_audio_test;
64 T_AUDIO_TEST *p_audio_test;
65
66 /********************************************************************************/
67 /* */
68 /* Function Name: audio_test_set_mb_id */
69 /* */
70 /* Purpose: This function is called to set Audio test MBs IDs and initialize*/
71 /* the pointer to the global variable. */
72 /* */
73 /* Input Parameters: */
74 /* memory bank list */
75 /* */
76 /* Output Parameters: */
77 /* None. */
78 /* */
79 /* Note: */
80 /* None. */
81 /* */
82 /* Revision History: */
83 /* 14 May 2001 Francois Mazard: Creation. */
84 /* */
85 /********************************************************************************/
86 void audio_test_set_mb_id (T_RVF_MB_ID mb_id[])
87 {
88
89 T_RVF_MB_STATUS mb_status;
90
91 /********************** Start audio_test_set_mb_id function ***********************/
92 mb_audio_test = mb_id[0];
93
94 mb_status = rvf_get_buf ( mb_audio_test,
95 sizeof (T_AUDIO_TEST),
96 (T_RVF_BUFFER **) (&p_audio_test));
97 /* If insufficient resources, then report a memory error and abort. */
98 if ((mb_status == RVF_RED))
99 {
100 RV_TEST_TRACE_ERROR ("AUDIO TEST: no enough memory to allocate the test structure");
101 return;
102 }
103
104 /* initilalize the global test variable */
105 p_audio_test->test_addr_id = rvf_get_taskid();
106
107 #ifdef _WINDOWS
108 /* initialize the L1 ndb pointer */
109 l1s_dsp_com.dsp_ndb_ptr = &(p_audio_test->ndb_memory);
110 l1s_dsp_com.dsp_param_ptr = &(p_audio_test->param_memory);
111 #endif
112 }
113
114 /*********************** Stop audio_test_set_mb_id function ***********************/
115
116 #endif /* #if (AUDIO_TEST == SW_COMPILED) */