lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /***********************************************************************
|
| 2 | * Copyright (C) 2001, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name: aud_nv.h
|
| 5 | * File Mark:
|
| 6 | * Description: Provide audio NV function prototype declaration and type declaration. The audio NV type declaration is moved from eep.h.
|
| 7 | * Others:
|
| 8 | * Version: v0.5
|
| 9 | * Author: Wangjun
|
| 10 | * Date: 2009-02-14
|
| 11 | *
|
| 12 | * History 1:
|
| 13 | * Date:
|
| 14 | * Version:
|
| 15 | * Author:
|
| 16 | * Modification:
|
| 17 | * History 2:
|
| 18 | **********************************************************************/
|
| 19 |
|
| 20 | #ifndef _AUD_NV_H
|
| 21 | #define _AUD_NV_H
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 | /**************************************************************************
|
| 26 | * Include files *
|
| 27 | **************************************************************************/
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 | /**************************************************************************
|
| 32 | * Macro *
|
| 33 | **************************************************************************/
|
| 34 | #ifndef int16
|
| 35 | #define int16 short int
|
| 36 | #endif
|
| 37 | #ifndef int32
|
| 38 | #define int32 long
|
| 39 | #endif
|
| 40 |
|
| 41 | /* Defines to determine array sizes */
|
| 42 | #if 0
|
| 43 | #define EEP_AUD_BIQUAD_FILTERS_UL 30
|
| 44 | #define EEP_AUD_BIQUAD_FILTERS_DL 20
|
| 45 | #define EEP_AUD_BIQUAD_FILTERS_CBUF 10
|
| 46 | #endif
|
| 47 | #if 0
|
| 48 | #define EEP_AUD_FIR_FILTERS_UL 5
|
| 49 | #define EEP_AUD_FIR_FILTERS_DL 5
|
| 50 | #define EEP_AUD_FIR_FILTERS_CBUF 5
|
| 51 | #endif
|
| 52 | #if 0
|
| 53 | #define EEP_AUD_HF 8
|
| 54 | #endif
|
| 55 | #if 0
|
| 56 | #define EEP_AUD_ASP_UL 5
|
| 57 | #define EEP_AUD_DL_NR 5
|
| 58 | #endif
|
| 59 | #define EEP_AUD_UPLINK_PATHS 22
|
| 60 | #define EEP_AUD_DOWNLINK_PATHS 29
|
| 61 |
|
| 62 | #define AUDIO_PATHS 10 /*defined multiple places -also in aud_data.h*/
|
| 63 |
|
| 64 | /*[Begin] [lvwenhua-2010/9/16]*/
|
| 65 | #define EEP_CODEC_UPLINK_PATHS 3 //MAX_CODEC_INPUT_PATH
|
| 66 | #define EEP_CODEC_DOWNLINK_PATHS 5 //MAX_CODEC_OUTPUT_PATH
|
| 67 | #define EEP_VOICE_OUTPUT_VOL_LEVELS 12 /* MAX_VOICE_OUTPUT_VOL_LEVEL */
|
| 68 | #define EEP_MIDI_OUTPUT_VOL_LEVELS 12 /* MAX_MIDI_OUTPUT_VOL_LEVEL */
|
| 69 | #define EEP_TONE_OUTPUT_VOL_LEVELS 12 /* MAX_TONE_OUTPUT_VOL_LEVEL */
|
| 70 | #define EEP_PCM_OUTPUT_VOL_LEVELS 12 /* MAX_AUDIO_OUTPUT_VOL_LEVEL */
|
| 71 | /*[End] [lvwenhua-2010/9/16]*/
|
| 72 |
|
| 73 | #define EEP_AUD_CEPT 0
|
| 74 | #define EEP_AUD_ANSI 1
|
| 75 | #define EEP_AUD_JAPAN 2
|
| 76 | #define EEP_AUD_REGION_END 3
|
| 77 |
|
| 78 | typedef struct
|
| 79 | {
|
| 80 | UINT16 gain_out; /********************************************************************************
|
| 81 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄgain_outÔöÒæ£»
|
| 82 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 83 | 0 db ֵΪ0x1FFF£»
|
| 84 | ³ö³§Öµ£º
|
| 85 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,23,25,26,27,28ʱ:
|
| 86 | aud_audio_downlink_parms[n].downlink_gain_cells.gain_out = 8192;
|
| 87 | µ±n =20,21,22,24ʱ:
|
| 88 | aud_audio_downlink_parms[n].downlink_gain_cells.gain_out = 0;
|
| 89 | *********************************************************************************/
|
| 90 |
|
| 91 | UINT16 gain_out_use; /********************************************************************************
|
| 92 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄgain_outÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 93 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 94 | 1: ʹÓÃNV²ÎÊý
|
| 95 |
|
| 96 | ³ö³§Öµ£º
|
| 97 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,25,26,27,28ʱ:
|
| 98 | aud_audio_downlink_parms[n].downlink_gain_cells.gain_out_use=1;
|
| 99 | µ±n =20,23,24ʱ:
|
| 100 | aud_audio_downlink_parms[n].downlink_gain_cells.gain_out_use=0;
|
| 101 | *********************************************************************************/
|
| 102 |
|
| 103 | UINT16 kappa0; /********************************************************************************
|
| 104 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄkappa0ÔöÒæ£»
|
| 105 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 106 | 0 db ֵΪ0x7FFF£»
|
| 107 | ³ö³§Öµ£º
|
| 108 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,23,25,26,27,28ʱ:
|
| 109 | aud_audio_downlink_parms[n].downlink_gain_cells.kappa0=32767;
|
| 110 | µ±n =21,22,24ʱ:
|
| 111 | aud_audio_downlink_parms[0].downlink_gain_cells.kappa0=0;
|
| 112 | *********************************************************************************/
|
| 113 |
|
| 114 | UINT16 kappa0_use; /********************************************************************************
|
| 115 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄkappa0ÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 116 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 117 | 1: ʹÓÃNV²ÎÊý
|
| 118 |
|
| 119 | ³ö³§Öµ£º
|
| 120 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,25,26,27,28ʱ:
|
| 121 | aud_audio_downlink_parms[n].downlink_gain_cells.kappa0_use = 1;
|
| 122 | µ±n =20,21,22,23,24ʱ:
|
| 123 | aud_audio_downlink_parms[n].downlink_gain_cells.kappa0_use = 0;
|
| 124 | *********************************************************************************/
|
| 125 |
|
| 126 | UINT16 mix_afe; /********************************************************************************
|
| 127 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеĻìºÏµ½AFEµÄmix_afeÔöÒæ£»
|
| 128 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 129 | 0 db ֵΪ0x3FFF£»
|
| 130 | ³ö³§Öµ£º
|
| 131 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,24,25,26,27,28ʱ:
|
| 132 | aud_audio_downlink_parms[n].downlink_gain_cells.mix_afe=1;
|
| 133 | µ±n =21,22,23ʱ:
|
| 134 | aud_audio_downlink_parms[n].downlink_gain_cells.mix_afe=0;
|
| 135 | *********************************************************************************/
|
| 136 |
|
| 137 | UINT16 mix_afe_use; /********************************************************************************
|
| 138 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеĻìºÏµ½AFEµÄmix_afeÔöÒæÊÇ·ñÓÉNV²ÎÊýÉèÖã»
|
| 139 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 140 | 1: ʹÓÃNV²ÎÊý
|
| 141 |
|
| 142 | ³ö³§Öµ£º
|
| 143 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,24,25,26,27,28ʱ:
|
| 144 | aud_audio_downlink_parms[n].downlink_gain_cells.mix_afe_use=0;
|
| 145 | µ±n =21,22,23ʱ:
|
| 146 | aud_audio_downlink_parms[n].downlink_gain_cells.mix_afe_use=1;
|
| 147 | *********************************************************************************/
|
| 148 | }
|
| 149 | eep_aud_downlink_gain_cells_type;
|
| 150 |
|
| 151 | typedef struct
|
| 152 | {
|
| 153 | SINT16 hf_algorithm_init; /********************************************************************************
|
| 154 | ¹¦ÄÜ£º ÉèÖÃteak µÄhandsfreeµÄµÚÒ»´ÎÆô¶¯£»
|
| 155 | ȡֵ·¶Î§£º0µ½0xFF
|
| 156 |
|
| 157 | ³ö³§Öµ£º
|
| 158 | ÔÚÊý×éÖУ¬aud_hf[3].hf_algorithm_init=0£¬ÆäÓ඼Ϊ397¡£
|
| 159 | *********************************************************************************/
|
| 160 |
|
| 161 | SINT16 hf_algorithm_restart; /********************************************************************************
|
| 162 | ¹¦ÄÜ£º ÉèÖÃteak µÄhandsfreeµÄÖØÐÂÆô¶¯£»
|
| 163 | ȡֵ·¶Î§£º0µ½0xFF
|
| 164 |
|
| 165 | ³ö³§Öµ£º
|
| 166 | ÔÚÊý×éÖУ¬aud_hf[3].hf_algorithm_restart=0£¬ÆäÓ඼Ϊ270¡£
|
| 167 | *********************************************************************************/
|
| 168 |
|
| 169 | UINT16 step_width; /********************************************************************************
|
| 170 | ¹¦ÄÜ£º ÉèÖÃteak µÄhandsfreeµÄLMSµ÷½ÚµÄ²½³¤£»
|
| 171 | ȡֵ·¶Î§£º0µ½32767
|
| 172 |
|
| 173 | ³ö³§Öµ£º
|
| 174 | 2200
|
| 175 | *********************************************************************************/
|
| 176 |
|
| 177 | UINT16 lms_length; /********************************************************************************
|
| 178 | ¹¦ÄÜ£º ÉèÖÃteak µÄLMSÂ˲¨Æ÷ϵÊý¸öÊý£»
|
| 179 | ȡֵ·¶Î§£º2µ½400
|
| 180 |
|
| 181 | ³ö³§Öµ£º
|
| 182 | 250
|
| 183 | *********************************************************************************/
|
| 184 |
|
| 185 | UINT16 lms_offset; /********************************************************************************
|
| 186 | ¹¦ÄÜ£º ÉèÖÃteak µÄLMSÂ˲¨Æ÷ϵÊý¸öÊýµÄÆ«ÒÆ£»
|
| 187 | ȡֵ·¶Î§£º0µ½400
|
| 188 |
|
| 189 | ³ö³§Öµ£º
|
| 190 | 8
|
| 191 | *********************************************************************************/
|
| 192 |
|
| 193 | UINT16 block_length; /********************************************************************************
|
| 194 | ¹¦ÄÜ£º ÉèÖÃteak µÄLMS¿é¸üÐÂÏòÁ¿³¤¶È£»
|
| 195 | ȡֵ·¶Î§£º2£¬4£¬5£¬8
|
| 196 |
|
| 197 | ³ö³§Öµ£º
|
| 198 | 5
|
| 199 | *********************************************************************************/
|
| 200 |
|
| 201 | SINT16 rxtx_relation; /********************************************************************************
|
| 202 | ¹¦ÄÜ£º ÉèÖÃteakÊäÈëÊä³ö¼ûµÄ¹ØÏµ£»
|
| 203 | ȡֵ·¶Î§£º-960µ½960
|
| 204 |
|
| 205 | ³ö³§Öµ£º
|
| 206 | ÔÚÊý×éÖÐ:
|
| 207 | aud_hf[0].rxtx_relation=-200£»
|
| 208 | aud_hf[1].rxtx_relation=150£»
|
| 209 | ÆäÓ඼Ϊ-400¡£
|
| 210 |
|
| 211 | *********************************************************************************/
|
| 212 |
|
| 213 | UINT16 add_atten; /********************************************************************************
|
| 214 | ¹¦ÄÜ£º ÉèÖÃteakµÄ×Ô¶¯Ôö񾀣¿éµÄË¥¼õ£»
|
| 215 | ȡֵ·¶Î§£º0µ½960
|
| 216 |
|
| 217 | ³ö³§Öµ£º
|
| 218 | 0
|
| 219 | *********************************************************************************/
|
| 220 |
|
| 221 | UINT16 min_atten; /********************************************************************************
|
| 222 | ¹¦ÄÜ£º ÉèÖÃteakµÄ×Ô¶¯Ôö񾀣¿éµÄ×îС˥¼õ£»
|
| 223 | ȡֵ·¶Î§£º0µ½960
|
| 224 |
|
| 225 | ³ö³§Öµ£º
|
| 226 | 0
|
| 227 | *********************************************************************************/
|
| 228 |
|
| 229 | UINT16 max_atten; /********************************************************************************
|
| 230 | ¹¦ÄÜ£º ÉèÖÃteakµÄ×Ô¶¯Ôö񾀣¿éµÄ×î´óË¥¼õ£»
|
| 231 | ȡֵ·¶Î§£º0µ½960
|
| 232 |
|
| 233 | ³ö³§Öµ£º
|
| 234 | 500
|
| 235 | *********************************************************************************/
|
| 236 |
|
| 237 | UINT16 nr_sw_2; /********************************************************************************
|
| 238 | ¹¦ÄÜ£º ÉèÖÃteakµÄÔëÒôÒÖÖÆÄ£¿éµÄ×î´óË¥¼õ£»
|
| 239 | ȡֵ·¶Î§£º0µ½32767
|
| 240 |
|
| 241 | ³ö³§Öµ£º
|
| 242 | 16384
|
| 243 | *********************************************************************************/
|
| 244 |
|
| 245 | UINT16 nr_u_fak_0; /********************************************************************************
|
| 246 | ¹¦ÄÜ£º ÉèÖÃteakµÄÔëÒôÒÖÖÆÄ£¿éµÄ´ø¿í0µÄ½µÔëÒòËØ£»
|
| 247 | ȡֵ·¶Î§£º0µ½16384
|
| 248 |
|
| 249 | ³ö³§Öµ£º
|
| 250 | 16384
|
| 251 | *********************************************************************************/
|
| 252 |
|
| 253 | UINT16 nr_u_fak; /********************************************************************************
|
| 254 | ¹¦ÄÜ£º ÉèÖÃteakµÄÔëÒôÒÖÖÆÄ£¿éµÄ´ø¿í1µ½7µÄ½µÔëÒòËØ£»
|
| 255 | ȡֵ·¶Î§£º0µ½16384
|
| 256 |
|
| 257 | ³ö³§Öµ£º
|
| 258 | 16384
|
| 259 | *********************************************************************************/
|
| 260 | }
|
| 261 | eep_aud_hf_type;
|
| 262 |
|
| 263 | typedef struct
|
| 264 | {
|
| 265 | UINT16 coeffi; /********************************************************************************
|
| 266 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷ÊÇÉÏÐÐÂ˲¨»¹ÊÇÏÂÐÐÂ˲¨£»
|
| 267 | ȡֵ·¶Î§£º0: ÉÏÐÐ
|
| 268 | 1: ÏÂÐÐ
|
| 269 | 2: CBuf
|
| 270 |
|
| 271 | ³ö³§Öµ£º
|
| 272 | ÉÏÐеÄÂ˲¨Æ÷(aud_uplink_biquad_filters)Ϊ: 0
|
| 273 | ÏÂÐеÄÂ˲¨Æ÷(aud_downlink_biquad_filters)Ϊ: 1
|
| 274 | CBuf Â˲¨Æ÷ Ϊ: 2
|
| 275 | *********************************************************************************/
|
| 276 |
|
| 277 | UINT16 a1_1; /********************************************************************************
|
| 278 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 279 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 280 |
|
| 281 | ³ö³§Öµ£º
|
| 282 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].a1_1=14878£¬ÆäÓ඼Ϊ0£»
|
| 283 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].a1_1=35445£¬ÆäÓ඼Ϊ0£»
|
| 284 | CBuf Â˲¨Æ÷µÄaud_cbuf_biquad_filters[0].a1_1=57878; ÆäÓ඼Ϊ0¡£
|
| 285 | *********************************************************************************/
|
| 286 |
|
| 287 | UINT16 b1_1; /********************************************************************************
|
| 288 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 289 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 290 |
|
| 291 | ³ö³§Öµ£º
|
| 292 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].b1_1=13372£¬ÆäÓ඼Ϊ0£»
|
| 293 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].b1_1=35572£¬ÆäÓ඼Ϊ0£»
|
| 294 | CBuf Â˲¨Æ÷µÄaud_cbuf_biquad_filters[0].b1_1=45294£¬ÆäÓ඼Ϊ0¡£
|
| 295 | *********************************************************************************/
|
| 296 |
|
| 297 | UINT16 a2_1; /********************************************************************************
|
| 298 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 299 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 300 |
|
| 301 | ³ö³§Öµ£º
|
| 302 | ÉÏÐÐÂ˲¨Æ÷µÄa2_1¶¼Îª0£»
|
| 303 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].a2_1=30091£¬ÆäÓ඼Ϊ0£»
|
| 304 | CBuf Â˲¨Æ÷µÄaud_cbuf_biquad_filters[0].a2_1=5321£¬ÆäÓ඼Ϊ0¡£
|
| 305 | *********************************************************************************/
|
| 306 |
|
| 307 | UINT16 b2_1; /********************************************************************************
|
| 308 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 309 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 310 |
|
| 311 | ³ö³§Öµ£º
|
| 312 | ÉÏÐÐÂ˲¨Æ÷µÄb2_1¶¼Îª0£»
|
| 313 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].b2_1=27668£¬ÆäÓ඼Ϊ0£»
|
| 314 | CBuf Â˲¨Æ÷µÄaud_cbuf_biquad_filters[0].b2_1=14049£¬ÆäÓ඼Ϊ0¡£
|
| 315 | *********************************************************************************/
|
| 316 |
|
| 317 | UINT16 a0_1; /********************************************************************************
|
| 318 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 319 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 320 |
|
| 321 | ³ö³§Öµ£º
|
| 322 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].a0_1=29756£¬ÆäÓ඼Ϊ32767£»
|
| 323 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].a0_1=30091£¬ÆäÓ඼Ϊ32767£»
|
| 324 | CBuf Â˲¨Æ÷µÄaud_cbuf_biquad_filters[0].a0_1=14315£¬ÆäÓ඼Ϊ32767¡£
|
| 325 | *********************************************************************************/
|
| 326 |
|
| 327 | UINT16 a1_2; /********************************************************************************
|
| 328 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 329 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 330 |
|
| 331 | ³ö³§Öµ£º
|
| 332 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].a1_2=39151£¬ÆäÓ඼Ϊ0£»
|
| 333 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].a1_2=26488£¬ÆäÓ඼Ϊ0£»
|
| 334 | CBuf Â˲¨Æ÷µÄa1_2¶¼Îª0¡£
|
| 335 | *********************************************************************************/
|
| 336 |
|
| 337 | UINT16 b1_2; /********************************************************************************
|
| 338 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 339 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 340 |
|
| 341 | ³ö³§Öµ£º
|
| 342 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].b1_2=36192£¬ÆäÓ඼Ϊ0£»
|
| 343 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].b1_2=24996£¬ÆäÓ඼Ϊ0£»
|
| 344 | CBuf Â˲¨Æ÷µÄb1_2¶¼Îª0¡£
|
| 345 | *********************************************************************************/
|
| 346 |
|
| 347 | UINT16 a2_2; /********************************************************************************
|
| 348 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 349 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 350 |
|
| 351 | ³ö³§Öµ£º
|
| 352 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].a2_2=26385£¬ÆäÓ඼Ϊ0£»
|
| 353 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].a2_2=26488£¬ÆäÓ඼Ϊ0£»
|
| 354 | CBuf Â˲¨Æ÷µÄa2_2¶¼Îª0¡£
|
| 355 | *********************************************************************************/
|
| 356 |
|
| 357 | UINT16 b2_2; /********************************************************************************
|
| 358 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 359 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 360 |
|
| 361 | ³ö³§Öµ£º
|
| 362 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].b2_2=26962£¬ÆäÓ඼Ϊ0£»
|
| 363 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].b2_2=23168£¬ÆäÓ඼Ϊ0£»
|
| 364 | CBuf Â˲¨Æ÷µÄb2_2¶¼Îª0¡£
|
| 365 | *********************************************************************************/
|
| 366 |
|
| 367 | UINT16 a0_2; /********************************************************************************
|
| 368 | ¹¦ÄÜ£º ÉèÖÃteak µÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 369 | ȡֵ·¶Î§£º0µ½0xFFFF
|
| 370 |
|
| 371 | ³ö³§Öµ£º
|
| 372 | ÉÏÐÐÂ˲¨Æ÷µÄaud_uplink_biquad_filters[0].a0_2=26385£¬ÆäÓ඼Ϊ32767£»
|
| 373 | ÏÂÐÐÂ˲¨Æ÷µÄaud_downlink_biquad_filters[0].a0_2=26488£¬ÆäÓ඼Ϊ32767£»
|
| 374 | CBuf Â˲¨Æ÷µÄa0_2¶¼Îª32767¡£
|
| 375 | *********************************************************************************/
|
| 376 | }
|
| 377 | eep_aud_biquad_filters_type;
|
| 378 |
|
| 379 |
|
| 380 | typedef struct
|
| 381 | {
|
| 382 | eep_aud_downlink_gain_cells_type downlink_gain_cells; /********************************************************************************
|
| 383 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄÔöÒæ£»
|
| 384 | ȡֵ·¶Î§£º¼ûeep_aud_downlink_gain_cells_type½á¹¹Ìå
|
| 385 |
|
| 386 | ³ö³§Öµ£º
|
| 387 | ¼ûeep_aud_downlink_gain_cells_type½á¹¹Ìå
|
| 388 | *********************************************************************************/
|
| 389 |
|
| 390 | #if 0
|
| 391 | int16 biquad_filter_dl_index_8kHz; /********************************************************************************
|
| 392 | ¹¦ÄÜ£º ÉèÖÃÏÂÐÐ8KHZ biquad_filterµÄË÷ÒýÖµ£»
|
| 393 | ȡֵ·¶Î§£º0µ½20
|
| 394 |
|
| 395 | ³ö³§Öµ£º
|
| 396 | Êý×éÖÐ,µ±n =0,1,2,3,4,6,7,10,11,12,13,14,15,16,17,18,19,20,23,24,25,26,27,28ʱ:
|
| 397 | aud_audio_downlink_parms[n].biquad_filter_dl_index_8kHz=0;
|
| 398 | µ±n =5,8,9,21,22,ʱ:
|
| 399 | aud_audio_downlink_parms[n].biquad_filter_dl_index_8kHz=1;
|
| 400 | *********************************************************************************/
|
| 401 | #endif
|
| 402 | eep_aud_biquad_filters_type biquad_filter_dl_8kHz;
|
| 403 |
|
| 404 | #if 0
|
| 405 | int16 biquad_filter_dl_index_16kHz; /********************************************************************************
|
| 406 | ¹¦ÄÜ£º ÉèÖÃÏÂÐÐ16KHZ biquad_filterµÄË÷ÒýÖµ£»
|
| 407 | ȡֵ·¶Î§£º0µ½20
|
| 408 |
|
| 409 | ³ö³§Öµ£º
|
| 410 | Êý×éÖÐ,µ±n =0,1,2,3,4,6,7,10,11,12,13,14,15,16,17,18,19,20,23,24,25,26,27,28ʱ:
|
| 411 | aud_audio_downlink_parms[n].biquad_filter_dl_index_16kHz=0;
|
| 412 | µ±n =5,8,9,21,22,ʱ:
|
| 413 | aud_audio_downlink_parms[n].biquad_filter_dl_index_16kHz=1;
|
| 414 | *********************************************************************************/
|
| 415 | #endif
|
| 416 | eep_aud_biquad_filters_type biquad_filter_dl_16kHz;
|
| 417 |
|
| 418 | #if 0
|
| 419 | int16 biquad_filter_cbuf_index; /********************************************************************************
|
| 420 | ¹¦ÄÜ£º ÉèÖÃCBUF biquad_filterµÄË÷ÒýÖµ£»
|
| 421 | ȡֵ·¶Î§£º0µ½10
|
| 422 |
|
| 423 | ³ö³§Öµ£º
|
| 424 | Êý×éÖÐ,µ±n =0,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28ʱ:
|
| 425 | aud_audio_downlink_parms[n].biquad_filter_cbuf_index=0;
|
| 426 | µ±n =5ʱ:
|
| 427 | aud_audio_downlink_parms[n].biquad_filter_cbuf_index=1;
|
| 428 | *********************************************************************************/
|
| 429 | #endif
|
| 430 | eep_aud_biquad_filters_type biquad_filter_cbuf;
|
| 431 |
|
| 432 | #if 0
|
| 433 | int16 fir_filter_dl_index; /********************************************************************************
|
| 434 | ¹¦ÄÜ£º ÉèÖà teakÏÂÐеÄfir_filterµÄË÷ÒýÖµ£»
|
| 435 | ȡֵ·¶Î§£º0µ½5
|
| 436 |
|
| 437 | ³ö³§Öµ£º
|
| 438 | 0
|
| 439 | *********************************************************************************/
|
| 440 |
|
| 441 | int16 fir_filter_cbuf_index; /********************************************************************************
|
| 442 | ¹¦ÄÜ£º ÉèÖà teakµÄCBUFµÄ fir_filterµÄË÷ÒýÖµ£»
|
| 443 | ȡֵ·¶Î§£º0µ½5
|
| 444 |
|
| 445 | ³ö³§Öµ£º
|
| 446 | 0
|
| 447 | *********************************************************************************/
|
| 448 |
|
| 449 | int16 dl_nr_index; /********************************************************************************
|
| 450 | ¹¦ÄÜ£º ÉèÖà teakµÄÏÂÐеÄÔëÒôÒÖÖÆµÄͨµÀµÄË÷ÒýÖµ£»
|
| 451 | ȡֵ·¶Î§£º0µ½5
|
| 452 |
|
| 453 | ³ö³§Öµ£º
|
| 454 | 0
|
| 455 | *********************************************************************************/
|
| 456 |
|
| 457 | #endif
|
| 458 | UINT16 side_tone_fact; /********************************************************************************
|
| 459 | ¹¦ÄÜ£º ÉèÖà teakµÄside_toneµÄÖµ£»
|
| 460 | ȡֵ·¶Î§£º0µ½0x7FFF
|
| 461 |
|
| 462 | ³ö³§Öµ£º
|
| 463 | Êý×éÖÐ,µ±n =0,1,2,4,6,7,8,9,10,11,12,13,16,17,18,19,24,25,26,27,28ʱ:
|
| 464 | aud_audio_downlink_parms[n].side_tone_fact=500;
|
| 465 | µ±n =3,5,14,15,20,23,ʱ:
|
| 466 | aud_audio_downlink_parms[n].side_tone_fact=0;
|
| 467 | µ±n =21,22,ʱ:
|
| 468 | aud_audio_downlink_parms[n].side_tone_fact=5787;
|
| 469 | *********************************************************************************/
|
| 470 |
|
| 471 | UINT16 side_tone_fact_use; /********************************************************************************
|
| 472 | ¹¦ÄÜ£º ÉèÖÃteak µÄside_toneµÄÖµÊÇ·ñÓÉNV²ÎÊýÉèÖã»
|
| 473 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 474 | 1: ʹÓÃNV²ÎÊý
|
| 475 |
|
| 476 | ³ö³§Öµ£º
|
| 477 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,10,11,12,13,16,17,18,19,20,21,22,24,25,26,27,28ʱ:
|
| 478 | aud_audio_downlink_parms[n].side_tone_fact_use=1;
|
| 479 | µ±n =14,15,23ʱ:
|
| 480 | aud_audio_downlink_parms[n].side_tone_fact_use=0;
|
| 481 | *********************************************************************************/
|
| 482 | }
|
| 483 | eep_audio_downlink_parms_type; /* 14*2 bytes */
|
| 484 |
|
| 485 | typedef struct
|
| 486 | {
|
| 487 | UINT16 scal_mic; /********************************************************************************
|
| 488 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄscal_micÔöÒæ£»
|
| 489 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 490 | 0 db ֵΪ0x1FFF£»
|
| 491 | ³ö³§Öµ£º
|
| 492 | Êý×éÖÐ,µ±n = 0,1,4,6,7,9,13,18,19,20,21ʱ:
|
| 493 | aud_audio_uplink_parms[n].uplink_gain_cells.scal_mic=6143;
|
| 494 | µ±n = 2,3,5,12,14ʱ:
|
| 495 | aud_audio_uplink_parms[2].uplink_gain_cells.scal_mic=8192;
|
| 496 | µ±n = 10,11ʱ:
|
| 497 | aud_audio_uplink_parms[2].uplink_gain_cells.scal_mic=8191;
|
| 498 | µ±n = 8,15,16,17ʱ:
|
| 499 | aud_audio_uplink_parms[n].uplink_gain_cells.scal_mic=0;
|
| 500 | *********************************************************************************/
|
| 501 |
|
| 502 | UINT16 scal_mic_use; /********************************************************************************
|
| 503 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄscal_micÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 504 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 505 | 1: ʹÓÃNV²ÎÊý
|
| 506 |
|
| 507 | ³ö³§Öµ£º
|
| 508 | Êý×éÖÐ,µ±n =0,1,2,3,4,6,7,8,9,10,11,13,14,18,19,20,21ʱ:
|
| 509 | aud_audio_uplink_parms[n].uplink_gain_cells.scal_mic_use=1;
|
| 510 | µ±n =5,12,15,16,17ʱ:
|
| 511 | aud_audio_uplink_parms[n].uplink_gain_cells.scal_mic_use=0;
|
| 512 | *********************************************************************************/
|
| 513 |
|
| 514 | UINT16 lambda0; /********************************************************************************
|
| 515 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄlambda0ÔöÒæ£»
|
| 516 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 517 | 0 db ֵΪ0x7FFF£»
|
| 518 | ³ö³§Öµ£º
|
| 519 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,9,12,13,14,19,20,21ʱ:
|
| 520 | aud_audio_uplink_parms[n].uplink_gain_cells.lambda0=32767;
|
| 521 | µ±n =8,10,11,15,16,17,18ʱ:
|
| 522 | aud_audio_uplink_parms[n].uplink_gain_cells.lambda0=0;
|
| 523 | *********************************************************************************/
|
| 524 |
|
| 525 | UINT16 lambda0_use; /********************************************************************************
|
| 526 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄlambda0ÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 527 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 528 | 1: ʹÓÃNV²ÎÊý
|
| 529 |
|
| 530 | ³ö³§Öµ£º
|
| 531 | Êý×éÖÐ,µ±n =0,1,2,3,4,6,7,8,9,13,19,20,21ʱ:
|
| 532 | aud_audio_uplink_parms[n].uplink_gain_cells.lambda0_use=1;
|
| 533 | µ±n =5,10,11,12,14,15,16,17,18ʱ:
|
| 534 | aud_audio_uplink_parms[n].uplink_gain_cells.lambda0_use=0;
|
| 535 | *********************************************************************************/
|
| 536 |
|
| 537 | UINT16 gamma0; /********************************************************************************
|
| 538 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄgamma0ÔöÒæ£»
|
| 539 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 540 | 0 db ֵΪ0x7FFF£»
|
| 541 | ³ö³§Öµ£º
|
| 542 | Êý×éÖÐ,µ±n =0,1,2,3,4,5,6,7,8,9,12,13,14,19,20,21ʱ:
|
| 543 | aud_audio_uplink_parms[n].uplink_gain_cells.gamma0=32767;
|
| 544 | µ±n =10,11,15,16,17,18ʱ:
|
| 545 | aud_audio_uplink_parms[n].uplink_gain_cells.gamma0=0;
|
| 546 | *********************************************************************************/
|
| 547 |
|
| 548 | UINT16 gamma0_use; /********************************************************************************
|
| 549 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄgamma0ÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 550 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 551 | 1: ʹÓÃNV²ÎÊý
|
| 552 |
|
| 553 | ³ö³§Öµ£º
|
| 554 | Êý×éÖÐ,µ±n =5,8,10,11,12,14,15,16,17,18ʱ:
|
| 555 | aud_audio_uplink_parms[n].uplink_gain_cells.gamma0_use=0
|
| 556 | µ±n =0,1,2,3,4,6,7,9,13,19,20,21ʱ:
|
| 557 | aud_audio_uplink_parms[n].uplink_gain_cells.gamma0_use=1
|
| 558 | *********************************************************************************/
|
| 559 |
|
| 560 | UINT16 scal_afe; /********************************************************************************
|
| 561 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄscal_afeÔöÒæ£»
|
| 562 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 563 | 0 db ֵΪ0x1FFF£»
|
| 564 | ³ö³§Öµ£º
|
| 565 | Êý×éÖУ¬³ýÁËaud_audio_uplink_parms[5].uplink_gain_cells.scal_afe=8192,
|
| 566 | ÆäÓ඼Ϊ0.
|
| 567 | *********************************************************************************/
|
| 568 |
|
| 569 | UINT16 scal_afe_use; /********************************************************************************
|
| 570 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄscal_afeÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 571 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 572 | 1: ʹÓÃNV²ÎÊý
|
| 573 |
|
| 574 | ³ö³§Öµ£º
|
| 575 | Êý×éÖУ¬³ýÁËaud_audio_uplink_parms[5].uplink_gain_cells.scal_afe_use=1,
|
| 576 | ÆäÓàaud_audio_uplink_parms[n].uplink_gain_cells.scal_afe_use=0.
|
| 577 | *********************************************************************************/
|
| 578 |
|
| 579 | UINT16 scal_mic2; /********************************************************************************
|
| 580 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄscal_mic2ÔöÒæ£»
|
| 581 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 582 | 0 db ֵΪ0x1FFF£»
|
| 583 | ³ö³§Öµ£º
|
| 584 | Êý×éÖÐ,aud_audio_uplink_parms[5].uplink_gain_cells.scal_mic2=8192;
|
| 585 | ÆäÓ඼Ϊ0.
|
| 586 | *********************************************************************************/
|
| 587 |
|
| 588 | UINT16 scal_mic2_use; /********************************************************************************
|
| 589 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄscal_mic2ÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 590 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 591 | 1: ʹÓÃNV²ÎÊý
|
| 592 |
|
| 593 | ³ö³§Öµ£º
|
| 594 | Êý×éÖÐ,µ±n =0,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21ʱ:
|
| 595 | aud_audio_uplink_parms[n].uplink_gain_cells.scal_mic2_use=0;
|
| 596 | µ±n =5ʱ:
|
| 597 | aud_audio_uplink_parms[n].uplink_gain_cells.scal_mic2_use=1;
|
| 598 | *********************************************************************************/
|
| 599 |
|
| 600 | UINT16 afe_tone; /********************************************************************************
|
| 601 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄafe_toneÔöÒæ£»
|
| 602 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 603 | 0 db ֵΪ0x3FFF£»
|
| 604 | ³ö³§Öµ£º
|
| 605 | Êý×éÖÐ,aud_audio_uplink_parms[5].uplink_gain_cells.afe_tone=16384;
|
| 606 | ÆäÓ඼Ϊ0.
|
| 607 | *********************************************************************************/
|
| 608 |
|
| 609 | UINT16 afe_tone_use; /********************************************************************************
|
| 610 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄafe_toneÔöÒæÊÇ·ñÊÇÓÉNV²ÎÊýÉèÖã»
|
| 611 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 612 | 1: ʹÓÃNV²ÎÊý
|
| 613 |
|
| 614 | ³ö³§Öµ£º
|
| 615 | Êý×éÖÐ,aud_audio_uplink_parms[5].uplink_gain_cells.afe_tone_use=1;
|
| 616 | ÆäÓ඼Ϊ0.
|
| 617 | *********************************************************************************/
|
| 618 |
|
| 619 | UINT16 mix_pcmrec; /********************************************************************************
|
| 620 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеĻìºÏPCMÒôÀÖµÄmix_pcmrecÔöÒæ£»
|
| 621 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 622 | 0 db ֵΪ0x3FFF£»
|
| 623 | ³ö³§Öµ£º
|
| 624 | Êý×éÖÐ,aud_audio_uplink_parms[12].uplink_gain_cells.mix_pcmrec=1;
|
| 625 | ÆäÓ඼Ϊ0.
|
| 626 | *********************************************************************************/
|
| 627 | }
|
| 628 | eep_aud_uplink_gain_cells_type;
|
| 629 |
|
| 630 |
|
| 631 | typedef struct
|
| 632 | {
|
| 633 | eep_aud_uplink_gain_cells_type uplink_gain_cells; /********************************************************************************
|
| 634 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄÔöÒæ£»
|
| 635 | ȡֵ·¶Î§£º¼ûeep_aud_uplink_gain_cells_type½á¹¹Ìå
|
| 636 |
|
| 637 | ³ö³§Öµ£º
|
| 638 | ¼ûeep_aud_uplink_gain_cells_type½á¹¹Ìå
|
| 639 | *********************************************************************************/
|
| 640 |
|
| 641 | #if 0
|
| 642 | int16 biquad_filter_ul_index_8kHz; /********************************************************************************
|
| 643 | ¹¦ÄÜ£º ÉèÖÃÉÏÐÐ8KHZ biquad_filterµÄË÷ÒýÖµ£»
|
| 644 | ȡֵ·¶Î§£º0µ½30
|
| 645 |
|
| 646 | ³ö³§Öµ£º
|
| 647 | Êý×éÖÐ,µ±n =0,1,2,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21ʱ:
|
| 648 | aud_audio_uplink_parms[n].biquad_filter_ul_index_8kHz=0;
|
| 649 | µ±n =3,10,11ʱ:
|
| 650 | aud_audio_uplink_parms[n].biquad_filter_ul_index_8kHz=1;
|
| 651 | *********************************************************************************/
|
| 652 | #endif
|
| 653 | eep_aud_biquad_filters_type biquad_filter_ul_8kHz;
|
| 654 |
|
| 655 | #if 0
|
| 656 | int16 biquad_filter_ul_index_16kHz; /********************************************************************************
|
| 657 | ¹¦ÄÜ£º ÉèÖÃÉÏÐÐ16KHZ biquad_filterµÄË÷ÒýÖµ£»
|
| 658 | ȡֵ·¶Î§£º0µ½30
|
| 659 |
|
| 660 | ³ö³§Öµ£º
|
| 661 | Êý×éÖÐ,µ±n =0,1,2,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21ʱ:
|
| 662 | aud_audio_uplink_parms[n].biquad_filter_ul_index_16kHz=0;
|
| 663 | µ±n =3,10,11ʱ:
|
| 664 | aud_audio_uplink_parms[n].biquad_filter_ul_index_16kHz=1;
|
| 665 | *********************************************************************************/
|
| 666 | #endif
|
| 667 | eep_aud_biquad_filters_type biquad_filter_ul_16kHz;
|
| 668 |
|
| 669 | #if 0
|
| 670 | int16 biquad_filter_ul_index_48kHz; /********************************************************************************
|
| 671 | ¹¦ÄÜ£º ÉèÖÃÉÏÐÐ48KHZ biquad_filterµÄË÷ÒýÖµ£»
|
| 672 | ȡֵ·¶Î§£º0µ½30
|
| 673 |
|
| 674 | ³ö³§Öµ£º
|
| 675 | Êý×éÖÐ,µ±n =0,1,2,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21ʱ:
|
| 676 | aud_audio_uplink_parms[n].biquad_filter_ul_index_48kHz=0;
|
| 677 | µ±n =3,10,11ʱ:
|
| 678 | aud_audio_uplink_parms[n].biquad_filter_ul_index_48kHz=1;
|
| 679 | *********************************************************************************/
|
| 680 | #endif
|
| 681 | eep_aud_biquad_filters_type biquad_filter_ul_48kHz;
|
| 682 |
|
| 683 | #if 0
|
| 684 | int16 fir_filter_ul_index; /********************************************************************************
|
| 685 | ¹¦ÄÜ£º ÉèÖà teakÉÏÐеÄfir_filterµÄË÷ÒýÖµ£»
|
| 686 | ȡֵ·¶Î§£º0µ½5
|
| 687 |
|
| 688 | ³ö³§Öµ£º
|
| 689 | 0
|
| 690 | *********************************************************************************/
|
| 691 | #endif
|
| 692 |
|
| 693 | #if 0
|
| 694 | int16 hf_index; /********************************************************************************
|
| 695 | ¹¦ÄÜ£º ÉèÖà teakµÄhandsfreeµÄË÷ÒýÖµ£»
|
| 696 | ȡֵ·¶Î§£º0µ½8
|
| 697 |
|
| 698 | ³ö³§Öµ£º
|
| 699 | Êý×éÖÐ,µ±n =0,6,8,9,20,21ʱ:
|
| 700 | aud_audio_uplink_parms[n].hf_index=0;
|
| 701 | µ±n =1,2,4,5,10,11,12,13,14,15,16,17,18,19ʱ:
|
| 702 | aud_audio_uplink_parms[n].hf_index=1;
|
| 703 | µ±n =7ʱ:
|
| 704 | aud_audio_uplink_parms[n].hf_index=2;
|
| 705 | µ±n =3ʱ:
|
| 706 | aud_audio_uplink_parms[n].hf_index=3;
|
| 707 | *********************************************************************************/
|
| 708 | #endif
|
| 709 | eep_aud_hf_type hf;
|
| 710 |
|
| 711 | #if 0
|
| 712 | int16 asp_ul_index; /********************************************************************************
|
| 713 | ¹¦ÄÜ£º ÉèÖà teakµÄÉÏÐеÄASPµÄË÷ÒýÖµ£»
|
| 714 | ȡֵ·¶Î§£º0µ½5
|
| 715 |
|
| 716 | ³ö³§Öµ£º
|
| 717 | 0
|
| 718 | *********************************************************************************/
|
| 719 | #endif
|
| 720 |
|
| 721 | UINT16 mic_gain; /********************************************************************************
|
| 722 | ¹¦ÄÜ£º ÉèÖà teakµÄÉÏÐеÄmic_gainÔöÒæ£»
|
| 723 | ȡֵ·¶Î§£º0x0µ½0x10
|
| 724 |
|
| 725 | ³ö³§Öµ£º
|
| 726 | Êý×éÖÐ,µ±n =0,1,4,7,12,13,14,18,20,21ʱ:
|
| 727 | aud_audio_uplink_parms[n].mic_gain=10;
|
| 728 | µ±n =2,3,ʱ:
|
| 729 | aud_audio_uplink_parms[n].mic_gain=6;
|
| 730 | µ±n =5,ʱ:
|
| 731 | aud_audio_uplink_parms[n].mic_gain=2;
|
| 732 | µ±n =6,19ʱ:
|
| 733 | aud_audio_uplink_parms[n].mic_gain=14;
|
| 734 | µ±n =8,9,ʱ:
|
| 735 | aud_audio_uplink_parms[n].mic_gain=5;
|
| 736 | µ±n =10,11,15,16,17,ʱ:
|
| 737 | aud_audio_uplink_parms[n].mic_gain=0;
|
| 738 | *********************************************************************************/
|
| 739 |
|
| 740 | UINT16 mic_gain_use; /********************************************************************************
|
| 741 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄmic_gainÔöÒæÊÇ·ñÓÉNV²ÎÊýÉèÖã»
|
| 742 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 743 | 1: ʹÓÃNV²ÎÊý
|
| 744 |
|
| 745 | ³ö³§Öµ£º
|
| 746 | Êý×éÖÐ,µ±n =0,1,2,4,5,6,7,9,10,11,13,14,18,19,20,21ʱ:
|
| 747 | aud_audio_uplink_parms[n].mic_gain_use=1;
|
| 748 | µ±n =8,12,15,16,17ʱ:
|
| 749 | aud_audio_uplink_parms[n].mic_gain_use=0;
|
| 750 | *********************************************************************************/
|
| 751 |
|
| 752 | #if 0
|
| 753 | UINT16 tx_dither; /********************************************************************************
|
| 754 | ¹¦ÄÜ£º AFEµÄÏà¹ØÉèÖã»
|
| 755 | ȡֵ·¶Î§£ºnot used
|
| 756 |
|
| 757 |
|
| 758 | ³ö³§Öµ£º
|
| 759 | 0
|
| 760 | *********************************************************************************/
|
| 761 |
|
| 762 | UINT16 tx_dither_use; /********************************************************************************
|
| 763 | ¹¦ÄÜ£º AFEµÄÏà¹ØÉèÖÃÊÇ·ñÓÉNV²ÎÊýÉèÖã»
|
| 764 | ȡֵ·¶Î§£º0: ²»Ê¹ÓÃ
|
| 765 | 1: ʹÓÃNV²ÎÊý
|
| 766 |
|
| 767 | ³ö³§Öµ£º
|
| 768 | 0
|
| 769 | *********************************************************************************/
|
| 770 | #endif
|
| 771 | }
|
| 772 | eep_audio_uplink_parms_type; /* 23*2 bytes */
|
| 773 |
|
| 774 | typedef struct
|
| 775 | {
|
| 776 | unsigned char audio_parms_from_eep_used; /********************************************************************************
|
| 777 | ¹¦ÄÜ£º ÉèÖÃteak ÊÇ·ñʹÓÃNV²ÎÊýµÄÖµ£»
|
| 778 | ȡֵ·¶Î§£º0: ²»Ê¹ ÓÃ(false)
|
| 779 | 1: ʹÓã»(true)
|
| 780 | ³ö³§Öµ£º
|
| 781 | 1
|
| 782 | *********************************************************************************/
|
| 783 |
|
| 784 | #if 0
|
| 785 | unsigned char aud_use_filters_ul; /********************************************************************************
|
| 786 | ¹¦ÄÜ£º ÉèÖÃteak ÊÇ·ñʹÓÃÓïÒôͨ·µÄÉÏÐÐÂ˲¨Æ÷£»
|
| 787 | ȡֵ·¶Î§£º0: ²»Ê¹ ÓÃ(none)
|
| 788 | 1: ʹÓÃfirÂ˲¨Æ÷ (fir)
|
| 789 | 4: ʹÓÃbiquadÂ˲¨Æ÷ (biquad)
|
| 790 | 5: ʹÓÃfir+biquadÂ˲¨Æ÷(fir+biquad)
|
| 791 | ³ö³§Öµ£º
|
| 792 | 1
|
| 793 | *********************************************************************************/
|
| 794 |
|
| 795 |
|
| 796 | unsigned char aud_use_filters_dl; /********************************************************************************
|
| 797 | ¹¦ÄÜ£º ÉèÖÃteak ÊÇ·ñʹÓÃÓïÒôͨ·µÄÏÂÐÐÂ˲¨Æ÷£»
|
| 798 | ȡֵ·¶Î§£º0: ²»Ê¹ ÓÃ(none)
|
| 799 | 1: ʹÓÃfirÂ˲¨Æ÷ (fir)
|
| 800 | 4: ʹÓÃbiquadÂ˲¨Æ÷ (biquad)
|
| 801 | 5: ʹÓÃfir+biquadÂ˲¨Æ÷(fir+biquad)
|
| 802 | ³ö³§Öµ£º
|
| 803 | 1
|
| 804 | *********************************************************************************/
|
| 805 |
|
| 806 | unsigned char aud_use_filters_cbuf; /********************************************************************************
|
| 807 | ¹¦ÄÜ£º ÉèÖÃteak ÊÇ·ñʹÓÃcircular buffer 48KHZͨ·ÉϵÄÂ˲¨Æ÷£»
|
| 808 | ȡֵ·¶Î§£º0: ²»Ê¹ ÓÃ(none)
|
| 809 | 1: ʹÓÃfirÂ˲¨Æ÷ (fir)
|
| 810 | 4: ʹÓÃbiquadÂ˲¨Æ÷ (biquad)
|
| 811 | 5: ʹÓÃfir+biquadÂ˲¨Æ÷(fir+biquad)
|
| 812 | ³ö³§Öµ£º
|
| 813 | 1
|
| 814 | *********************************************************************************/
|
| 815 |
|
| 816 | #endif
|
| 817 | #if 0
|
| 818 | eep_aud_biquad_filters_type aud_uplink_biquad_filters[EEP_AUD_BIQUAD_FILTERS_UL]; /********************************************************************************
|
| 819 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 820 | ȡֵ·¶Î§£º
|
| 821 | ¼ûeep_aud_biquad_filters_type½á¹¹Ì壻
|
| 822 | ³ö³§Öµ£º
|
| 823 | ¼ûeep_aud_biquad_filters_type½á¹¹Ì壻
|
| 824 | *********************************************************************************/
|
| 825 |
|
| 826 |
|
| 827 | eep_aud_biquad_filters_type aud_downlink_biquad_filters[EEP_AUD_BIQUAD_FILTERS_DL]; /********************************************************************************
|
| 828 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄbiquadÂ˲¨Æ÷²ÎÊý£»
|
| 829 | ȡֵ·¶Î§£º
|
| 830 | ¼ûeep_aud_biquad_filters_type½á¹¹Ì壻
|
| 831 | ³ö³§Öµ£º
|
| 832 | ¼ûeep_aud_biquad_filters_type½á¹¹Ì壻
|
| 833 | *********************************************************************************/
|
| 834 |
|
| 835 | eep_aud_biquad_filters_type aud_cbuf_biquad_filters[EEP_AUD_BIQUAD_FILTERS_CBUF]; /********************************************************************************
|
| 836 | ¹¦ÄÜ£º ÉèÖÃteak µÄcircular buffer 48KHZͨ·ÉϵÄÂ˲¨Æ÷²ÎÊý£»
|
| 837 | ȡֵ·¶Î§£º
|
| 838 | ¼ûeep_aud_biquad_filters_type½á¹¹Ì壻
|
| 839 | ³ö³§Öµ£º
|
| 840 | ¼ûeep_aud_biquad_filters_type½á¹¹Ì壻
|
| 841 | *********************************************************************************/
|
| 842 |
|
| 843 | #endif
|
| 844 | #if 0
|
| 845 | eep_aud_fir_filter_type aud_uplink_fir_filters[EEP_AUD_FIR_FILTERS_UL]; /********************************************************************************
|
| 846 | ¹¦ÄÜ£º ÉèÖÃteak ÉÏÐеÄfirÂ˲¨Æ÷²ÎÊý£»
|
| 847 | ȡֵ·¶Î§£º
|
| 848 | ¼ûeep_aud_fir_filter_type½á¹¹Ì壻
|
| 849 | ³ö³§Öµ£º
|
| 850 | ¼ûeep_aud_fir_filter_type½á¹¹Ì壻
|
| 851 | *********************************************************************************/
|
| 852 |
|
| 853 | eep_aud_fir_filter_type aud_downlink_fir_filters[EEP_AUD_FIR_FILTERS_DL]; /********************************************************************************
|
| 854 | ¹¦ÄÜ£º ÉèÖÃteak ÏÂÐеÄfirÂ˲¨Æ÷²ÎÊý£»
|
| 855 | ȡֵ·¶Î§£º
|
| 856 | ¼ûeep_aud_fir_filter_type½á¹¹Ì壻
|
| 857 | ³ö³§Öµ£º
|
| 858 | ¼ûeep_aud_fir_filter_type½á¹¹Ì壻
|
| 859 | *********************************************************************************/
|
| 860 |
|
| 861 |
|
| 862 | eep_aud_fir_filter_type aud_cbuf_fir_filters[EEP_AUD_FIR_FILTERS_CBUF]; /********************************************************************************
|
| 863 | ¹¦ÄÜ£º ÉèÖÃteakµÄcircular buffer 48KHZͨ·ÉϵÄÂ˲¨Æ÷²ÎÊý£»
|
| 864 | ȡֵ·¶Î§£º
|
| 865 | ¼ûeep_aud_fir_filter_type½á¹¹Ì壻
|
| 866 | ³ö³§Öµ£º
|
| 867 | ¼ûeep_aud_fir_filter_type½á¹¹Ì壻
|
| 868 | *********************************************************************************/
|
| 869 |
|
| 870 | eep_aud_hf_type aud_hf[EEP_AUD_HF]; /********************************************************************************
|
| 871 | ¹¦ÄÜ£º ÉèÖÃteakµÄhandsfreeµÄ²ÎÊý£»
|
| 872 | ȡֵ·¶Î§£º
|
| 873 | ¼ûeep_aud_hf_type½á¹¹Ì壻
|
| 874 | ³ö³§Öµ£º
|
| 875 | ¼ûeep_aud_hf_type½á¹¹Ì壻
|
| 876 | *********************************************************************************/
|
| 877 |
|
| 878 | #endif
|
| 879 | #if 0
|
| 880 | eep_aud_asp_ul_type aud_asp_ul[EEP_AUD_ASP_UL]; /********************************************************************************
|
| 881 | ¹¦ÄÜ£º ÉèÖÃteakµÄÉÏÐÐͨµÀÉÏÕðµ´±£»¤µÄ²ÎÊý£»
|
| 882 | ȡֵ·¶Î§£º
|
| 883 | ¼ûeep_aud_asp_ul_type½á¹¹Ì壻
|
| 884 | ³ö³§Öµ£º
|
| 885 | ¼ûeep_aud_asp_ul_type½á¹¹Ì壻
|
| 886 | *********************************************************************************/
|
| 887 |
|
| 888 | eep_aud_dl_nr_type aud_dl_nr[EEP_AUD_DL_NR]; /********************************************************************************
|
| 889 | ¹¦ÄÜ£º ÉèÖÃteakµÄÏÂÐÐͨµÀÉϽµµÍÔëÒôµÄ²ÎÊý£»
|
| 890 | ȡֵ·¶Î§£º
|
| 891 | ¼ûeep_aud_dl_nr_type½á¹¹Ì壻
|
| 892 | ³ö³§Öµ£º
|
| 893 | ¼ûeep_aud_dl_nr_type½á¹¹Ì壻
|
| 894 | *********************************************************************************/
|
| 895 |
|
| 896 | #endif
|
| 897 | eep_audio_uplink_parms_type aud_audio_uplink_parms[EEP_AUD_UPLINK_PATHS]; /********************************************************************************
|
| 898 | ¹¦ÄÜ£º ÉèÖÃteakµÄÉÏÐÐÓïÒôͨ·ÉϵIJÎÊý£»
|
| 899 | ȡֵ·¶Î§£º
|
| 900 | ¼ûeep_audio_uplink_parms_type½á¹¹Ì壻
|
| 901 | ³ö³§Öµ£º
|
| 902 | ¼ûeep_audio_uplink_parms_type½á¹¹Ì壻
|
| 903 | *********************************************************************************/
|
| 904 |
|
| 905 | eep_audio_downlink_parms_type aud_audio_downlink_parms[EEP_AUD_DOWNLINK_PATHS]; /********************************************************************************
|
| 906 | ¹¦ÄÜ£º ÉèÖÃteakµÄÏÂÐÐÓïÒôͨ·ÉϵIJÎÊý£»
|
| 907 | ȡֵ·¶Î§£º
|
| 908 | ¼ûeep_audio_downlink_parms_type½á¹¹Ì壻
|
| 909 | ³ö³§Öµ£º
|
| 910 | ¼ûeep_audio_downlink_parms_type½á¹¹Ì壻
|
| 911 | *********************************************************************************/
|
| 912 |
|
| 913 | #if 0
|
| 914 | unsigned char fill[2]; /********************************************************************************
|
| 915 | ¹¦ÄÜ£º Ìî³äλ£»
|
| 916 | ȡֵ·¶Î§£º0 µ½ 255
|
| 917 |
|
| 918 | ³ö³§Öµ£º
|
| 919 | 255
|
| 920 | *********************************************************************************/
|
| 921 | #endif
|
| 922 | }
|
| 923 | eep_aud_path_data_type;
|
| 924 |
|
| 925 | typedef struct
|
| 926 | {
|
| 927 | SINT16 mix_afe; /********************************************************************************
|
| 928 | ¹¦ÄÜ£º ÉèÖûìºÏµ½AFEµÄÒôƵ×ÊÔ´ÔöÒæÖµ£»
|
| 929 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 930 | 0 db ֵΪ0x3FFF£»
|
| 931 | ³ö³§Öµ£º
|
| 932 | aud_cbuf_mix_parms[5].mix_afe=0,ÆäÓ඼Ϊ32767¡£
|
| 933 | *********************************************************************************/
|
| 934 |
|
| 935 | SINT16 mix_i2s1; /********************************************************************************
|
| 936 | ¹¦ÄÜ£º ÉèÖûìºÏµ½I2S1µÄÒôƵ×ÊÔ´ÔöÒæÖµ£»
|
| 937 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 938 | 0 db ֵΪ0x3FFF£»
|
| 939 | ³ö³§Öµ£º
|
| 940 | aud_cbuf_mix_parms[5].mix_i2s1=0£¬ÆäÓ඼Ϊ32767¡£
|
| 941 | *********************************************************************************/
|
| 942 | }
|
| 943 | eepaud_static_cbuf_mix_parms_type;
|
| 944 |
|
| 945 | typedef SINT16 eep_aud_region_type;
|
| 946 |
|
| 947 | /********************************************************************************
|
| 948 | ¹¦ÄÜ£º ÉèÖÃteakµÄÉÏÐÐÓïÒôͨµÀµÄÔöÒæ£»
|
| 949 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 950 | 0 db ֵΪ0x1FFF£»
|
| 951 |
|
| 952 | ³ö³§Öµ£º
|
| 953 | ÔÚ³ÌÐòÖÐΪһ¸ö32λµÄÊý×é
|
| 954 | ÔÚÊý×é[0] µ½ [31] ÖУ¬³ýÁË[3]Ϊ0x5000£¬ÆäÓ඼Ϊ0x2000
|
| 955 | *********************************************************************************/
|
| 956 | typedef struct
|
| 957 | {
|
| 958 | SINT16 scal_in;
|
| 959 | }
|
| 960 | eepaud_static_scal_in_parms_type;
|
| 961 |
|
| 962 | /********************************************************************************
|
| 963 | ¹¦ÄÜ£º ÉèÖÃteakµÄÏÂÐÐÓïÒôͨµÀµÄÔöÒæ£»
|
| 964 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 965 | 0 db ֵΪ0x1FFF£»
|
| 966 |
|
| 967 | ³ö³§Öµ£º
|
| 968 | 0x2000
|
| 969 | *********************************************************************************/
|
| 970 | typedef struct
|
| 971 | {
|
| 972 | SINT16 scal_out;
|
| 973 | }
|
| 974 | eepaud_static_scal_out_parms_type;
|
| 975 |
|
| 976 | /*[Begin] [lvwenhua-2010/9/16]*/
|
| 977 | typedef struct
|
| 978 | {
|
| 979 | SINT16 scal_i2s1;
|
| 980 | }
|
| 981 | eepaud_static_scal_i2s1_parms_type;
|
| 982 |
|
| 983 | typedef struct
|
| 984 | {
|
| 985 | SINT16 scal_rec;
|
| 986 | }
|
| 987 | eepaud_static_scal_rec_parms_type;
|
| 988 | /*[End] [lvwenhua-2010/9/16]*/
|
| 989 |
|
| 990 | typedef struct
|
| 991 | {
|
| 992 | UINT16 gain[EEP_VOICE_OUTPUT_VOL_LEVELS];
|
| 993 | } eep_voice_volume_config_type;
|
| 994 |
|
| 995 | typedef struct
|
| 996 | {
|
| 997 | UINT16 gain[EEP_MIDI_OUTPUT_VOL_LEVELS];
|
| 998 | } eep_midi_volume_config_type;
|
| 999 |
|
| 1000 | typedef struct
|
| 1001 | {
|
| 1002 | UINT16 gain[EEP_TONE_OUTPUT_VOL_LEVELS];
|
| 1003 | } eep_tone_volume_config_type;
|
| 1004 |
|
| 1005 | #ifdef _USE_CODEC_TLV3212
|
| 1006 | typedef enum
|
| 1007 | {
|
| 1008 | PMIC_MIC_GAIN_MINUS_12DB = 0,
|
| 1009 | PMIC_MIC_GAIN_MINUS_9DB,
|
| 1010 | PMIC_MIC_GAIN_MINUS_6DB,
|
| 1011 | PMIC_MIC_GAIN_MINUS_3DB,
|
| 1012 | PMIC_MIC_GAIN_0DB,
|
| 1013 | PMIC_MIC_GAIN_PLUS_3DB,
|
| 1014 | PMIC_MIC_GAIN_PLUS_6DB,
|
| 1015 | PMIC_MIC_GAIN_PLUS_9DB,
|
| 1016 | PMIC_MIC_GAIN_PLUS_12DB,
|
| 1017 | PMIC_MIC_GAIN_PLUS_15DB,
|
| 1018 | PMIC_MIC_GAIN_PLUS_18DB,
|
| 1019 | PMIC_MIC_GAIN_MAX
|
| 1020 |
|
| 1021 | } EEP_PMIC_AUDIO_MIC_GAIN;
|
| 1022 |
|
| 1023 | typedef enum
|
| 1024 | {
|
| 1025 | PMIC_OUTPGA_GAIN_PLUS_24DB = 0,
|
| 1026 | PMIC_OUTPGA_GAIN_PLUS_21DB,
|
| 1027 | PMIC_OUTPGA_GAIN_PLUS_18DB,
|
| 1028 | PMIC_OUTPGA_GAIN_PLUS_15DB,
|
| 1029 | PMIC_OUTPGA_GAIN_PLUS_12DB,
|
| 1030 | PMIC_OUTPGA_GAIN_PLUS_9DB,
|
| 1031 | PMIC_OUTPGA_GAIN_PLUS_6DB,
|
| 1032 | PMIC_OUTPGA_GAIN_PLUS_3DB,
|
| 1033 | PMIC_OUTPGA_GAIN_0DB,
|
| 1034 | PMIC_OUTPGA_GAIN_MINUS_3DB,
|
| 1035 | PMIC_OUTPGA_GAIN_MINUS_6DB,
|
| 1036 | PMIC_OUTPGA_GAIN_MINUS_9DB,
|
| 1037 | PMIC_OUTPGA_GAIN_MINUS_12DB,
|
| 1038 | PMIC_OUTPGA_GAIN_MINUS_15DB,
|
| 1039 | PMIC_OUTPGA_GAIN_MINUS_18DB,
|
| 1040 | PMIC_OUTPGA_GAIN_MINUS_21DB,
|
| 1041 | PMIC_OUTPGA_GAIN_MINUS_24DB,
|
| 1042 | PMIC_OUTPGA_GAIN_MINUS_27DB,
|
| 1043 | PMIC_OUTPGA_GAIN_MINUS_30DB,
|
| 1044 | PMIC_OUTPGA_GAIN_MINUS_33DB,
|
| 1045 | PMIC_OUTPGA_GAIN_MINUS_36DB,
|
| 1046 | PMIC_OUTPGA_GAIN_MINUS_39DB,
|
| 1047 | PMIC_OUTPGA_GAIN_MINUS_42DB,
|
| 1048 | PMIC_OUTPGA_GAIN_MINUS_45DB,
|
| 1049 | PMIC_OUTPGA_GAIN_MINUS_48DB,
|
| 1050 | PMIC_OUTPGA_GAIN_MINUS_51DB,
|
| 1051 | PMIC_OUTPGA_GAIN_MINUS_54DB,
|
| 1052 | PMIC_OUTPGA_GAIN_MINUS_57DB,
|
| 1053 | PMIC_OUTPGA_GAIN_MINUS_60DB,
|
| 1054 | PMIC_OUTPGA_GAIN_MINUS_63DB,
|
| 1055 | PMIC_OUTPGA_GAIN_MAX
|
| 1056 |
|
| 1057 | } EEP_PMIC_AUDIO_OUTPUT_PGA_GAIN;
|
| 1058 | /*added by miaolin 20130805*/
|
| 1059 |
|
| 1060 | #else
|
| 1061 |
|
| 1062 | typedef enum
|
| 1063 | {
|
| 1064 | PMIC_MIC_GAIN_MINUS_12DB = 0,
|
| 1065 | PMIC_MIC_GAIN_MINUS_9DB,
|
| 1066 | PMIC_MIC_GAIN_MINUS_6DB,
|
| 1067 | PMIC_MIC_GAIN_MINUS_3DB,
|
| 1068 | PMIC_MIC_GAIN_0DB,
|
| 1069 | PMIC_MIC_GAIN_PLUS_3DB,
|
| 1070 | PMIC_MIC_GAIN_PLUS_6DB,
|
| 1071 | PMIC_MIC_GAIN_PLUS_9DB,
|
| 1072 | PMIC_MIC_GAIN_PLUS_12DB,
|
| 1073 | PMIC_MIC_GAIN_PLUS_15DB,
|
| 1074 | PMIC_MIC_GAIN_PLUS_18DB,
|
| 1075 | PMIC_MIC_GAIN_MAX
|
| 1076 |
|
| 1077 | } EEP_PMIC_AUDIO_MIC_GAIN;
|
| 1078 |
|
| 1079 | typedef enum
|
| 1080 | {
|
| 1081 | PMIC_OUTPGA_GAIN_PLUS_24DB = 0,
|
| 1082 | PMIC_OUTPGA_GAIN_PLUS_21DB,
|
| 1083 | PMIC_OUTPGA_GAIN_PLUS_18DB,
|
| 1084 | PMIC_OUTPGA_GAIN_PLUS_15DB,
|
| 1085 | PMIC_OUTPGA_GAIN_PLUS_12DB,
|
| 1086 | PMIC_OUTPGA_GAIN_PLUS_9DB,
|
| 1087 | PMIC_OUTPGA_GAIN_PLUS_6DB,
|
| 1088 | PMIC_OUTPGA_GAIN_PLUS_3DB,
|
| 1089 | PMIC_OUTPGA_GAIN_0DB,
|
| 1090 | PMIC_OUTPGA_GAIN_MINUS_3DB,
|
| 1091 | PMIC_OUTPGA_GAIN_MINUS_6DB,
|
| 1092 | PMIC_OUTPGA_GAIN_MINUS_9DB,
|
| 1093 | PMIC_OUTPGA_GAIN_MINUS_12DB,
|
| 1094 | PMIC_OUTPGA_GAIN_MINUS_15DB,
|
| 1095 | PMIC_OUTPGA_GAIN_MINUS_18DB,
|
| 1096 | PMIC_OUTPGA_GAIN_MINUS_21DB,
|
| 1097 | PMIC_OUTPGA_GAIN_MINUS_24DB,
|
| 1098 | PMIC_OUTPGA_GAIN_MINUS_27DB,
|
| 1099 | PMIC_OUTPGA_GAIN_MINUS_30DB,
|
| 1100 | PMIC_OUTPGA_GAIN_MINUS_33DB,
|
| 1101 | PMIC_OUTPGA_GAIN_MINUS_36DB,
|
| 1102 | PMIC_OUTPGA_GAIN_MINUS_39DB,
|
| 1103 | PMIC_OUTPGA_GAIN_MINUS_42DB,
|
| 1104 | PMIC_OUTPGA_GAIN_MINUS_45DB,
|
| 1105 | PMIC_OUTPGA_GAIN_MINUS_48DB,
|
| 1106 | PMIC_OUTPGA_GAIN_MINUS_51DB,
|
| 1107 | PMIC_OUTPGA_GAIN_MINUS_54DB,
|
| 1108 | PMIC_OUTPGA_GAIN_MINUS_57DB,
|
| 1109 | PMIC_OUTPGA_GAIN_MINUS_60DB,
|
| 1110 | PMIC_OUTPGA_GAIN_MINUS_63DB,
|
| 1111 | PMIC_OUTPGA_GAIN_MAX
|
| 1112 |
|
| 1113 | } EEP_PMIC_AUDIO_OUTPUT_PGA_GAIN;
|
| 1114 | #endif
|
| 1115 |
|
| 1116 | #ifndef _USE_DATACARD
|
| 1117 | typedef struct
|
| 1118 | {
|
| 1119 | EEP_PMIC_AUDIO_OUTPUT_PGA_GAIN gain[EEP_PCM_OUTPUT_VOL_LEVELS];
|
| 1120 | } eep_pcm_volume_config_type;
|
| 1121 | #endif
|
| 1122 |
|
| 1123 |
|
| 1124 | typedef struct
|
| 1125 | {
|
| 1126 | eep_voice_volume_config_type voice_vol_gain_config[EEP_CODEC_DOWNLINK_PATHS];
|
| 1127 | eep_midi_volume_config_type midi_vol_gain_config[EEP_CODEC_DOWNLINK_PATHS];
|
| 1128 | eep_tone_volume_config_type tone_vol_gain_config[EEP_CODEC_DOWNLINK_PATHS];
|
| 1129 | #ifndef _USE_DATACARD
|
| 1130 | eep_pcm_volume_config_type pcm_vol_gain_config[EEP_CODEC_DOWNLINK_PATHS];
|
| 1131 | #endif
|
| 1132 | }aud_eep_volume_config_type;
|
| 1133 |
|
| 1134 |
|
| 1135 | #ifndef _USE_DATACARD
|
| 1136 | typedef struct
|
| 1137 | {
|
| 1138 | EEP_PMIC_AUDIO_MIC_GAIN pga_tx;
|
| 1139 | }aud_pmic_eep_pga_tx_type;
|
| 1140 |
|
| 1141 | typedef struct
|
| 1142 | {
|
| 1143 | EEP_PMIC_AUDIO_OUTPUT_PGA_GAIN pga_rx;
|
| 1144 | }aud_pmic_eep_pga_rx_type;
|
| 1145 | /*[End] [lvwenhua-2010/9/16]*/
|
| 1146 | #endif
|
| 1147 |
|
| 1148 | typedef volatile struct _aud_eep_static_type
|
| 1149 | {
|
| 1150 | eep_aud_path_data_type aud_path_data; /********************************************************************************
|
| 1151 | ¹¦ÄÜ£º ÉèÖÃteak ÓïÒôÉÏÏÂÐÐͨ·ÉϵÄÔöÒæÂ˲¨²ÎÊýµÈ£»
|
| 1152 | ȡֵ·¶Î§£º¸Ã½á¹¹ÌåµÄȡֵ·¶Î§¼ûeep_aud_path_data_type½á¹¹Ì壻
|
| 1153 |
|
| 1154 | ³ö³§Öµ£º
|
| 1155 | ¼ûeep_aud_path_data_type½á¹¹Ì壻
|
| 1156 | *********************************************************************************/
|
| 1157 |
|
| 1158 | #if 0
|
| 1159 | eep_external_audio_type external_audio; /********************************************************************************
|
| 1160 | ¹¦ÄÜ£º ÉèÖÃteak ÊÇ·ñʹÓÃÍⲿÒôƵÉ豸£»
|
| 1161 | ȡֵ·¶Î§£º0: ʹÄÜ
|
| 1162 | 1: ²»Ê¹ÄÜ£»
|
| 1163 | ³ö³§Öµ£º
|
| 1164 | 0
|
| 1165 | *********************************************************************************/
|
| 1166 | #endif
|
| 1167 |
|
| 1168 | eepaud_static_cbuf_mix_parms_type aud_cbuf_mix_parms[AUDIO_PATHS]; /********************************************************************************
|
| 1169 | ¹¦ÄÜ£º ÉèÖûìºÏµ½I2S1ºÍAFEµÄÒôƵ×ÊÔ´ÔöÒæÖµ£»
|
| 1170 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 1171 | 0 db ֵΪ0x3FFF£»
|
| 1172 | ³ö³§Öµ£º
|
| 1173 | ¼ûeepaud_static_cbuf_mix_parms_type½á¹¹Ì壻
|
| 1174 | *********************************************************************************/
|
| 1175 |
|
| 1176 |
|
| 1177 | #if 0
|
| 1178 | eep_aud_fm_radio_type aud_fm_radio; /********************************************************************************
|
| 1179 | ¹¦ÄÜ£º ÉèÖÃteakµÄÊÕÒô»úµÄÉèÖ㬷½°¸ÖÐûÓÐʹÓøù¦ÄÜ£¬
|
| 1180 | Õâ¸ö²ÎÊýÔڽṹÌåÖпÉÒÔÈ¥µô£»
|
| 1181 | ȡֵ·¶Î§£º¸Ã½á¹¹ÌåµÄȡֵ·¶Î§¼ûeep_aud_fm_radio_type½á¹¹Ìå¡£
|
| 1182 |
|
| 1183 | ³ö³§Öµ£º
|
| 1184 | ¼ûeep_aud_fm_radio_type½á¹¹Ìå¡£
|
| 1185 | *********************************************************************************/
|
| 1186 | #endif
|
| 1187 |
|
| 1188 | eep_aud_region_type aud_region; /********************************************************************************
|
| 1189 | ¹¦ÄÜ£º ÉèÖÃteakµÄʹÓÃÇøÓò£»
|
| 1190 | ȡֵ·¶Î§£º0: EEP_AUD_CEPT
|
| 1191 | 1: EEP_AUD_ANSI
|
| 1192 | 2: EEP_AUD_JAPAN£»
|
| 1193 | ³ö³§Öµ£º
|
| 1194 | 0
|
| 1195 | *********************************************************************************/
|
| 1196 |
|
| 1197 | eepaud_static_scal_in_parms_type aud_scal_in_parms[EEP_AUD_UPLINK_PATHS]; /********************************************************************************
|
| 1198 | ¹¦ÄÜ£º ÉèÖÃteakµÄÉÏÐÐÓïÒôͨµÀµÄÔöÒæ£»
|
| 1199 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 1200 | 0 db ֵΪ0x1FFF£»
|
| 1201 |
|
| 1202 | ³ö³§Öµ£º
|
| 1203 | ¼ûeepaud_static_scal_in_parms_type½á¹¹Ìå¡£
|
| 1204 | *********************************************************************************/
|
| 1205 |
|
| 1206 | eepaud_static_scal_out_parms_type aud_scal_out_parms[EEP_AUD_DOWNLINK_PATHS]; /********************************************************************************
|
| 1207 | ¹¦ÄÜ£º ÉèÖÃteakµÄÏÂÐÐÓïÒôͨµÀµÄÔöÒæ£»
|
| 1208 | ȡֵ·¶Î§£º0 µ½0x7FFF,
|
| 1209 | 0 db ֵΪ 0x1FFF£»
|
| 1210 |
|
| 1211 | ³ö³§Öµ£º
|
| 1212 | ¼ûeepaud_static_scal_out_parms_type½á¹¹Ìå¡£
|
| 1213 | *********************************************************************************/
|
| 1214 | /*[Begin] [lvwenhua-2010/9/16]*/
|
| 1215 | eepaud_static_scal_i2s1_parms_type aud_scal_i2s1_parms[EEP_AUD_DOWNLINK_PATHS];
|
| 1216 | eepaud_static_scal_rec_parms_type aud_scal_rec_parms[EEP_AUD_DOWNLINK_PATHS];
|
| 1217 | /*[End] [lvwenhua-2010/9/16]*/
|
| 1218 |
|
| 1219 | #ifndef _USE_DATACARD
|
| 1220 | /*[Begin] [lvwenhua-2010/9/16]*/
|
| 1221 | aud_pmic_eep_pga_tx_type pmic_pga_tx_parms[EEP_AUD_UPLINK_PATHS];
|
| 1222 | aud_pmic_eep_pga_rx_type pmic_pga_rx_parms[EEP_AUD_DOWNLINK_PATHS];
|
| 1223 | #endif
|
| 1224 |
|
| 1225 | aud_eep_volume_config_type aud_volume_config;
|
| 1226 | /*[End] [lvwenhua-2010/9/16]*/
|
| 1227 | }
|
| 1228 | aud_eep_static_type;
|
| 1229 |
|
| 1230 | #endif /* _AUD_NV_H */
|
| 1231 |
|
| 1232 |
|