ES9039Q2M S/PDIF DAC design

A bit of success, the amanero arrived from italy and I got the DAC working with I2S in software mode 🙂
It seems I have to send the registers for every start of the DAC, otherwise I get no output.

I changed these registers:

C++:
 // Register 1: SYS MODE CONFIG (default 0b10110001 = hex B1)
  // Enable SPDIF decode (bit 3 = 1), keep other defaults
  // New value for spdif: 0x89 (0b10001001)
  //for i2s: default, hex B1
  writeRegister(0x01, 0xB1);

  // Register 57: INPUT SELECTION (default 0b01000000 = hex 40)
  // SPDIF:        0b01000110 = 0x46 (INPUT_SEL = 3 = SPDIF, AUTO_INPUT_SEL = 0)
  // I2S (Amanero):0b01000001 = 0x41 (INPUT_SEL = 0 = PCM, AUTO_INPUT_SEL = 1)

  writeRegister(0x39, 0x41);

Its working with both crystals, sound quality is not mindblowing atm, there is a bit of a crackle/noise (maybe coming from the +-15V SMPS, I will investigate).