Browse Source

Fix CHIP_I2S_CTRL on Init (SCLK=32*fs -> 64*fs)

dds
Frank 4 years ago
parent
commit
c0dae03703
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      control_sgtl5000.cpp

+ 1
- 1
control_sgtl5000.cpp View File

delay(400); delay(400);
write(CHIP_LINE_OUT_VOL, 0x1D1D); // default approx 1.3 volts peak-to-peak write(CHIP_LINE_OUT_VOL, 0x1D1D); // default approx 1.3 volts peak-to-peak
write(CHIP_CLK_CTRL, 0x0004); // 44.1 kHz, 256*Fs write(CHIP_CLK_CTRL, 0x0004); // 44.1 kHz, 256*Fs
write(CHIP_I2S_CTRL, 0x0130); // SCLK=32*Fs, 16bit, I2S format
write(CHIP_I2S_CTRL, 0x0030); // SCLK=64*Fs, 16bit, I2S format
// default signal routing is ok? // default signal routing is ok?
write(CHIP_SSS_CTRL, 0x0010); // ADC->I2S, I2S->DAC write(CHIP_SSS_CTRL, 0x0010); // ADC->I2S, I2S->DAC
write(CHIP_ADCDAC_CTRL, 0x0000); // disable dac mute write(CHIP_ADCDAC_CTRL, 0x0000); // disable dac mute

Loading…
Cancel
Save