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 * Texas Instruments OMAP(TM) Platform Software 23 * (c) Copyright Texas Instruments, Incorporated. All Rights Reserved. 24 * 25 * Use of this software is controlled by the terms and conditions found 26 * in the license agreement under which this software has been supplied. 27 * ==================================================================== */ 28 29 /** Usn.h 30 * The LCML header file contains the definitions used by 31 * the component to access USN specific iteams. 32 * copied from USN.h and iUlg.h located in dsp 33 */ 34 35 36 37 #define MDN_MONO_CHANNEL 0x0001 38 #define MDN_STEREO_INTERLEAVED 0x0002 39 #define MDN_STEREO_NON_INTERLEAVED 0x0003 40 #define MDN_MONO_DUPLICATED 0x0004 41 42 typedef enum { 43 USN_GPPMSG_PLAY = 0x0100, 44 USN_GPPMSG_STOP = 0x0200, 45 USN_GPPMSG_PAUSE = 0x0300, 46 USN_GPPMSG_ALGCTRL = 0x0400, 47 USN_GPPMSG_STRMCTRL = 0x0500, 48 USN_GPPMSG_SET_BUFF = 0x0600, 49 USN_GPPMSG_SET_STRM_NODE = 0x0700, 50 USN_GPPMSG_GET_NODE_PTR = 0x0800 51 }USN_HostToNodeCmd; 52 53 typedef enum { 54 USN_DSPACK_STOP = 0x0200, 55 USN_DSPACK_PAUSE = 0x0300, 56 USN_DSPACK_ALGCTRL = 0x0400, 57 USN_DSPACK_STRMCTRL = 0x0500, 58 USN_DSPMSG_BUFF_FREE = 0x0600, 59 USN_DSPACK_SET_STRM_NODE = 0x0700, 60 USN_DSPACK_GET_NODE_PTR = 0x0800, 61 USN_DSPMSG_EVENT = 0x0E00 62 }USN_NodeToHostCmd; 63 64 typedef enum { 65 USN_ERR_NONE, 66 USN_ERR_WARNING, 67 USN_ERR_PROCESS, 68 USN_ERR_PAUSE, 69 USN_ERR_STOP, 70 USN_ERR_ALGCTRL, 71 USN_ERR_STRMCTRL, 72 USN_ERR_UNKNOWN_MSG 73 } USN_ErrTypes; 74 75 76 typedef enum { 77 IUALG_OK = 0x0000, 78 IUALG_WARN_CONCEALED = 0x0100, 79 IUALG_WARN_UNDERFLOW = 0x0200, 80 IUALG_WARN_OVERFLOW = 0x0300, 81 IUALG_WARN_ENDOFDATA = 0x0400, 82 IUALG_WARN_PLAYCOMPLETED = 0x0500, 83 IUALG_ERR_BAD_HANDLE = 0x0F00, 84 IUALG_ERR_DATA_CORRUPT = 0x0F01, 85 IUALG_ERR_NOT_SUPPORTED = 0x0F02, 86 IUALG_ERR_ARGUMENT = 0x0F03, 87 IUALG_ERR_NOT_READY = 0x0F04, 88 IUALG_ERR_GENERAL = 0x0FFF, 89 IUALG_ERR_INSUFF_BUFFER = 0x8401 90 }IUALG_Event; 91 92 typedef enum { 93 USN_STRMCMD_PLAY, 94 USN_STRMCMD_PAUSE, 95 USN_STRMCMD_STOP, 96 USN_STRMCMD_SETCODECPARAMS, 97 USN_STRMCMD_IDLE, 98 USN_STRMCMD_FLUSH 99 }USN_StrmCmd; 100 101 102