1
2/*
3 * Copyright (C) Texas Instruments - http://www.ti.com/
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Lesser General Public License for more details.
15 *
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20 */
21
22/*
23 * Copyright (C) Texas Instruments - http://www.ti.com/
24 *
25 * This library is free software; you can redistribute it and/or
26 * modify it under the terms of the GNU Lesser General Public
27 * License as published by the Free Software Foundation; either
28 * version 2.1 of the License, or (at your option) any later version.
29 *
30 *
31 * This library is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
34 * Lesser General Public License for more details.
35 *
36 *
37 * You should have received a copy of the GNU Lesser General Public
38 * License along with this library; if not, write to the Free Software
39 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
40 */
41
42/*
43 * Copyright (C) Texas Instruments - http://www.ti.com/
44 *
45 * This library is free software; you can redistribute it and/or
46 * modify it under the terms of the GNU Lesser General Public
47 * License as published by the Free Software Foundation; either
48 * version 2.1 of the License, or (at your option) any later version.
49 *
50 *
51 * This library is distributed in the hope that it will be useful,
52 * but WITHOUT ANY WARRANTY; without even the implied warranty of
53 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
54 * Lesser General Public License for more details.
55 *
56 *
57 * You should have received a copy of the GNU Lesser General Public
58 * License along with this library; if not, write to the Free Software
59 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
60 */
61
62/*
63 * Copyright (C) Texas Instruments - http://www.ti.com/
64 *
65 * This library is free software; you can redistribute it and/or
66 * modify it under the terms of the GNU Lesser General Public
67 * License as published by the Free Software Foundation; either
68 * version 2.1 of the License, or (at your option) any later version.
69 *
70 *
71 * This library is distributed in the hope that it will be useful,
72 * but WITHOUT ANY WARRANTY; without even the implied warranty of
73 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
74 * Lesser General Public License for more details.
75 *
76 *
77 * You should have received a copy of the GNU Lesser General Public
78 * License along with this library; if not, write to the Free Software
79 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
80 */
81
82/*
83 * Copyright (C) Texas Instruments - http://www.ti.com/
84 *
85 * This library is free software; you can redistribute it and/or
86 * modify it under the terms of the GNU Lesser General Public
87 * License as published by the Free Software Foundation; either
88 * version 2.1 of the License, or (at your option) any later version.
89 *
90 *
91 * This library is distributed in the hope that it will be useful,
92 * but WITHOUT ANY WARRANTY; without even the implied warranty of
93 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
94 * Lesser General Public License for more details.
95 *
96 *
97 * You should have received a copy of the GNU Lesser General Public
98 * License along with this library; if not, write to the Free Software
99 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
100 */
101
102/*
103 * Copyright (C) Texas Instruments - http://www.ti.com/
104 *
105 * This library is free software; you can redistribute it and/or
106 * modify it under the terms of the GNU Lesser General Public
107 * License as published by the Free Software Foundation; either
108 * version 2.1 of the License, or (at your option) any later version.
109 *
110 *
111 * This library is distributed in the hope that it will be useful,
112 * but WITHOUT ANY WARRANTY; without even the implied warranty of
113 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
114 * Lesser General Public License for more details.
115 *
116 *
117 * You should have received a copy of the GNU Lesser General Public
118 * License along with this library; if not, write to the Free Software
119 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
120 */
121
122/*
123 * Copyright (C) Texas Instruments - http://www.ti.com/
124 *
125 * This library is free software; you can redistribute it and/or
126 * modify it under the terms of the GNU Lesser General Public
127 * License as published by the Free Software Foundation; either
128 * version 2.1 of the License, or (at your option) any later version.
129 *
130 *
131 * This library is distributed in the hope that it will be useful,
132 * but WITHOUT ANY WARRANTY; without even the implied warranty of
133 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
134 * Lesser General Public License for more details.
135 *
136 *
137 * You should have received a copy of the GNU Lesser General Public
138 * License along with this library; if not, write to the Free Software
139 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
140 */
141
142/*
143 * Copyright (C) Texas Instruments - http://www.ti.com/
144 *
145 * This library is free software; you can redistribute it and/or
146 * modify it under the terms of the GNU Lesser General Public
147 * License as published by the Free Software Foundation; either
148 * version 2.1 of the License, or (at your option) any later version.
149 *
150 *
151 * This library is distributed in the hope that it will be useful,
152 * but WITHOUT ANY WARRANTY; without even the implied warranty of
153 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
154 * Lesser General Public License for more details.
155 *
156 *
157 * You should have received a copy of the GNU Lesser General Public
158 * License along with this library; if not, write to the Free Software
159 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
160 */
161
162/*
163 * Copyright (C) Texas Instruments - http://www.ti.com/
164 *
165 * This library is free software; you can redistribute it and/or
166 * modify it under the terms of the GNU Lesser General Public
167 * License as published by the Free Software Foundation; either
168 * version 2.1 of the License, or (at your option) any later version.
169 *
170 *
171 * This library is distributed in the hope that it will be useful,
172 * but WITHOUT ANY WARRANTY; without even the implied warranty of
173 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
174 * Lesser General Public License for more details.
175 *
176 *
177 * You should have received a copy of the GNU Lesser General Public
178 * License along with this library; if not, write to the Free Software
179 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
180 */
181
182/*
183 * Copyright (C) Texas Instruments - http://www.ti.com/
184 *
185 * This library is free software; you can redistribute it and/or
186 * modify it under the terms of the GNU Lesser General Public
187 * License as published by the Free Software Foundation; either
188 * version 2.1 of the License, or (at your option) any later version.
189 *
190 *
191 * This library is distributed in the hope that it will be useful,
192 * but WITHOUT ANY WARRANTY; without even the implied warranty of
193 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
194 * Lesser General Public License for more details.
195 *
196 *
197 * You should have received a copy of the GNU Lesser General Public
198 * License along with this library; if not, write to the Free Software
199 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
200 */
201
202/*
203 * Copyright (C) Texas Instruments - http://www.ti.com/
204 *
205 * This library is free software; you can redistribute it and/or
206 * modify it under the terms of the GNU Lesser General Public
207 * License as published by the Free Software Foundation; either
208 * version 2.1 of the License, or (at your option) any later version.
209 *
210 *
211 * This library is distributed in the hope that it will be useful,
212 * but WITHOUT ANY WARRANTY; without even the implied warranty of
213 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
214 * Lesser General Public License for more details.
215 *
216 *
217 * You should have received a copy of the GNU Lesser General Public
218 * License along with this library; if not, write to the Free Software
219 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
220 */
221
222/*
223 * Copyright (C) Texas Instruments - http://www.ti.com/
224 *
225 * This library is free software; you can redistribute it and/or
226 * modify it under the terms of the GNU Lesser General Public
227 * License as published by the Free Software Foundation; either
228 * version 2.1 of the License, or (at your option) any later version.
229 *
230 *
231 * This library is distributed in the hope that it will be useful,
232 * but WITHOUT ANY WARRANTY; without even the implied warranty of
233 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
234 * Lesser General Public License for more details.
235 *
236 *
237 * You should have received a copy of the GNU Lesser General Public
238 * License along with this library; if not, write to the Free Software
239 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
240 */
241
242/*
243 * Copyright (C) Texas Instruments - http://www.ti.com/
244 *
245 * This library is free software; you can redistribute it and/or
246 * modify it under the terms of the GNU Lesser General Public
247 * License as published by the Free Software Foundation; either
248 * version 2.1 of the License, or (at your option) any later version.
249 *
250 *
251 * This library is distributed in the hope that it will be useful,
252 * but WITHOUT ANY WARRANTY; without even the implied warranty of
253 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
254 * Lesser General Public License for more details.
255 *
256 *
257 * You should have received a copy of the GNU Lesser General Public
258 * License along with this library; if not, write to the Free Software
259 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
260 */
261
262/*
263 * Copyright (C) Texas Instruments - http://www.ti.com/
264 *
265 * This library is free software; you can redistribute it and/or
266 * modify it under the terms of the GNU Lesser General Public
267 * License as published by the Free Software Foundation; either
268 * version 2.1 of the License, or (at your option) any later version.
269 *
270 *
271 * This library is distributed in the hope that it will be useful,
272 * but WITHOUT ANY WARRANTY; without even the implied warranty of
273 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
274 * Lesser General Public License for more details.
275 *
276 *
277 * You should have received a copy of the GNU Lesser General Public
278 * License along with this library; if not, write to the Free Software
279 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
280 */
281
282/*
283 * Copyright (C) Texas Instruments - http://www.ti.com/
284 *
285 * This library is free software; you can redistribute it and/or
286 * modify it under the terms of the GNU Lesser General Public
287 * License as published by the Free Software Foundation; either
288 * version 2.1 of the License, or (at your option) any later version.
289 *
290 *
291 * This library is distributed in the hope that it will be useful,
292 * but WITHOUT ANY WARRANTY; without even the implied warranty of
293 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
294 * Lesser General Public License for more details.
295 *
296 *
297 * You should have received a copy of the GNU Lesser General Public
298 * License along with this library; if not, write to the Free Software
299 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
300 */
301
302/*
303 * Copyright (C) Texas Instruments - http://www.ti.com/
304 *
305 * This library is free software; you can redistribute it and/or
306 * modify it under the terms of the GNU Lesser General Public
307 * License as published by the Free Software Foundation; either
308 * version 2.1 of the License, or (at your option) any later version.
309 *
310 *
311 * This library is distributed in the hope that it will be useful,
312 * but WITHOUT ANY WARRANTY; without even the implied warranty of
313 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
314 * Lesser General Public License for more details.
315 *
316 *
317 * You should have received a copy of the GNU Lesser General Public
318 * License along with this library; if not, write to the Free Software
319 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
320 */
321
322/*
323 * Copyright (C) Texas Instruments - http://www.ti.com/
324 *
325 * This library is free software; you can redistribute it and/or
326 * modify it under the terms of the GNU Lesser General Public
327 * License as published by the Free Software Foundation; either
328 * version 2.1 of the License, or (at your option) any later version.
329 *
330 *
331 * This library is distributed in the hope that it will be useful,
332 * but WITHOUT ANY WARRANTY; without even the implied warranty of
333 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
334 * Lesser General Public License for more details.
335 *
336 *
337 * You should have received a copy of the GNU Lesser General Public
338 * License along with this library; if not, write to the Free Software
339 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
340 */
341
342/*
343 * Copyright (C) Texas Instruments - http://www.ti.com/
344 *
345 * This library is free software; you can redistribute it and/or
346 * modify it under the terms of the GNU Lesser General Public
347 * License as published by the Free Software Foundation; either
348 * version 2.1 of the License, or (at your option) any later version.
349 *
350 *
351 * This library is distributed in the hope that it will be useful,
352 * but WITHOUT ANY WARRANTY; without even the implied warranty of
353 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
354 * Lesser General Public License for more details.
355 *
356 *
357 * You should have received a copy of the GNU Lesser General Public
358 * License along with this library; if not, write to the Free Software
359 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
360 */
361
362/*
363 * Copyright (C) Texas Instruments - http://www.ti.com/
364 *
365 * This library is free software; you can redistribute it and/or
366 * modify it under the terms of the GNU Lesser General Public
367 * License as published by the Free Software Foundation; either
368 * version 2.1 of the License, or (at your option) any later version.
369 *
370 *
371 * This library is distributed in the hope that it will be useful,
372 * but WITHOUT ANY WARRANTY; without even the implied warranty of
373 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
374 * Lesser General Public License for more details.
375 *
376 *
377 * You should have received a copy of the GNU Lesser General Public
378 * License along with this library; if not, write to the Free Software
379 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
380 */
381
382/*
383 * Copyright (C) Texas Instruments - http://www.ti.com/
384 *
385 * This library is free software; you can redistribute it and/or
386 * modify it under the terms of the GNU Lesser General Public
387 * License as published by the Free Software Foundation; either
388 * version 2.1 of the License, or (at your option) any later version.
389 *
390 *
391 * This library is distributed in the hope that it will be useful,
392 * but WITHOUT ANY WARRANTY; without even the implied warranty of
393 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
394 * Lesser General Public License for more details.
395 *
396 *
397 * You should have received a copy of the GNU Lesser General Public
398 * License along with this library; if not, write to the Free Software
399 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
400 */
401
402/*
403 * Copyright (C) Texas Instruments - http://www.ti.com/
404 *
405 * This library is free software; you can redistribute it and/or
406 * modify it under the terms of the GNU Lesser General Public
407 * License as published by the Free Software Foundation; either
408 * version 2.1 of the License, or (at your option) any later version.
409 *
410 *
411 * This library is distributed in the hope that it will be useful,
412 * but WITHOUT ANY WARRANTY; without even the implied warranty of
413 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
414 * Lesser General Public License for more details.
415 *
416 *
417 * You should have received a copy of the GNU Lesser General Public
418 * License along with this library; if not, write to the Free Software
419 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
420 */
421
422/*
423 * Copyright (C) Texas Instruments - http://www.ti.com/
424 *
425 * This library is free software; you can redistribute it and/or
426 * modify it under the terms of the GNU Lesser General Public
427 * License as published by the Free Software Foundation; either
428 * version 2.1 of the License, or (at your option) any later version.
429 *
430 *
431 * This library is distributed in the hope that it will be useful,
432 * but WITHOUT ANY WARRANTY; without even the implied warranty of
433 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
434 * Lesser General Public License for more details.
435 *
436 *
437 * You should have received a copy of the GNU Lesser General Public
438 * License along with this library; if not, write to the Free Software
439 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
440 */
441
442/*
443 * Copyright (C) Texas Instruments - http://www.ti.com/
444 *
445 * This library is free software; you can redistribute it and/or
446 * modify it under the terms of the GNU Lesser General Public
447 * License as published by the Free Software Foundation; either
448 * version 2.1 of the License, or (at your option) any later version.
449 *
450 *
451 * This library is distributed in the hope that it will be useful,
452 * but WITHOUT ANY WARRANTY; without even the implied warranty of
453 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
454 * Lesser General Public License for more details.
455 *
456 *
457 * You should have received a copy of the GNU Lesser General Public
458 * License along with this library; if not, write to the Free Software
459 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
460 */
461
462/*
463 * Copyright (C) Texas Instruments - http://www.ti.com/
464 *
465 * This library is free software; you can redistribute it and/or
466 * modify it under the terms of the GNU Lesser General Public
467 * License as published by the Free Software Foundation; either
468 * version 2.1 of the License, or (at your option) any later version.
469 *
470 *
471 * This library is distributed in the hope that it will be useful,
472 * but WITHOUT ANY WARRANTY; without even the implied warranty of
473 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
474 * Lesser General Public License for more details.
475 *
476 *
477 * You should have received a copy of the GNU Lesser General Public
478 * License along with this library; if not, write to the Free Software
479 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
480 */
481
482/*
483 * Copyright (C) Texas Instruments - http://www.ti.com/
484 *
485 * This library is free software; you can redistribute it and/or
486 * modify it under the terms of the GNU Lesser General Public
487 * License as published by the Free Software Foundation; either
488 * version 2.1 of the License, or (at your option) any later version.
489 *
490 *
491 * This library is distributed in the hope that it will be useful,
492 * but WITHOUT ANY WARRANTY; without even the implied warranty of
493 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
494 * Lesser General Public License for more details.
495 *
496 *
497 * You should have received a copy of the GNU Lesser General Public
498 * License along with this library; if not, write to the Free Software
499 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
500 */
501
502/*
503 * Copyright (C) Texas Instruments - http://www.ti.com/
504 *
505 * This library is free software; you can redistribute it and/or
506 * modify it under the terms of the GNU Lesser General Public
507 * License as published by the Free Software Foundation; either
508 * version 2.1 of the License, or (at your option) any later version.
509 *
510 *
511 * This library is distributed in the hope that it will be useful,
512 * but WITHOUT ANY WARRANTY; without even the implied warranty of
513 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
514 * Lesser General Public License for more details.
515 *
516 *
517 * You should have received a copy of the GNU Lesser General Public
518 * License along with this library; if not, write to the Free Software
519 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
520 */
521
522/*
523 * Copyright (C) Texas Instruments - http://www.ti.com/
524 *
525 * This library is free software; you can redistribute it and/or
526 * modify it under the terms of the GNU Lesser General Public
527 * License as published by the Free Software Foundation; either
528 * version 2.1 of the License, or (at your option) any later version.
529 *
530 *
531 * This library is distributed in the hope that it will be useful,
532 * but WITHOUT ANY WARRANTY; without even the implied warranty of
533 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
534 * Lesser General Public License for more details.
535 *
536 *
537 * You should have received a copy of the GNU Lesser General Public
538 * License along with this library; if not, write to the Free Software
539 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
540 */
541
542/* ==============================================================================
543*             Texas Instruments OMAP (TM) Platform Software
544*  (c) Copyright Texas Instruments, Incorporated.  All Rights Reserved.
545*
546*  Use of this software is controlled by the terms and conditions found
547*  in the license agreement under which this software has been supplied.
548* ============================================================================ */
549/**
550* @file TIDspOmx.h
551*
552* This file contains the definitions used by OMX component to access TI DAFS/DSP
553*
554* @path  $(CSLPATH)\
555*
556* @rev  1.0
557*/
558/* ----------------------------------------------------------------------------
559*!
560*! Revision History
561*! ===================================
562*!
563*!
564* ============================================================================= */
565
566
567#ifndef TIDSPOMX_H
568#define TIDSPOMX_H
569
570#define ETEEDN_STRING ":i0:o0/codec\0"
571#define RTM_STRING "/rtmdn:i2:o1/codec\0"
572#define ETEEDN_STRING_ENCODER ":i0:o0/codec\0"
573#define RTM_STRING_ENCODER ":srcul/rtmdn:i0:o2/codec\0"
574#define ACDN_STRING "1:comp0/mixer/acdn0:aecns0:eq1_L:eq2_R/codec\0"
575#define ACDN_STRING_ENCODER "1:eq1/mixer/acdn0:aecns0/codec\0"
576
577
578#define OMX_MMMIXER_DATAPATH(_datapath_,_rendertype_,_streamid_)\
579        {\
580        static char str[50];\
581        int OMX_MMMIXER_DATAPATH_instreamid = ((_streamid_ >> 4) & 0xF) - 1;\
582        int OMX_MMMIXER_DATAPATH_outstreamid = (_streamid_ & 0xF) - 1;\
583        OMX_MMMIXER_ITOA(str, OMX_MMMIXER_DATAPATH_instreamid)\
584        strcpy((char*)_datapath_,(char*)":i");\
585        strcat((char*)_datapath_,(char*)str);\
586        strcat((char*)_datapath_,(char*)":o");\
587        OMX_MMMIXER_ITOA(str, OMX_MMMIXER_DATAPATH_outstreamid)\
588        strcat((char*)_datapath_,(char*)str);\
589        strcat((char*)_datapath_,(char*)"/codec\0");\
590        }
591
592#define OMX_MMMIXER_DATAPATH_TEE(_datapath_,_rendertype_,_streamid_)\
593        {\
594        static char str[50];\
595        int OMX_MMMIXER_DATAPATH_instreamid = ((_streamid_ >> 4) & 0xF) - 1;\
596        int OMX_MMMIXER_DATAPATH_outstreamid = (_streamid_ & 0xF) - 1;\
597        OMX_MMMIXER_ITOA(str, OMX_MMMIXER_DATAPATH_instreamid)\
598        strcpy((char*)_datapath_,(char*)":i");\
599        strcat((char*)_datapath_,(char*)str);\
600        strcat((char*)_datapath_,(char*)":o");\
601        OMX_MMMIXER_ITOA(str, OMX_MMMIXER_DATAPATH_outstreamid)\
602        strcat((char*)_datapath_,(char*)str);\
603        strcat((char*)_datapath_,(char*)"/eteedn:i0:o0/codec\0");\
604        }
605
606#define OMX_MMMIXER_ITOA(_alpha_,_integer_) \
607{\
608    static char OMX_MMMIXER_ITOA_str[50];\
609    int i = sizeof(OMX_MMMIXER_ITOA_str) - 1;\
610    do {\
611        OMX_MMMIXER_ITOA_str[--i] = '0' + _integer_ % 10;\
612    } while ((_integer_ = _integer_ / 10) && i > 0);\
613    strcpy(_alpha_,&OMX_MMMIXER_ITOA_str[i]);\
614}
615
616
617typedef unsigned int    tWMA_U32;
618typedef unsigned short  tWMA_U16;
619typedef unsigned char   tWMA_U8;
620typedef unsigned char U8;
621typedef signed char I8;
622typedef unsigned int U32;
623typedef int I32;
624#define PACKED
625typedef PACKED struct tQWORD
626{
627    tWMA_U32   dwLo;
628    tWMA_U32   dwHi;
629
630}   QWORD;
631
632typedef struct {
633    tWMA_U32  Data1;
634    tWMA_U16  Data2;
635    tWMA_U16  Data3;
636    tWMA_U8   Data4[8];
637} WMADECGUID;
638
639typedef struct _WMA_HeadInfo
640{
641    QWORD					iPackets;
642    QWORD					iPlayDuration;
643    OMX_U32 				iMaxPacketSize;
644    WMADECGUID				iStreamType;
645    OMX_U32					iTypeSpecific;
646    OMX_U16					iStreamNum;
647    OMX_U16					iFormatTag;
648    OMX_U32					iSamplePerSec;
649    OMX_U32					iAvgBytesPerSec;
650    OMX_U16					iBlockAlign;
651    OMX_U16					iChannel;
652    OMX_U16					iValidBitsPerSample;
653    OMX_U16					iSizeWaveHeader;
654    OMX_U32					iChannelMask;
655    OMX_U16					iEncodeOptV;
656    OMX_U32					iSamplePerBlock;
657} WMA_HeadInfo;
658
659
660
661typedef struct _AAC_HeadInfo
662{
663	OMX_U32                 bitratemode;
664} AACENC_HeadInfo;
665
666
667typedef struct _TI_OMX_DSP_DEFINITION
668{
669    OMX_BOOL				dasfMode;		/* Support DASF or file to file		*/
670	OMX_BOOL			    teeMode;		/* Support Tee Device Node		*/
671	OMX_BOOL	            framemode;	        /* Support FRAME Mode   	        */
672	OMX_BOOL	            acousticMode;
673	OMX_BOOL	            rtpMode;         /* Support RTP Mode */
674	WMA_HeadInfo*			wmaHeaderInfo;		/* Header info for WMA 			*/
675	AACENC_HeadInfo*		aacencHeaderInfo;	/* Header info for AAC encoder  	*/
676    OMX_U32					streamId;			/* streamId */
677    OMX_BOOL                  packingType;  /* 0=linear, 1=rtp packing */
678    OMX_BOOL                mpeg1_layer2;      /* 1 for MP2 files 0 for MP3 */
679} TI_OMX_DSP_DEFINITION;
680
681typedef struct _TI_OMX_STREAM_INFO
682{
683    OMX_U32					streamId;			/* streamId */
684} TI_OMX_STREAM_INFO;
685
686typedef enum _TI_OMX_DATAPATH {
687    DATAPATH_APPLICATION,
688    DATAPATH_APPLICATION_RTMIXER,
689    DATAPATH_APPLICATION_TEE,
690    DATAPATH_ACDN
691} TI_OMX_DATAPATH;
692
693typedef enum _TI_OMX_RENDERTYPE_ {
694    RENDERTYPE_DECODER,
695    RENDERTYPE_ENCODER
696} TI_OMX_RENDERTYPE;
697
698typedef enum _TI_OMX_TEEMODE_ {
699    TEEMODE_NONE,
700    TEEMODE_PLAYBACK,
701    TEEMODE_LOOPBACK,
702    TEEMODE_PLAYLOOPBACK
703} TI_OMX_TEEMODE;
704
705
706typedef struct OMX_AUDIO_PARAM_ILBCTYPE {
707    OMX_U32 nSize;                 /**< size of the structure in bytes */
708    OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
709    OMX_U32 nPortIndex;            /**< port that this structure applies to */
710    OMX_BOOL bDTX;            	   /**< Enable Discontinuous Transmisssion */
711
712} OMX_AUDIO_PARAM_ILBCTYPE;
713
714#endif
715