@@ -117,7 +117,7 @@ static const uint8_t conf_data_clk_192kHz[] = {
117
117
2 , 0x0c , 0x87 , /* Power up the MDAC divider with value 7 */
118
118
2 , 0x0d , 0x00 , /* Program the OSR of DAC to 32 */
119
119
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) */
121
121
2 , 0x1b , 0x0c , /* Set the BCLK,WCLK as output */
122
122
2 , 0x1e , 0x80 + 7 , /* Enable the BCLKN divider with value 7 */
123
123
2 , 0x25 , 0xee , /* DAC power up */
@@ -183,7 +183,6 @@ void tlv320aic3204_init(void)
183
183
{
184
184
tlv320aic3204_config (conf_data_pll );
185
185
tlv320aic3204_config (conf_data_clk );
186
- //tlv320aic3204_config(conf_data_clk_192kHz);
187
186
tlv320aic3204_config (conf_data_routing );
188
187
wait_ms (40 );
189
188
tlv320aic3204_config (conf_data_unmute );
@@ -201,6 +200,7 @@ void tlv320aic3204_set_fs(int fs)
201
200
else if (fs == 192 )
202
201
tlv320aic3204_config (conf_data_clk_192kHz );
203
202
203
+ //wait_ms(20);
204
204
tlv320aic3204_config (conf_data_unmute );
205
205
}
206
206
@@ -356,3 +356,8 @@ int8_t tlv320aic3204_get_right_agc_gain(void)
356
356
return tlv320aic3204_read (0x65 ); /* Right Channel AGC Gain Flag */
357
357
}
358
358
359
+ void tlv320aic3204_set_adc_phase_adjust (int8_t adjust )
360
+ {
361
+ tlv320aic3204_write (0x55 , adjust );
362
+ }
363
+
0 commit comments