| 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: bape_audyssey_abx.h $ |
|---|
| 39 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 40 | * $brcm_Date: 5/14/11 11:22a $ |
|---|
| 41 | * |
|---|
| 42 | * API Description: |
|---|
| 43 | * API name: AudysseyAbx |
|---|
| 44 | * Specific APIs related to Audyssey ABX Audio Processing |
|---|
| 45 | * |
|---|
| 46 | * Revision History: |
|---|
| 47 | * |
|---|
| 48 | * $brcm_Log: /magnum/portinginterface/ape/7422/bape_audyssey_abx.h $ |
|---|
| 49 | * |
|---|
| 50 | * Hydra_Software_Devel/1 5/14/11 11:22a jgarrett |
|---|
| 51 | * SWDTV-6762: Adding Audyssey ADV/ABX |
|---|
| 52 | * |
|---|
| 53 | ***************************************************************************/ |
|---|
| 54 | |
|---|
| 55 | #ifndef BAPE_AUDYSSEY_ABX_H__ |
|---|
| 56 | #define BAPE_AUDYSSEY_ABX_H__ |
|---|
| 57 | |
|---|
| 58 | #include "bape.h" |
|---|
| 59 | |
|---|
| 60 | /*************************************************************************** |
|---|
| 61 | Summary: |
|---|
| 62 | AudysseyAbx Handle |
|---|
| 63 | ***************************************************************************/ |
|---|
| 64 | typedef struct BAPE_AudysseyAbx *BAPE_AudysseyAbxHandle; |
|---|
| 65 | |
|---|
| 66 | /*************************************************************************** |
|---|
| 67 | Summary: |
|---|
| 68 | AudysseyAbx Settings |
|---|
| 69 | ***************************************************************************/ |
|---|
| 70 | typedef struct BAPE_AudysseyAbxSettings |
|---|
| 71 | { |
|---|
| 72 | bool enabled; /* If true, processing is enabled. Otherwise this stage is bypassed */ |
|---|
| 73 | |
|---|
| 74 | unsigned filterSet; /* Default : 1, Range [1,2] |
|---|
| 75 | 1->is for systems that roll-off lower (42/46 inch TV) |
|---|
| 76 | 2->is for systems that roll-off higher(22 inch TV) */ |
|---|
| 77 | unsigned harmonicGain; /* Default is 6(3 dB), Ranges from 0 to 30 |
|---|
| 78 | Every step increment is equivalent to 0.5 dB step*/ |
|---|
| 79 | unsigned dryGain; /* Default is 0, Ranges from 0 to 30 |
|---|
| 80 | Typically always 0, Every step increament is equivalent to 0.5 dB step */ |
|---|
| 81 | } BAPE_AudysseyAbxSettings; |
|---|
| 82 | |
|---|
| 83 | /*************************************************************************** |
|---|
| 84 | Summary: |
|---|
| 85 | Get default settings for an AudysseyAbx stage |
|---|
| 86 | ***************************************************************************/ |
|---|
| 87 | void BAPE_AudysseyAbx_GetDefaultSettings( |
|---|
| 88 | BAPE_AudysseyAbxSettings *pSettings /* [out] default settings */ |
|---|
| 89 | ); |
|---|
| 90 | |
|---|
| 91 | /*************************************************************************** |
|---|
| 92 | Summary: |
|---|
| 93 | Open an AudysseyAbx stage |
|---|
| 94 | ***************************************************************************/ |
|---|
| 95 | BERR_Code BAPE_AudysseyAbx_Create( |
|---|
| 96 | BAPE_Handle deviceHandle, |
|---|
| 97 | const BAPE_AudysseyAbxSettings *pSettings, |
|---|
| 98 | BAPE_AudysseyAbxHandle *pHandle |
|---|
| 99 | ); |
|---|
| 100 | |
|---|
| 101 | /*************************************************************************** |
|---|
| 102 | Summary: |
|---|
| 103 | Close an AudysseyAbx stage |
|---|
| 104 | |
|---|
| 105 | Description: |
|---|
| 106 | Input to the stage must be removed prior to closing. |
|---|
| 107 | ***************************************************************************/ |
|---|
| 108 | void BAPE_AudysseyAbx_Destroy( |
|---|
| 109 | BAPE_AudysseyAbxHandle handle |
|---|
| 110 | ); |
|---|
| 111 | |
|---|
| 112 | /*************************************************************************** |
|---|
| 113 | Summary: |
|---|
| 114 | Get Settings for an AudysseyAbx stage |
|---|
| 115 | ***************************************************************************/ |
|---|
| 116 | void BAPE_AudysseyAbx_GetSettings( |
|---|
| 117 | BAPE_AudysseyAbxHandle handle, |
|---|
| 118 | BAPE_AudysseyAbxSettings *pSettings /* [out] Settings */ |
|---|
| 119 | ); |
|---|
| 120 | |
|---|
| 121 | /*************************************************************************** |
|---|
| 122 | Summary: |
|---|
| 123 | Set Settings for an AudysseyAbx stage |
|---|
| 124 | ***************************************************************************/ |
|---|
| 125 | BERR_Code BAPE_AudysseyAbx_SetSettings( |
|---|
| 126 | BAPE_AudysseyAbxHandle handle, |
|---|
| 127 | const BAPE_AudysseyAbxSettings *pSettings |
|---|
| 128 | ); |
|---|
| 129 | |
|---|
| 130 | /*************************************************************************** |
|---|
| 131 | Summary: |
|---|
| 132 | Get the audio connector for an AudysseyAbx stage |
|---|
| 133 | ***************************************************************************/ |
|---|
| 134 | void BAPE_AudysseyAbx_GetConnector( |
|---|
| 135 | BAPE_AudysseyAbxHandle handle, |
|---|
| 136 | BAPE_Connector *pConnector |
|---|
| 137 | ); |
|---|
| 138 | |
|---|
| 139 | /*************************************************************************** |
|---|
| 140 | Summary: |
|---|
| 141 | Add an input to this processing stage |
|---|
| 142 | ***************************************************************************/ |
|---|
| 143 | BERR_Code BAPE_AudysseyAbx_AddInput( |
|---|
| 144 | BAPE_AudysseyAbxHandle handle, |
|---|
| 145 | BAPE_Connector input |
|---|
| 146 | ); |
|---|
| 147 | |
|---|
| 148 | /*************************************************************************** |
|---|
| 149 | Summary: |
|---|
| 150 | Remove an input from this processing stage |
|---|
| 151 | ***************************************************************************/ |
|---|
| 152 | BERR_Code BAPE_AudysseyAbx_RemoveInput( |
|---|
| 153 | BAPE_AudysseyAbxHandle handle, |
|---|
| 154 | BAPE_Connector input |
|---|
| 155 | ); |
|---|
| 156 | |
|---|
| 157 | /*************************************************************************** |
|---|
| 158 | Summary: |
|---|
| 159 | Remove all inputs from this processing stage |
|---|
| 160 | ***************************************************************************/ |
|---|
| 161 | BERR_Code BAPE_AudysseyAbx_RemoveAllInputs( |
|---|
| 162 | BAPE_AudysseyAbxHandle handle |
|---|
| 163 | ); |
|---|
| 164 | |
|---|
| 165 | #endif /* #ifndef BAPE_AUDYSSEY_ABX_H__ */ |
|---|
| 166 | |
|---|