developer | e0cea0f | 2021-12-16 16:08:26 +0800 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0
|
| 2 | /*
|
| 3 | * Si3217x ProSLIC API Configuration Tool Version 4.2.1
|
| 4 | * Last Updated in API Release: 9.2.0
|
| 5 | * source XML file: si3217x_FLBK_GDRV_constants.xml
|
| 6 | *
|
| 7 | * Auto generated file from configuration tool.
|
| 8 | */
|
| 9 |
|
| 10 | #include "../inc/vdaa.h"
|
| 11 |
|
| 12 | vdaa_General_Cfg Vdaa_General_Configuration = {
|
| 13 | INTE_DISABLED,
|
| 14 | INTE_ACTIVE_LOW,
|
| 15 | RES_CAL_ENABLED,
|
| 16 | FS_8KHZ,
|
| 17 | FOH_128,
|
| 18 | LVS_FORCE_ENABLED,
|
| 19 | CVS_CURRENT,
|
| 20 | CVP_ABOVE,
|
| 21 | GCE_DISABLED,
|
| 22 | IIR_DISABLED,
|
| 23 | FULL2_ENABLED,
|
| 24 | FULL_DISABLED,
|
| 25 | FILT_HPF_200HZ,
|
| 26 | RG1_DISABLED,
|
| 27 | PWM_DELTA_SIGMA,
|
| 28 | PWM_DISABLED,
|
| 29 | SPIM_TRI_CS
|
| 30 | };
|
| 31 |
|
| 32 | vdaa_Country_Cfg Vdaa_Country_Presets[] ={
|
| 33 | {
|
| 34 | RZ_MAX,
|
| 35 | DC_50,
|
| 36 | AC_600,
|
| 37 | DCV3_5,
|
| 38 | MINI_10MA,
|
| 39 | ILIM_DISABLED,
|
| 40 | OHS_LESS_THAN_0_5MS,
|
| 41 | HYBRID_ENABLED
|
| 42 | }, /* COU_USA */
|
| 43 | {
|
| 44 | RZ_MAX,
|
| 45 | DC_50,
|
| 46 | AC_270__750_150,
|
| 47 | DCV3_5,
|
| 48 | MINI_10MA,
|
| 49 | ILIM_ENABLED,
|
| 50 | OHS_3MS,
|
| 51 | HYBRID_ENABLED
|
| 52 | }, /* COU_GERMANY */
|
| 53 | {
|
| 54 | RZ_MAX,
|
| 55 | DC_50,
|
| 56 | AC_200__680_100,
|
| 57 | DCV3_5,
|
| 58 | MINI_10MA,
|
| 59 | ILIM_DISABLED,
|
| 60 | OHS_LESS_THAN_0_5MS,
|
| 61 | HYBRID_ENABLED
|
| 62 | }, /* COU_CHINA */
|
| 63 | {
|
| 64 | RZ_MAX,
|
| 65 | DC_50,
|
| 66 | AC_220__820_120,
|
| 67 | DCV3_2,
|
| 68 | MINI_12MA,
|
| 69 | ILIM_DISABLED,
|
| 70 | OHS_26MS,
|
| 71 | HYBRID_ENABLED
|
| 72 | } /* COU_AUSTRALIA */
|
| 73 | };
|
| 74 |
|
| 75 | vdaa_audioGain_Cfg Vdaa_audioGain_Presets[] ={
|
| 76 | {
|
| 77 | 0, /* mute */
|
| 78 | XGA_GAIN, /* xXGA2 */
|
| 79 | 0, /* xXG2 */
|
| 80 | XGA_GAIN, /* xXGA3 */
|
| 81 | 0, /* xXG3 */
|
| 82 | 64, /* AxM */
|
| 83 | 0 /* cpEn */
|
| 84 | }, /* AUDIO_GAIN_0DB */
|
| 85 | {
|
| 86 | 0, /* mute */
|
| 87 | XGA_ATTEN, /* xXGA2 */
|
| 88 | 4, /* xXG2 */
|
| 89 | XGA_GAIN, /* xXGA3 */
|
| 90 | 0, /* xXG3 */
|
| 91 | 64, /* AxM */
|
| 92 | 0 /* cpEn */
|
| 93 | }, /* AUDIO_ATTEN_4DB */
|
| 94 | {
|
| 95 | 0, /* mute */
|
| 96 | XGA_ATTEN, /* xXGA2 */
|
| 97 | 6, /* xXG2 */
|
| 98 | XGA_GAIN, /* xXGA3 */
|
| 99 | 0, /* xXG3 */
|
| 100 | 64, /* AxM */
|
| 101 | 0 /* cpEn */
|
| 102 | }, /* AUDIO_ATTEN_6DB */
|
| 103 | {
|
| 104 | 0, /* mute */
|
| 105 | XGA_ATTEN, /* xXGA2 */
|
| 106 | 11, /* xXG2 */
|
| 107 | XGA_GAIN, /* xXGA3 */
|
| 108 | 0, /* xXG3 */
|
| 109 | 64, /* AxM */
|
| 110 | 0 /* cpEn */
|
| 111 | } /* AUDIO_ATTEN_11DB */
|
| 112 | };
|
| 113 |
|
| 114 | vdaa_Ring_Detect_Cfg Vdaa_Ring_Detect_Presets[] ={
|
| 115 | {
|
| 116 | RDLY_512MS,
|
| 117 | RT__13_5VRMS_16_5VRMS,
|
| 118 | 12, /* RMX */
|
| 119 | RTO_1408MS,
|
| 120 | RCC_640MS,
|
| 121 | RNGV_DISABLED,
|
| 122 | 17, /* RAS */
|
| 123 | RFWE_HALF_WAVE,
|
| 124 | RDI_BEG_END_BURST,
|
| 125 | RGDT_ACTIVE_LOW
|
| 126 | }, /* RING_DET_NOVAL_LOWV */
|
| 127 | {
|
| 128 | RDLY_512MS,
|
| 129 | RT__40_5VRMS_49_5VRMS,
|
| 130 | 12, /* RMX */
|
| 131 | RTO_1408MS,
|
| 132 | RCC_640MS,
|
| 133 | RNGV_ENABLED,
|
| 134 | 17, /* RAS */
|
| 135 | RFWE_RNGV_RING_ENV,
|
| 136 | RDI_BEG_END_BURST,
|
| 137 | RGDT_ACTIVE_LOW
|
| 138 | } /* RING_DET_VAL_HIGHV */
|
| 139 | };
|
| 140 |
|
| 141 | vdaa_PCM_Cfg Vdaa_PCM_Presets[] ={
|
| 142 | {
|
| 143 | U_LAW,
|
| 144 | PCLK_1_PER_BIT,
|
| 145 | TRI_POS_EDGE
|
| 146 | }, /* DAA_PCM_8ULAW */
|
| 147 | {
|
| 148 | A_LAW,
|
| 149 | PCLK_1_PER_BIT,
|
| 150 | TRI_POS_EDGE
|
| 151 | }, /* DAA_PCM_8ALAW */
|
| 152 | {
|
| 153 | LINEAR_16_BIT,
|
| 154 | PCLK_1_PER_BIT,
|
| 155 | TRI_POS_EDGE
|
| 156 | } /* DAA_PCM_16LIN */
|
| 157 | };
|
| 158 |
|
| 159 | vdaa_Hybrid_Cfg Vdaa_Hybrid_Presets[] ={
|
| 160 | {
|
| 161 | 0, /* HYB1 */
|
| 162 | 254, /* HYB2 */
|
| 163 | 0, /* HYB3 */
|
| 164 | 1, /* HYB4 */
|
| 165 | 255, /* HYB5 */
|
| 166 | 1, /* HYB6 */
|
| 167 | 0, /* HYB7 */
|
| 168 | 0 /* HYB8 */
|
| 169 | }, /* HYB_600_0_0_500FT_24AWG */
|
| 170 | {
|
| 171 | 4, /* HYB1 */
|
| 172 | 246, /* HYB2 */
|
| 173 | 242, /* HYB3 */
|
| 174 | 4, /* HYB4 */
|
| 175 | 254, /* HYB5 */
|
| 176 | 255, /* HYB6 */
|
| 177 | 1, /* HYB7 */
|
| 178 | 255 /* HYB8 */
|
| 179 | }, /* HYB_270_750_150_500FT_24AWG */
|
| 180 | {
|
| 181 | 4, /* HYB1 */
|
| 182 | 245, /* HYB2 */
|
| 183 | 243, /* HYB3 */
|
| 184 | 7, /* HYB4 */
|
| 185 | 253, /* HYB5 */
|
| 186 | 0, /* HYB6 */
|
| 187 | 1, /* HYB7 */
|
| 188 | 255 /* HYB8 */
|
| 189 | }, /* HYB_200_680_100_500FT_24AWG */
|
| 190 | {
|
| 191 | 4, /* HYB1 */
|
| 192 | 244, /* HYB2 */
|
| 193 | 241, /* HYB3 */
|
| 194 | 6, /* HYB4 */
|
| 195 | 253, /* HYB5 */
|
| 196 | 255, /* HYB6 */
|
| 197 | 2, /* HYB7 */
|
| 198 | 255 /* HYB8 */
|
| 199 | } /* HYB_220_820_120_500FT_24AWG */
|
| 200 | };
|
| 201 |
|