| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2004-2011 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | * $brcm_Workfile: nexus_3d_surround.h $ |
|---|
| 39 | * $brcm_Revision: 2 $ |
|---|
| 40 | * $brcm_Date: 8/24/11 5:31p $ |
|---|
| 41 | * |
|---|
| 42 | * API Description: |
|---|
| 43 | * API name: 3dSurround |
|---|
| 44 | * Specific APIs related to Broadcom 3D Surround Processing |
|---|
| 45 | * |
|---|
| 46 | * Revision History: |
|---|
| 47 | * |
|---|
| 48 | * $brcm_Log: /nexus/modules/audio/7422/include/nexus_3d_surround.h $ |
|---|
| 49 | * |
|---|
| 50 | * 2 8/24/11 5:31p jgarrett |
|---|
| 51 | * SW7344-176: Adding null_allowed attribute for kernelmode |
|---|
| 52 | * |
|---|
| 53 | * 1 5/16/11 4:57p jgarrett |
|---|
| 54 | * SWDTV-6763: Adding 3D Surround |
|---|
| 55 | * |
|---|
| 56 | ***************************************************************************/ |
|---|
| 57 | |
|---|
| 58 | #ifndef NEXUS_3D_SURROUND_H__ |
|---|
| 59 | #define NEXUS_3D_SURROUND_H__ |
|---|
| 60 | |
|---|
| 61 | #include "nexus_types.h" |
|---|
| 62 | #include "nexus_audio_types.h" |
|---|
| 63 | |
|---|
| 64 | #ifdef __cplusplus |
|---|
| 65 | extern "C" { |
|---|
| 66 | #endif |
|---|
| 67 | |
|---|
| 68 | /*=************************************ |
|---|
| 69 | Interface: 3dSurround |
|---|
| 70 | |
|---|
| 71 | Header file: nexus_3d_surround.h |
|---|
| 72 | |
|---|
| 73 | Module: Audio |
|---|
| 74 | |
|---|
| 75 | Description: Broadcom 3D Surround audio processing stage |
|---|
| 76 | |
|---|
| 77 | **************************************/ |
|---|
| 78 | |
|---|
| 79 | /** |
|---|
| 80 | Summary: |
|---|
| 81 | Handle for 3D Surround stage |
|---|
| 82 | **/ |
|---|
| 83 | typedef struct NEXUS_3dSurround *NEXUS_3dSurroundHandle; |
|---|
| 84 | |
|---|
| 85 | /*************************************************************************** |
|---|
| 86 | Summary: |
|---|
| 87 | 3D Surround Settings |
|---|
| 88 | ***************************************************************************/ |
|---|
| 89 | typedef struct NEXUS_3dSurroundSettings |
|---|
| 90 | { |
|---|
| 91 | bool enabled; /* If true, processing is enabled. Otherwise this stage is bypassed */ |
|---|
| 92 | |
|---|
| 93 | bool softLimiterEnabled; /* Turns the soft limiter function on or off. */ |
|---|
| 94 | } NEXUS_3dSurroundSettings; |
|---|
| 95 | |
|---|
| 96 | /*************************************************************************** |
|---|
| 97 | Summary: |
|---|
| 98 | Get default settings for a 3D Surround stage |
|---|
| 99 | ***************************************************************************/ |
|---|
| 100 | void NEXUS_3dSurround_GetDefaultSettings( |
|---|
| 101 | NEXUS_3dSurroundSettings *pSettings /* [out] default settings */ |
|---|
| 102 | ); |
|---|
| 103 | |
|---|
| 104 | /*************************************************************************** |
|---|
| 105 | Summary: |
|---|
| 106 | Open a 3D Surround stage |
|---|
| 107 | ***************************************************************************/ |
|---|
| 108 | NEXUS_3dSurroundHandle NEXUS_3dSurround_Open( /* attr{destructor=NEXUS_3dSurround_Close} */ |
|---|
| 109 | const NEXUS_3dSurroundSettings *pSettings /* attr{null_allowed=y} */ |
|---|
| 110 | ); |
|---|
| 111 | |
|---|
| 112 | /*************************************************************************** |
|---|
| 113 | Summary: |
|---|
| 114 | Close a 3D Surround stage |
|---|
| 115 | |
|---|
| 116 | Description: |
|---|
| 117 | Input to the stage must be removed prior to closing. |
|---|
| 118 | ***************************************************************************/ |
|---|
| 119 | void NEXUS_3dSurround_Close( |
|---|
| 120 | NEXUS_3dSurroundHandle handle |
|---|
| 121 | ); |
|---|
| 122 | |
|---|
| 123 | /*************************************************************************** |
|---|
| 124 | Summary: |
|---|
| 125 | Get Settings for a 3D Surround stage |
|---|
| 126 | ***************************************************************************/ |
|---|
| 127 | void NEXUS_3dSurround_GetSettings( |
|---|
| 128 | NEXUS_3dSurroundHandle handle, |
|---|
| 129 | NEXUS_3dSurroundSettings *pSettings /* [out] Settings */ |
|---|
| 130 | ); |
|---|
| 131 | |
|---|
| 132 | /*************************************************************************** |
|---|
| 133 | Summary: |
|---|
| 134 | Set Settings for a 3D Surround stage |
|---|
| 135 | ***************************************************************************/ |
|---|
| 136 | NEXUS_Error NEXUS_3dSurround_SetSettings( |
|---|
| 137 | NEXUS_3dSurroundHandle handle, |
|---|
| 138 | const NEXUS_3dSurroundSettings *pSettings |
|---|
| 139 | ); |
|---|
| 140 | |
|---|
| 141 | /*************************************************************************** |
|---|
| 142 | Summary: |
|---|
| 143 | Get the audio connector for a 3D Surround stage |
|---|
| 144 | ***************************************************************************/ |
|---|
| 145 | NEXUS_AudioInput NEXUS_3dSurround_GetConnector( |
|---|
| 146 | NEXUS_3dSurroundHandle handle |
|---|
| 147 | ); |
|---|
| 148 | |
|---|
| 149 | /*************************************************************************** |
|---|
| 150 | Summary: |
|---|
| 151 | Add an input to this processing stage |
|---|
| 152 | ***************************************************************************/ |
|---|
| 153 | NEXUS_Error NEXUS_3dSurround_AddInput( |
|---|
| 154 | NEXUS_3dSurroundHandle handle, |
|---|
| 155 | NEXUS_AudioInput input |
|---|
| 156 | ); |
|---|
| 157 | |
|---|
| 158 | /*************************************************************************** |
|---|
| 159 | Summary: |
|---|
| 160 | Remove an input from this processing stage |
|---|
| 161 | ***************************************************************************/ |
|---|
| 162 | NEXUS_Error NEXUS_3dSurround_RemoveInput( |
|---|
| 163 | NEXUS_3dSurroundHandle handle, |
|---|
| 164 | NEXUS_AudioInput input |
|---|
| 165 | ); |
|---|
| 166 | |
|---|
| 167 | /*************************************************************************** |
|---|
| 168 | Summary: |
|---|
| 169 | Remove all inputs from this processing stage |
|---|
| 170 | ***************************************************************************/ |
|---|
| 171 | NEXUS_Error NEXUS_3dSurround_RemoveAllInputs( |
|---|
| 172 | NEXUS_3dSurroundHandle handle |
|---|
| 173 | ); |
|---|
| 174 | |
|---|
| 175 | #ifdef __cplusplus |
|---|
| 176 | } |
|---|
| 177 | #endif |
|---|
| 178 | |
|---|
| 179 | #endif /* #ifndef NEXUS_3D_SURROUND_H__ */ |
|---|
| 180 | |
|---|
| 181 | |
|---|