Browse Source

Revert line out level value

Something wrong with my attempt to apply the math in the datasheet,
CHIP_LINE_OUT_VALUE is better set to 0x0505 rather than 0x0D0D.
dds
robsoles 10 years ago
parent
commit
99de614f24
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Audio.cpp

+ 2
- 2
Audio.cpp View File

write(CHIP_ANA_POWER, 0x40FF); // power up: lineout, hp, adc, dac write(CHIP_ANA_POWER, 0x40FF); // power up: lineout, hp, adc, dac
write(CHIP_DIG_POWER, 0x0073); // power up all digital stuff write(CHIP_DIG_POWER, 0x0073); // power up all digital stuff
delay(400); delay(400);
// 40*log((1.575)/(1.65)) + 15 = 13.1391993746043
write(CHIP_LINE_OUT_VOL, 0x0D0D); // [S]TODO: correct value for 3.3V[/S]
// 40*log((1.575)/(1.65)) + 15 = 13.1391993746043 but it seems wrong, 5 is better...
write(CHIP_LINE_OUT_VOL, 0x0505); // TODO: correct value for 3.3V
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, 0x0130); // SCLK=32*Fs, 16bit, I2S format
// default signal routing is ok? // default signal routing is ok?

Loading…
Cancel
Save