|
@@ -78,9 +78,8 @@ static bool init(char *config, int i2c_port, i2s_config_t *i2s_config) {
|
|
|
vTaskDelay(100 / portTICK_PERIOD_MS);
|
|
|
|
|
|
|
|
|
- adac_write_word(AC101_ADDR, PLL_CTRL1, BIN(0000,0001,0100,1111));
|
|
|
- adac_write_word(AC101_ADDR, PLL_CTRL2, BIN(1000,0110,0000,0000));
|
|
|
-
|
|
|
+ adac_write_word(AC101_ADDR, PLL_CTRL1, BIN(0000,0001,0100,1111));
|
|
|
+ adac_write_word(AC101_ADDR, PLL_CTRL2, BIN(1000,0010,0000,0000));
|
|
|
|
|
|
|
|
|
adac_write_word(AC101_ADDR, SYSCLK_CTRL, BIN(1010,1010,0000,1000));
|
|
@@ -90,10 +89,10 @@ static bool init(char *config, int i2c_port, i2s_config_t *i2s_config) {
|
|
|
|
|
|
|
|
|
#if BYTES_PER_FRAME == 8
|
|
|
- adac_write_word(AC101_ADDR, I2S1LCK_CTRL, BIN(1000,1000,0111,0000));
|
|
|
- i2s_config->bits_per_sample = 24;
|
|
|
+
|
|
|
+ adac_write_word(AC101_ADDR, I2S1LCK_CTRL, BIN(1000,1000,1011,0000));
|
|
|
#else
|
|
|
- adac_write_word(AC101_ADDR, I2S1LCK_CTRL, BIN(1000,1000,0101,0000));
|
|
|
+ adac_write_word(AC101_ADDR, I2S1LCK_CTRL, BIN(1000,1000,0101,0000));
|
|
|
#endif
|
|
|
adac_write_word(AC101_ADDR, I2S1_SDOUT_CTRL, BIN(1100,0000,0000,0000));
|
|
|
adac_write_word(AC101_ADDR, I2S1_SDIN_CTRL, BIN(1100,0000,0000,0000));
|