29 */ |
28 */ |
30 |
29 |
31 #include <OMX_Audio.h> |
30 #include <OMX_Audio.h> |
32 |
31 |
33 /* Including audio_hw_control_chipset_api_v0_1.h */ |
32 /* Including audio_hw_control_chipset_api_v0_1.h */ |
34 #include "audio_hw_control_chipset_api_v0_1.h" |
33 /*#include "audio_hw_control_chipset_api_v0_1.h"*/ |
35 |
34 |
36 typedef struct OMX_AUDIO_PARAM_SIDETONEYPE { |
35 typedef OMX_AUDIO_CONFIG_VOLUMETYPE OMX_AUDIO_CONFIG_SIDETONEATTENUATIONTYPE; |
37 OMX_U32 nSize; |
36 typedef OMX_AUDIO_CONFIG_VOLUMETYPE OMX_AUDIO_CONFIG_SIDETONEGAINTYPE; |
38 OMX_VERSIONTYPE nVersion; |
|
39 OMX_U32 nPortIndex; |
|
40 OMX_S32 nAttenuation; |
|
41 OMX_S32 nGain; |
|
42 } OMX_AUDIO_PARAM_SIDETONETYPE; |
|
43 |
|
44 |
37 |
45 /* HDMI related configuration structure */ |
38 /* HDMI related configuration structure */ |
46 typedef struct OMX_AUDIO_PARAM_HDMITYPE { |
39 typedef struct OMX_AUDIO_PARAM_HDMITYPE { |
47 OMX_U32 nSize; |
40 OMX_U32 nSize; |
48 OMX_VERSIONTYPE nVersion; |
41 OMX_VERSIONTYPE nVersion; |
50 OMX_U32 nSubFrameSize; |
43 OMX_U32 nSubFrameSize; |
51 OMX_U32 nVaildBitsPerSample; |
44 OMX_U32 nVaildBitsPerSample; |
52 OMX_U32 nQFormat; |
45 OMX_U32 nQFormat; |
53 } OMX_AUDIO_PARAM_HDMITYPE; |
46 } OMX_AUDIO_PARAM_HDMITYPE; |
54 |
47 |
55 typedef struct OMX_AUDIO_CONFIG_TONEGENERATORTYPE { |
|
56 OMX_U32 nSize; |
|
57 OMX_VERSIONTYPE nVersion; |
|
58 OMX_U32 nPortIndex; |
|
59 OMX_BOOL bEnabled; |
|
60 OMX_TONEGENTONETYPE eTonetype; |
|
61 OMX_U32 nFrequency[2]; |
|
62 OMX_U32 nDigit; |
|
63 } OMX_AUDIO_CONFIG_TONEGENERATORTYPE |
|
64 |
48 |
65 /* Enumerations */ |
49 /* Enumerations */ |
66 typedef enum OMX_TONEGENTONETYPE { |
50 typedef enum OMX_TONEGENTONETYPE { |
67 OMX_TONEGEN_NormalTone, /**< Normal Tone */ |
51 OMX_TONEGEN_NormalTone, /**Normal Tone */ |
68 OMX_TONEGEN_DtmfTone, /**< DTMF Tone */ |
52 OMX_TONEGEN_DtmfTone, /**DTMF Tone */ |
69 } OMX_TONEGENTONETYPE; |
53 } OMX_TONEGENTONETYPE; |
70 |
54 |
71 |
55 |
|
56 typedef struct OMX_AUDIO_CONFIG_TONEGENERATORTYPE { |
|
57 OMX_U32 nSize; |
|
58 OMX_VERSIONTYPE nVersion; |
|
59 OMX_U32 nPortIndex; |
|
60 OMX_BOOL bEnable; |
|
61 OMX_TONEGENTONETYPE eTonetype; |
|
62 OMX_U32 nFrequency[2]; |
|
63 OMX_U32 nDigit; |
|
64 } OMX_AUDIO_CONFIG_TONEGENERATORTYPE; |
|
65 |
|
66 /* Click Removal algorithm parameters */ |
|
67 |
|
68 typedef struct OMX_AUDIO_CONFIG_CLICKREMOVALTYPE { |
|
69 OMX_U32 nSize; |
|
70 OMX_VERSIONTYPE nVersion; |
|
71 OMX_U32 nPortIndex; |
|
72 OMX_BOOL bEnable; |
|
73 OMX_BU32 sClickControl; |
|
74 } OMX_AUDIO_CONFIG_CLICKREMOVALTYPE; |
|
75 |
|
76 /* End of click removal params */ |
|
77 |
72 |
78 |
73 #ifdef __cplusplus |
79 #ifdef __cplusplus |
74 } |
80 } |
75 #endif /* __cplusplus */ |
81 #endif /* __cplusplus */ |
76 |
82 |