/* Reset */ {RESET, 1}, {RESET, 0}, /* Clock settings */ {CLK_REG_1, CODEC_MUX_VALUE}, {INTERFACE_SET_REG_1, BCLK_DIR_CTRL}, {INTERFACE_SET_REG_2, DAC_MOD_CLK_2_BDIV_CLKIN}, {INTERFACE_SET_REG_4, 0x10}, /*old value is 0x12 */ {INTERFACE_SET_REG_5, 0x00}, /*old value is 0x10 */ {DOUT_CTRL, 0x12}, /* old value is 0x02 */ /* DAC Channels PWR UP */ {DAC_CHN_REG, RDAC_2_RCHN | LDAC_2_LCHN}, /*Mistral: setting [0][63] to reset value 0x14 (RDAC_2_RCHN | LDAC_2_LCHN)=> DAC power=off DAC delta path =left, vol=soft stepping per sample period...(31xx).*/ /* Unmute DAC channels */ {DAC_MUTE_CTRL_REG, 0x0C}, /* DAC are muted by default...[0][64]...So we manually unmute*/ /* DAC volume setting */ {LDAC_VOL, DEFAULT_VOL}, /* DAC volume set to default value i.e 0db gain...[0][65]...*/ {RDAC_VOL, DEFAULT_VOL}, /* Only applicable for 31xx...3120 does not have this register [0][66]*/ /*{HEADSET_DETECT, 0x8F}, *//* Headset detection enabled by default and Debounce * programmed to 128 ms for Headset Detection and * 32ms for Headset button-press Detection */ {L_ANLOG_VOL_2_HPL, 0x00}, /* Set volume of left Analog HPL to 0db attenuation [1][36]*/ {R_ANLOG_VOL_2_HPR, 0x00}, /*Only applicable for 31xx...3120 does not have this register [1][37]*/ {L_ANLOG_VOL_2_SPL, 0x00}, /*Only applicable for 31xx...3120 does not have this register [1][37]*/ {R_ANLOG_VOL_2_SPR, 0x00}, /*Only applicable for 31xx...3120 does not have this register [1][37]*/ {MICBIAS_CTRL, 0x08},//0x0b changd to 0x0A on 10052012 /* ADC Setting */ {ADC_DIG_MIC, 0x10}, /*this value will be altered duing power up Currently configured to use Digital Microphone Input */ {CM_SET, 0x00}, {AGC_CTRL_1, 0xA0}, {AGC_CTRL_2, 0x42}, {AGC_CTRL_3, 0x64},/*0x50 was here*/ {AGC_CTRL_4, 0x70}, {AGC_CTRL_5, 0xA8}, {AGC_CTRL_6, 0x00}, {AGC_CTRL_7, 0x06},/*commented on 10052012*/ {ADC_PRB_SEL_REG, 0x04}, /* DAC Output Mixer Setting */ {DAC_MIX_CTRL, RDAC_2_RAMP | LDAC_2_LAMP}, /*For aic31xx this is applicable...enabling DAC routing through mixer amplifier individually for left & right DAC..[1][35]... */ /* Coonfigure the Headphone Driver POP Removal Settings */ {HP_POP_CTRL, (HP_POWER_UP_15_3_MSEC | HP_DRIVER_3_9_MS | CM_VOLTAGE_FROM_AVDD)}, /* mute HP Driver */ {SPL_DRIVER, 0x00}, {SPR_DRIVER, 0x00}, /* ADC Channel Fine Gain */ {ADC_FGA, 0x80}, /* ADC channel Coarse Gain */ {ADC_CGA, 0x68}, /* 0x40 for 0db */ {MIC_GAIN, 0x30},/*reg 48 changed to 20 from 10 on 10052012*/ {ADC_IP_SEL, 0x00}, {MIC_PGA, 0x80}, };