comparison src/cs/services/Audio/tests/audio_test_misc.c @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 /********************************************************************************/
2 /* */
3 /* File Name: audio_test_misc.c */
4 /* */
5 /* Purpose: This file gathers misc tests for AUDIO. */
6 /* */
7 /* Note: None. */
8 /* */
9 /* Version 0.1 */
10 /* */
11 /* Date Modification */
12 /* ----------------------------------------------------------------------------*/
13 /* 11 July 2001 Create */
14 /* */
15 /* Author Francois Mazard - Stephanie Gerthoux */
16 /* */
17 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */
18 /********************************************************************************/
19
20 /********************************************************************************/
21 /* */
22 /* Include files used for Audio riviera testing. */
23 /* */
24 /********************************************************************************/
25
26 #include "rvf/rvf_api.h"
27 #include "tests/rv/rv_test_filter.h"
28
29 #if (AUDIO_MISC == SW_COMPILED)
30 #ifndef _WINDOWS
31 #include "config/swconfig.cfg"
32 #include "config/sys.cfg"
33 #include "config/chipset.cfg"
34 #endif
35
36 #include "l1_confg.h"
37 #include "rv/rv_general.h"
38 #include "rvm/rvm_gen.h"
39 #include "audio/tests/audio_test_regr.h"
40 #include "audio/tests/audio_test_misc.h"
41 #include "audio/audio_ffs_i.h"
42 #include "audio/audio_api.h"
43 #include "audio/audio_structs_i.h"
44 #include "audio/audio_var_i.h"
45 #include "audio/audio_messages_i.h"
46 #include "rvf/rvf_target.h"
47 #include "audio/audio_const_i.h"
48 #include "audio/audio_error_hdlr_i.h"
49 #ifdef _WINDOWS
50 /* include the usefull L1 header */
51 #define BOOL_FLAG
52 #include "l1_types.h"
53 #include "l1audio_const.h"
54 #include "l1audio_cust.h"
55 #include "l1audio_defty.h"
56 #include "l1audio_msgty.h"
57 #include "l1audio_signa.h"
58 #include "l1_const.h"
59 #include "l1_defty.h"
60 #include "l1_msgty.h"
61 #include "l1_signa.h"
62 #include "l1_varex.h"
63 #endif
64 #include "audio/tests/audio_test.h"
65
66
67
68
69 /********************************************************************************/
70 /* */
71 /* Function Name: audio_test_misc */
72 /* */
73 /* Purpose: This function executes the AUDIO misc tests. */
74 /* */
75 /* Input Parameters: */
76 /* test number. */
77 /* */
78 /* Output Parameters: */
79 /* None. */
80 /* */
81 /* Note: */
82 /* None. */
83 /* */
84 /* Revision History: */
85 /* 11 July 2001 Stephanie Gerthoux: Creation. */
86 /* */
87 /********************************************************************************/
88
89 T_RV_MISC_RET audio_test_misc (T_RV_MISC_TEST_NBR test_number)
90 {
91
92 T_RV_MISC_ERR_TYPE error_type = NO_ERR;
93 T_RV_MISC_RET test_verdict = TEST_PASSED;
94
95
96 /************************* Start audio_test_misc function *************************/
97
98 RV_TEST_TRACE_HIGH ("**************** START AUDIO MISC ****************");
99
100 /************************************************************************/
101 /* */
102 /* Memory dump -> check memory used before testing. */
103 /* Task dump -> check task stack used before testing. */
104 /* */
105 /************************************************************************/
106 rvf_dump_mem ();
107 rvf_dump_tasks();
108
109 switch(test_number)
110 {
111 #if (KEYBEEP)
112 case 1:
113 {
114 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 1: KB+auto stop");
115 test_verdict = audio_regr_test_1 (&error_type);
116 break;
117 }
118 case 2:
119 {
120 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 2: KB+requested stop");
121 test_verdict = audio_regr_test_2 (&error_type);
122 break;
123 }
124 case 3:
125 {
126 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 3: KB+requested stop before KB start");
127 test_verdict = audio_regr_test_3 (&error_type);
128 break;
129 }
130 case 4:
131 {
132 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 4: KB+2 start");
133 test_verdict = audio_regr_test_4 (&error_type);
134 break;
135 }
136 case 5:
137 {
138 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 5: KB+2 stop");
139 test_verdict = audio_regr_test_5 (&error_type);
140 break;
141 }
142 case 6:
143 {
144 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 6: KB+check error in parameters");
145 test_verdict = audio_regr_test_6 (&error_type);
146 break;
147 }
148 case 7:
149 {
150 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 7: KB+stop after a L1 stop");
151 test_verdict = audio_regr_test_7 (&error_type);
152 break;
153 }
154 case 8:
155 {
156 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 8: KB+callback func");
157 test_verdict = audio_regr_test_8 (&error_type);
158 break;
159 }
160 #endif
161 #if (TONE)
162 case 10:
163 {
164 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 10: TONE+auto stop");
165 test_verdict = audio_regr_test_10 (&error_type);
166 break;
167 }
168 case 11:
169 {
170 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 11: TONE+resquested stop");
171 test_verdict = audio_regr_test_11 (&error_type);
172 break;
173 }
174 case 12:
175 {
176 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 12: TONE+resquested stop before TONE start");
177 test_verdict = audio_regr_test_12 (&error_type);
178 break;
179 }
180 case 13:
181 {
182 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 13: TONE+2 start");
183 test_verdict = audio_regr_test_13 (&error_type);
184 break;
185 }
186 case 14:
187 {
188 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 14: TONE+2 stop");
189 test_verdict = audio_regr_test_14 (&error_type);
190 break;
191 }
192 case 15:
193 {
194 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 15: TONE+Check parameters");
195 test_verdict = audio_regr_test_15 (&error_type);
196 break;
197 }
198 case 16:
199 {
200 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 16: TONE+requested stop after L1 stop");
201 test_verdict = audio_regr_test_16 (&error_type);
202 break;
203 }
204 case 17:
205 {
206 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 17: TONE+callback func");
207 test_verdict = audio_regr_test_17 (&error_type);
208 break;
209 }
210 #endif
211 #if (MELODY_E1)
212 case 18:
213 {
214 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 18: MELODY E1+Check parameters");
215 test_verdict = audio_regr_test_18 (&error_type);
216 break;
217 }
218
219 case 20:
220 {
221 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 20:MELODY_E1+auto stop");
222 test_verdict = audio_regr_test_20 (&error_type);
223 break;
224 }
225 case 21:
226 {
227 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 21: MELODY_E1+resquested stop");
228 test_verdict = audio_regr_test_21 (&error_type);
229 break;
230 }
231 case 22:
232 {
233 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 22: MELODY_E1+resquested stop before L1 start");
234 test_verdict = audio_regr_test_22 (&error_type);
235 break;
236 }
237 case 23:
238 {
239 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 23: MELODY_E1+resquested stop before FFS initialization");
240 test_verdict = audio_regr_test_23 (&error_type);
241 break;
242 }
243 case 24:
244 {
245 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 24: MELODY_E1+2 start");
246 test_verdict = audio_regr_test_24 (&error_type);
247 break;
248 }
249 case 25:
250 {
251 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 25: MELODY_E1+2 stop");
252 test_verdict = audio_regr_test_25 (&error_type);
253 break;
254 }
255 case 26:
256 {
257 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 26: MELODY_E1+stop after a L1 stop");
258 test_verdict = audio_regr_test_26 (&error_type);
259 break;
260 }
261 case 27:
262 {
263 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 27: MELODY_E1+callback func");
264 test_verdict = audio_regr_test_27 (&error_type);
265 break;
266 }
267 case 28:
268 {
269 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 28: MELODY_E1+3 start and 1 unexpected stop");
270 test_verdict = audio_regr_test_28 (&error_type);
271 break;
272 }
273 case 29:
274 {
275 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 29: MELODY_E1+2 start in normal mode");
276 test_verdict = audio_regr_test_29 (&error_type);
277 break;
278 }
279 case 39:
280 {
281 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 39: MELODY_E1+ start and stop in loopback mode");
282 test_verdict = audio_regr_test_39 (&error_type);
283 break;
284 }
285 #endif
286 #if (VOICE_MEMO)
287 case 30:
288 {
289 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 30: VOICE_MEMO_PLAY + auto stop");
290 test_verdict = audio_regr_test_30 (&error_type);
291 break;
292 }
293 case 31:
294 {
295 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 31: VOICE_MEMO_PLAY + resquested stop");
296 test_verdict = audio_regr_test_31 (&error_type);
297 break;
298 }
299 case 32:
300 {
301 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 32: VOICE_MEMO_PLAY+resquested stop before L1 start");
302 test_verdict = audio_regr_test_32 (&error_type);
303 break;
304 }
305 case 33:
306 {
307 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 33: VOICE_MEMO_PLAY+resquested stop before FFS initialization");
308 test_verdict = audio_regr_test_33 (&error_type);
309 break;
310 }
311 case 34:
312 {
313 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 34: VOICE_MEMO_PLAY+2 start");
314 test_verdict = audio_regr_test_34 (&error_type);
315 break;
316 }
317 case 35:
318 {
319 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 35: VOICE_MEMO_PLAY+2 stop");
320 test_verdict = audio_regr_test_35 (&error_type);
321 break;
322 }
323 case 36:
324 {
325 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 36: VOICE_MEMO_PLAY+stop after a L1 stop");
326 test_verdict = audio_regr_test_36 (&error_type);
327 break;
328 }
329 case 37:
330 {
331 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 37: VOICE_MEMO_PLAY+callback func");
332 test_verdict = audio_regr_test_37 (&error_type);
333 break;
334 }
335 case 38:
336 {
337 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 38: VOICE_MEMO_PLAY +Check parameters");
338 test_verdict = audio_regr_test_38 (&error_type);
339 break;
340 }
341 case 59:
342 {
343 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 59: VOICE_MEMO_PLAY long duration 150s+ audio stop");
344 test_verdict = audio_regr_test_59 (&error_type);
345 break;
346 }
347 case 40:
348 {
349 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 40: VOICE_MEMO_RECORD + auto stop");
350 test_verdict = audio_regr_test_40 (&error_type);
351 break;
352 }
353 case 41:
354 {
355 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 41: VOICE_MEMO_RECORD + resquested stop");
356 test_verdict = audio_regr_test_41 (&error_type);
357 break;
358 }
359 case 42:
360 {
361 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 42: VOICE_MEMO_RECORD+resquested stop before L1 start");
362 test_verdict = audio_regr_test_42 (&error_type);
363 break;
364 }
365 case 43:
366 {
367 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 43: VOICE_MEMO_RECORD +resquested stop before FFS initialization");
368 test_verdict = audio_regr_test_43 (&error_type);
369 break;
370 }
371 case 44:
372 {
373 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 44: VOICE_MEMO_RECORD+2 start");
374 test_verdict = audio_regr_test_44 (&error_type);
375 break;
376 }
377 case 45:
378 {
379 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 45: VOICE_MEMO_RECORD+2 stop");
380 test_verdict = audio_regr_test_45 (&error_type);
381 break;
382 }
383 case 46:
384 {
385 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 46: VOICE_MEMO_RECORD+stop after a L1 stop");
386 test_verdict = audio_regr_test_46 (&error_type);
387 break;
388 }
389 case 47:
390 {
391 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 47: VOICE_MEMO_RECORD+callback func");
392 test_verdict = audio_regr_test_47 (&error_type);
393 break;
394 }
395 case 48:
396 {
397 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 48: VOICE_MEMO_RECORD+Check parameters");
398 test_verdict = audio_regr_test_48 (&error_type);
399 break;
400 }
401 case 69:
402 {
403 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 69: VOICE_MEMO_RECORD long duration 150s+ audio stop");
404 test_verdict = audio_regr_test_69 (&error_type);
405 break;
406 }
407 #endif
408 case 50:
409 {
410 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 50: Audio mode full access write and read");
411 test_verdict = audio_regr_test_50 (&error_type);
412 break;
413 }
414 case 51:
415 {
416 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 51: Audio mode save");
417 test_verdict = audio_regr_test_51 (&error_type);
418 break;
419 }
420 case 52:
421 {
422 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 52: Audio mode load");
423 test_verdict = audio_regr_test_52 (&error_type);
424 break;
425 }
426 case 53:
427 {
428 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 53: Audio mode speaker volume");
429 test_verdict = audio_regr_test_53 (&error_type);
430 break;
431 }
432 case 54:
433 {
434 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 54: Audio mode path test");
435 test_verdict = audio_regr_test_54 (&error_type);
436 break;
437 }
438 #if (TONE) && (MELODY_E1)
439 case 60:
440 {
441 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 60: Audio compatibilities: Tone + Melody E1");
442 test_verdict = audio_regr_test_60 (&error_type);
443 break;
444 }
445 #endif
446 #if (SPEECH_RECO) && (KEYBEEP)
447 case 61:
448 {
449 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 61: Audio compatibilities: Speech reco + Keybeep");
450 test_verdict = audio_regr_test_61 (&error_type);
451 break;
452 }
453 #endif
454 #if (SPEECH_RECO)
455 case 70:
456 {
457 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 70: SR_ENROLL without stop");
458 test_verdict = audio_regr_test_70 (&error_type);
459 break;
460 }
461 case 71:
462 {
463 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 71: SR_ENROLL + stop");
464 test_verdict = audio_regr_test_71 (&error_type);
465 break;
466 }
467 case 72:
468 {
469 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 72: SR_ENROLL+requested stop before start");
470 test_verdict = audio_regr_test_72 (&error_type);
471 break;
472 }
473 case 73:
474 {
475 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 73: SR_ENROLL+ 2 start");
476 test_verdict = audio_regr_test_73 (&error_type);
477 break;
478 }
479 case 74:
480 {
481 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 74: SR_ENROLL+ 2 stop");
482 test_verdict = audio_regr_test_74 (&error_type);
483 break;
484 }
485 case 75:
486 {
487 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 75: SR_ENROLL+check parameters");
488 test_verdict = audio_regr_test_75 (&error_type);
489 break;
490 }
491 case 76:
492 {
493 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 76: SR_ENROLL+ stop after the end");
494 test_verdict = audio_regr_test_76 (&error_type);
495 break;
496 }
497 case 77:
498 {
499 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 77: SR_ENROLL+ callback");
500 test_verdict = audio_regr_test_77 (&error_type);
501 break;
502 }
503 case 78:
504 {
505 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 78: SR_ENROLL+ 6 enroll");
506 test_verdict = audio_regr_test_78 (&error_type);
507 break;
508 }
509 case 80:
510 {
511 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 80: SR_UPDATE without stop");
512 test_verdict = audio_regr_test_80 (&error_type);
513 break;
514 }
515 case 81:
516 {
517 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 81: SR_UPDATE + stop");
518 test_verdict = audio_regr_test_81 (&error_type);
519 break;
520 }
521 case 82:
522 {
523 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 82: SR_UPDATE+requested stop before start");
524 test_verdict = audio_regr_test_82 (&error_type);
525 break;
526 }
527 case 83:
528 {
529 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 83: SR_UPDATE+ 2 start");
530 test_verdict = audio_regr_test_83 (&error_type);
531 break;
532 }
533 case 84:
534 {
535 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 84: SR_UPDATE+ 2 stop");
536 test_verdict = audio_regr_test_84 (&error_type);
537 break;
538 }
539 case 85:
540 {
541 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 85: SR_UPDATE+check parameters");
542 test_verdict = audio_regr_test_85 (&error_type);
543 break;
544 }
545 case 86:
546 {
547 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 86: SR_UPDATE+ stop after the end");
548 test_verdict = audio_regr_test_86 (&error_type);
549 break;
550 }
551 case 87:
552 {
553 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 87: SR_UPDATE+ callback");
554 test_verdict = audio_regr_test_87 (&error_type);
555 break;
556 }
557 case 88:
558 {
559 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 88: SR_UPDATE+ 6 update");
560 test_verdict = audio_regr_test_88 (&error_type);
561 break;
562 }
563 case 90:
564 {
565 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 90: SR_UPDATE_CHECK without stop");
566 test_verdict = audio_regr_test_90 (&error_type);
567 break;
568 }
569 case 91:
570 {
571 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 91: SR_UPDATE_CHECK + stop");
572 test_verdict = audio_regr_test_91 (&error_type);
573 break;
574 }
575 case 92:
576 {
577 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 92: SR_UPDATE_CHECK+requested stop before start");
578 test_verdict = audio_regr_test_92 (&error_type);
579 break;
580 }
581 case 93:
582 {
583 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 93: SR_UPDATE_CHECK+ 2 start");
584 test_verdict = audio_regr_test_93 (&error_type);
585 break;
586 }
587 case 94:
588 {
589 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 94: SR_UPDATE_CHECK+ 2 stop");
590 test_verdict = audio_regr_test_94 (&error_type);
591 break;
592 }
593 case 95:
594 {
595 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 95: SR_UPDATE_CHECK+check parameters");
596 test_verdict = audio_regr_test_95 (&error_type);
597 break;
598 }
599 case 96:
600 {
601 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 96: SR_UPDATE_CHECK+ stop after the end");
602 test_verdict = audio_regr_test_96 (&error_type);
603 break;
604 }
605 case 97:
606 {
607 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 97: SR_UPDATE_CHECK+ callback");
608 test_verdict = audio_regr_test_97 (&error_type);
609 break;
610 }
611 case 98:
612 {
613 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 98: SR_UPDATE_CHECK+ 6 update");
614 test_verdict = audio_regr_test_98 (&error_type);
615 break;
616 }
617 case 100:
618 {
619 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 100: SR_RECO without stop");
620 test_verdict = audio_regr_test_100 (&error_type);
621 break;
622 }
623 case 101:
624 {
625 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 101: SR_RECO + stop");
626 test_verdict = audio_regr_test_101 (&error_type);
627 break;
628 }
629 case 102:
630 {
631 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 102: SR_RECO+requested stop before start");
632 test_verdict = audio_regr_test_102 (&error_type);
633 break;
634 }
635 case 103:
636 {
637 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 103: SR_RECO+ 2 start");
638 test_verdict = audio_regr_test_103 (&error_type);
639 break;
640 }
641 case 104:
642 {
643 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 104: SR_RECO+ 2 stop");
644 test_verdict = audio_regr_test_104 (&error_type);
645 break;
646 }
647 case 105:
648 {
649 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 105: SR_RECO+check parameters");
650 test_verdict = audio_regr_test_105 (&error_type);
651 break;
652 }
653 case 106:
654 {
655 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 106: SR_RECO+ stop after the end");
656 test_verdict = audio_regr_test_106 (&error_type);
657 break;
658 }
659 case 107:
660 {
661 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 107: SR_RECO+ callback");
662 test_verdict = audio_regr_test_107 (&error_type);
663 break;
664 }
665 #endif
666 #if (MELODY_E2)
667 case 110:
668 {
669 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 110:MELODY_E2+auto stop");
670 test_verdict = audio_regr_test_110 (&error_type);
671 break;
672 }
673 case 111:
674 {
675 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 111: MELODY_E2+resquested stop");
676 test_verdict = audio_regr_test_111 (&error_type);
677 break;
678 }
679 case 112:
680 {
681 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 112: MELODY_E2+resquested stop before L1 start");
682 test_verdict = audio_regr_test_112 (&error_type);
683 break;
684 }
685 case 113:
686 {
687 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 113: MELODY_E2+resquested stop before FFS initialization");
688 test_verdict = audio_regr_test_113 (&error_type);
689 break;
690 }
691 case 114:
692 {
693 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 114: MELODY_E2+2 start");
694 test_verdict = audio_regr_test_114 (&error_type);
695 break;
696 }
697 case 115:
698 {
699 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 115: MELODY_E2+2 stop");
700 test_verdict = audio_regr_test_115 (&error_type);
701 break;
702 }
703 case 116:
704 {
705 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 116: MELODY_E2+stop after a L1 stop");
706 test_verdict = audio_regr_test_116 (&error_type);
707 break;
708 }
709 case 117:
710 {
711 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 117: MELODY_E2+callback func");
712 test_verdict = audio_regr_test_117 (&error_type);
713 break;
714 }
715 case 118:
716 {
717 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 118: MELODY_E2+3 start and 1 unexpected stop");
718 test_verdict = audio_regr_test_118 (&error_type);
719 break;
720 }
721 case 119:
722 {
723 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 119: MELODY_E2+2 start in normal mode");
724 test_verdict = audio_regr_test_119 (&error_type);
725 break;
726 }
727 case 120:
728 {
729 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 120: MELODY_E2+ start and stop in loopback mode");
730 test_verdict = audio_regr_test_120 (&error_type);
731 break;
732 }
733 case 121:
734 {
735 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 121: MELODY E2+Check parameters");
736 test_verdict = audio_regr_test_121 (&error_type);
737 break;
738 }
739 case 122:
740 {
741 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 122: MELODY E2 without loading the instruments file ");
742 test_verdict = audio_regr_test_122 (&error_type);
743 break;
744 }
745 #endif
746 #if (L1_GTT == 1)
747 case 130:
748 {
749 RV_TEST_TRACE_HIGH ("**AUDIO TEST REGR 130: TTY + requested stop");
750 test_verdict = audio_regr_test_130 (&error_type);
751 }
752 break;
753 case 131:
754 {
755 RV_TEST_TRACE_HIGH ("**AUDIO TEST REGR 131: TTY + requested stop before L1 start");
756 test_verdict = audio_regr_test_131 (&error_type);
757 }
758 break;
759 case 132:
760 {
761 RV_TEST_TRACE_HIGH ("**AUDIO TEST REGR 132: TTY + 2 start + stop");
762 test_verdict = audio_regr_test_132 (&error_type);
763 }
764 break;
765 case 133:
766 {
767 RV_TEST_TRACE_HIGH ("**AUDIO TEST REGR 133: TTY + 2 stop");
768 test_verdict = audio_regr_test_133 (&error_type);
769 }
770 break;
771 case 134:
772 {
773 RV_TEST_TRACE_HIGH ("**AUDIO TEST REGR 134: TTY + check error in parameters");
774 test_verdict = audio_regr_test_134 (&error_type);
775 }
776 break;
777 case 135:
778 {
779 RV_TEST_TRACE_HIGH ("**AUDIO TEST REGR 135: TTY + callback function");
780 test_verdict = audio_regr_test_135 (&error_type);
781 }
782 break;
783 #endif
784 #if (AUDIO_MEM_MANAGER)
785 case 140:
786 {
787 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 140: Flash/RAM Voice Memo AMR, start record + auto stop");
788 test_verdict = audio_regr_test_140 (&error_type);
789 }
790 break;
791 case 141:
792 {
793 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 141: Flash/RAM Voice Memo AMR, start record + requested stop");
794 test_verdict = audio_regr_test_141 (&error_type);
795 }
796 break;
797 case 142:
798 {
799 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 142: Flash/RAM Voice Memo AMR, start record + requested stop just after start");
800 test_verdict = audio_regr_test_142 (&error_type);
801 }
802 break;
803 case 143:
804 {
805 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 143: Flash/RAM Voice Memo AMR, start record + 2 starts");
806 test_verdict = audio_regr_test_143 (&error_type);
807 }
808 break;
809 case 144:
810 {
811 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 144: Flash/RAM Voice Memo AMR, start record + 2 stops");
812 test_verdict = audio_regr_test_144 (&error_type);
813 }
814 break;
815 case 145:
816 {
817 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 145: Flash/RAM Voice Memo AMR, start record check parameters");
818 test_verdict = audio_regr_test_145 (&error_type);
819 }
820 break;
821 case 146:
822 {
823 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 146: Flash/RAM Voice Memo AMR, start record + start error with callback_function");
824 test_verdict = audio_regr_test_146 (&error_type);
825 }
826 break;
827 case 147:
828 {
829 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 147: Flash Voice Memo AMR, start record + auto stop (180s)");
830 test_verdict = audio_regr_test_147 (&error_type);
831 }
832 break;
833
834 case 150:
835 {
836 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 150: Flash/RAM Voice Memo AMR, start play + auto stop");
837 test_verdict = audio_regr_test_150 (&error_type);
838 }
839 break;
840 case 151:
841 {
842 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 151: Flash/RAM Voice Memo AMR, start play + requested stop");
843 test_verdict = audio_regr_test_151 (&error_type);
844 }
845 break;
846 case 152:
847 {
848 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 152: Flash/RAM Voice Memo AMR, start play + requested stop just after start");
849 test_verdict = audio_regr_test_152 (&error_type);
850 }
851 break;
852 case 153:
853 {
854 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 153: Flash/RAM Voice Memo AMR, start play + 2 starts");
855 test_verdict = audio_regr_test_153 (&error_type);
856 }
857 break;
858 case 154:
859 {
860 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 154: Flash/RAM Voice Memo AMR, start play + 2 stops");
861 test_verdict = audio_regr_test_154 (&error_type);
862 }
863 break;
864 case 155:
865 {
866 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 155: Flash/RAM Voice Memo AMR, start play check parameters");
867 test_verdict = audio_regr_test_155 (&error_type);
868 }
869 break;
870 case 156:
871 {
872 RV_TEST_TRACE_HIGH ("**AUDIO TEST MISC 156: Flash/RAM Voice Memo AMR, start play + start with callback_function");
873 test_verdict = audio_regr_test_156 (&error_type);
874 }
875 break;
876 #endif // AUDIO_MEM_MANAGER
877 #if (L1_MIDI==1)
878 case 160:
879 {
880 RV_TEST_TRACE_HIGH("**AUDIO TEST MISC 160: MIDI, start + automatic stop");
881 test_verdict=audio_regr_test_160(&error_type);
882 }
883 break;
884 case 161:
885 {
886 RV_TEST_TRACE_HIGH("**AUDIO TEST MISC 161: MIDI, start + requested stop");
887 test_verdict=audio_regr_test_161(&error_type);
888 }
889 break;
890 case 162:
891 {
892 RV_TEST_TRACE_HIGH("**AUDIO TEST MISC 162: MIDI, start + immediate stop");
893 test_verdict=audio_regr_test_162(&error_type);
894 }
895 break;
896 case 163:
897 {
898 RV_TEST_TRACE_HIGH("**AUDIO TEST MISC 163: MIDI, start with wrong parameters");
899 test_verdict=audio_regr_test_163(&error_type);
900 }
901 break;
902 case 164:
903 {
904 RV_TEST_TRACE_HIGH("**AUDIO TEST MISC 164: MIDI, 2 starts");
905 test_verdict=audio_regr_test_164(&error_type);
906 }
907 break;
908 case 165:
909 {
910 RV_TEST_TRACE_HIGH("**AUDIO TEST MISC 165: MIDI, start + 2 requested stops");
911 test_verdict=audio_regr_test_165(&error_type);
912 }
913 break;
914 #endif // L1_MIDI==1
915 default:
916 {
917 RV_TEST_TRACE_ERROR ("!!! ERROR !!! Invalid AUDIO test_number value for MISC test_type");
918 test_verdict = TEST_IRRECOVERABLY_FAILED;
919 break;
920 }
921 } /* switch */
922
923 trace_audio_test_verdict (test_verdict,
924 0,
925 test_number,
926 &error_type);
927
928 trace_audio_test_verdict (test_verdict,
929 test_number,
930 test_number,
931 &error_type);
932 /************************************************************************/
933 /* */
934 /* Memory dump -> check memory used before testing. */
935 /* Task dump -> check task stack used before testing. */
936 /* */
937 /************************************************************************/
938 rvf_dump_mem ();
939 rvf_dump_tasks();
940
941 return (test_verdict);
942 }
943
944 /************************** Stop audio_test_misc function *************************/
945
946 #endif /* #if (AUDIO_MISC == SW_COMPILED) */