@@ -117,7 +117,7 @@ static const uint8_t conf_data_clk_192kHz[] = {
117117 2 , 0x0c , 0x87 , /* Power up the MDAC divider with value 7 */
118118 2 , 0x0d , 0x00 , /* Program the OSR of DAC to 32 */
119119 2 , 0x0e , 0x20 ,
120- 2 , 0x3c , 20 , //0x08, /* Set the DAC Mode to PRB_P20 (reduce resource) */
120+ 2 , 0x3c , 17 , //0x08, /* Set the DAC Mode to PRB_P17 (reduce resource) */
121121 2 , 0x1b , 0x0c , /* Set the BCLK,WCLK as output */
122122 2 , 0x1e , 0x80 + 7 , /* Enable the BCLKN divider with value 7 */
123123 2 , 0x25 , 0xee , /* DAC power up */
@@ -183,7 +183,6 @@ void tlv320aic3204_init(void)
183183{
184184 tlv320aic3204_config (conf_data_pll );
185185 tlv320aic3204_config (conf_data_clk );
186- //tlv320aic3204_config(conf_data_clk_192kHz);
187186 tlv320aic3204_config (conf_data_routing );
188187 wait_ms (40 );
189188 tlv320aic3204_config (conf_data_unmute );
@@ -201,6 +200,7 @@ void tlv320aic3204_set_fs(int fs)
201200 else if (fs == 192 )
202201 tlv320aic3204_config (conf_data_clk_192kHz );
203202
203+ //wait_ms(20);
204204 tlv320aic3204_config (conf_data_unmute );
205205}
206206
@@ -356,3 +356,8 @@ int8_t tlv320aic3204_get_right_agc_gain(void)
356356 return tlv320aic3204_read (0x65 ); /* Right Channel AGC Gain Flag */
357357}
358358
359+ void tlv320aic3204_set_adc_phase_adjust (int8_t adjust )
360+ {
361+ tlv320aic3204_write (0x55 , adjust );
362+ }
363+
0 commit comments