headphone gain is good now

This commit is contained in:
ladyada 2025-03-28 10:49:12 -04:00
parent 6965161fec
commit ad1c9265be

View file

@ -652,22 +652,22 @@ static void setup_i2s_dac() {
modifyRegister(0x28, 0x04, 0x04); // HP Left not muted
modifyRegister(0x29, 0x04, 0x04); // HP Right not muted
writeRegister(0x24, 50); // Left Analog HP, -14dB
writeRegister(0x25, 50); // Right Analog HP, -14dB
writeRegister(0x24, 50); // Left Analog HP, -26 dB
writeRegister(0x25, 50); // Right Analog HP, -26 dB
modifyRegister(0x28, 0x78, 0x00); // HP Left Gain, 0 db
modifyRegister(0x29, 0x78, 0x00); // HP Right Gain, 0 db
// Speaker Amp
modifyRegister(0x20, 0x80, 0x00); // powered down for now, set to 0x80 to power up!
modifyRegister(0x2A, 0x04, 0x04);
modifyRegister(0x2A, 0x18, 0x08);
writeRegister(0x26, 0x0A);
modifyRegister(0x20, 0x80, 0x80); // Amp enabled (0x80) disable with (0x00)
modifyRegister(0x2A, 0x04, 0x00); // Not muted (0x04) mute with (0x00)
modifyRegister(0x2A, 0x18, 0x08); // 0 dB gain
writeRegister(0x26, 0x0 | 60); // amp gain, -26 dB
// Return to page 0
setPage(0);
printf("Initialization complete!\n");
printf("Audio I2C Initialization complete!\n");
}
static int volscale;