Audio Signal Processing/audio_transducer_chipset_api.h
changeset 2 ea09f30a96a5
parent 0 bb4b476bbb96
equal deleted inserted replaced
1:d7a6bb4d51e7 2:ea09f30a96a5
    12   Initial Contributors:
    12   Initial Contributors:
    13   Nokia Corporation - initial contribution.
    13   Nokia Corporation - initial contribution.
    14 
    14 
    15   Contributors:
    15   Contributors:
    16 */
    16 */
    17 
       
    18 #ifndef AUDIO_TRANSDUCER_CHIPSET_API_H
    17 #ifndef AUDIO_TRANSDUCER_CHIPSET_API_H
    19 #define AUDIO_TRANSDUCER_CHIPSET_API_H
    18 #define AUDIO_TRANSDUCER_CHIPSET_API_H
    20 
    19 
    21 #ifdef __cplusplus
    20 #ifdef __cplusplus
    22 extern "C" {
    21 extern "C" {
    54 
    53 
    55 typedef struct OMX_AUDIO_CONFIG_IIR_EQUALIZER  {
    54 typedef struct OMX_AUDIO_CONFIG_IIR_EQUALIZER  {
    56      OMX_U32 nSize;
    55      OMX_U32 nSize;
    57      OMX_VERSIONTYPE nVersion;  
    56      OMX_VERSIONTYPE nVersion;  
    58      OMX_U32 nPortIndex;
    57      OMX_U32 nPortIndex;
       
    58      OMX_U32 nChannel;
    59      OMX_BU32 sBandIndex ; 
    59      OMX_BU32 sBandIndex ; 
    60      OMX_AUDIO_FILTERTYPE eFilterType;
    60      OMX_AUDIO_FILTERTYPE eFilterType;
    61      OMX_U32 nFilterCenterCutoffFrequency;
    61      OMX_U32 nFilterCenterCutoffFrequency;
    62      OMX_S32 nFilterGain;
    62      OMX_S32 nFilterGain;
    63      OMX_U32 nFilterBandwidth; /* Q-value could be used instead. */
    63      OMX_U32 nFilterBandwidth; /* Q-value could be used instead. */
    66 
    66 
    67 typedef struct OMX_AUDIO_CONFIG_FIR_RESPONSE  {
    67 typedef struct OMX_AUDIO_CONFIG_FIR_RESPONSE  {
    68      OMX_U32 nSize;
    68      OMX_U32 nSize;
    69      OMX_VERSIONTYPE nVersion;  
    69      OMX_VERSIONTYPE nVersion;  
    70      OMX_U32 nPortIndex;
    70      OMX_U32 nPortIndex;
    71      OMX_u32 nFrequencyPoints; 
    71      OMX_U32 nChannel;
       
    72      OMX_U32 nFrequencyPoints; 
    72      OMX_S32 nFrequencies[MAX_FIRRESPONSE_POINTS];
    73      OMX_S32 nFrequencies[MAX_FIRRESPONSE_POINTS];
    73      OMX_S32 nGains[MAX_FIRRESPONSE_POINTS];
    74      OMX_S32 nGains[MAX_FIRRESPONSE_POINTS];
    74 } OMX_AUDIO_CONFIG_FIR_RESPONSE;
    75 } OMX_AUDIO_CONFIG_FIR_RESPONSE;
    75 
    76 
    76 
    77 
    92 
    93 
    93 typedef struct OMX_AUDIO_CONFIG_MDRCTYPE {
    94 typedef struct OMX_AUDIO_CONFIG_MDRCTYPE {
    94     OMX_U32 nSize;
    95     OMX_U32 nSize;
    95     OMX_VERSIONTYPE nVersion;
    96     OMX_VERSIONTYPE nVersion;
    96     OMX_U32 nPortIndex;
    97     OMX_U32 nPortIndex;
       
    98     OMX_U32 nChannel;	
    97     OMX_BOOL bEnable;
    99     OMX_BOOL bEnable;
    98     OMX_BU32 sBandIndex;
   100     OMX_BU32 sBandIndex;
    99     OMX_BU32 sBandRange;
   101     OMX_BU32 sBandRange;
   100     OMX_BU32 sBandLevel;
   102     OMX_BU32 sBandLevel;
   101     OMX_BU32 sKneePoints;	
   103     OMX_BU32 sKneePoints;	
   120 
   122 
   121 typedef enum OMX_AUDIO_SPLLIMITTYPE {
   123 typedef enum OMX_AUDIO_SPLLIMITTYPE {
   122 OMX_AUDIO_SPLLimitation,	
   124 OMX_AUDIO_SPLLimitation,	
   123 OMX_AUDIO_SPLNormalization,	
   125 OMX_AUDIO_SPLNormalization,	
   124 OMX_AUDIO_SPLMax,
   126 OMX_AUDIO_SPLMax,
   125 } OMX_AUDIO_OMX_AUDIO_SPLLIMITTYPE;
   127 } OMX_AUDIO_SPLLIMITTYPE;
   126 
   128 
   127 
   129 
   128 typedef struct OMX_AUDIO_CONFIG_SPLLIMITTYPE {
   130 typedef struct OMX_AUDIO_CONFIG_SPLLIMITTYPE {
   129     OMX_U32 nSize;
   131     OMX_U32 nSize;
   130     OMX_VERSIONTYPE nVersion;
   132     OMX_VERSIONTYPE nVersion;
   134     OMX_S32 nSplLimit;
   136     OMX_S32 nSplLimit;
   135     OMX_S32 nGain;	    
   137     OMX_S32 nGain;	    
   136 } OMX_AUDIO_CONFIG_SPLLIMITTYPE;
   138 } OMX_AUDIO_CONFIG_SPLLIMITTYPE;
   137 /* End of transducer SPL limit params */
   139 /* End of transducer SPL limit params */
   138 
   140 
   139 /* Click Removal algorithm parameters */
       
   140 
       
   141 typedef struct OMX_AUDIO_CONFIG_CLICKREMOVALTYPE {
       
   142    	OMX_U32 nSize;
       
   143    	OMX_VERSIONTYPE nVersion;
       
   144    	OMX_U32 nPortIndex;
       
   145    	OMX_BOOL bEnable;
       
   146 		OMX_BU16 sClickControl;
       
   147 } OMX_AUDIO_CONFIG_CLICKREMOVALTYPE;
       
   148 /* End of click removal params */
       
   149 
   141 
   150 /* Earpiece Active Noise Control */
   142 /* Earpiece Active Noise Control */
   151 
   143 
   152 typedef struct OMX_AUDIO_CONFIG_EARPIECE_ACTIVE_NOISE_CONTROL { 
   144 typedef struct OMX_AUDIO_CONFIG_EARPIECE_ACTIVE_NOISE_CONTROL { 
   153      OMX_U32 nSize;                                    
   145      OMX_U32 nSize;