By turning on and off soft ramp, I have verified I can see the audio recorded by the host ARM chip is in fact getting all 4 channels I am sending. I am set to DC so turned off the HPF (well set to the all pass)
I have tried both DC and AC signals going in.
However, I cannot see any signal being recorded. I must still have something set wrong.
I am configuring this for single ended, 32-bit, TDM and using the internal regulator. Also, in slave mode.
(Not sure why I have to do two wake up device, but sending one doesn't work)
// Wake up device
spiADC(FD_AUD,0x02,0x81,0);
spiADC(FD_AUD,0x02,0x81,0);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
// TDM & 32-bit (I2S only supports 2 channels, need TDM which supports 4)
spiADC(FD_AUD,0x07,0x30,0);
// 0x13 we leave default, sets in slave mode
// Setup line inputs for all 4 channels (There are some gain settings did not touch on next addr)
spiADC(FD_AUD, 0x3C, 0xF0,0);
spiADC(FD_AUD, 0x41, 0xF0,0);
spiADC(FD_AUD, 0x46, 0xF0,0);
spiADC(FD_AUD, 0x4B, 0xF0,0);
//Turn off the HPF
spiADC(FD_AUD, 0x6B, 0x00,0);
//TEMP disable soft ramp
//spiADC(FD_AUD, 0x6C, 0x10,0);
// Enable all 4 ADC
spiADC(FD_AUD,0x73,0xF0,0);
// Enable ASI 4 output slots (not sure if I did correctly)
spiADC(FD_AUD,0x74,0xF0,0);
// Power up ADC and PLL (not sure if these are right)
spiADC(FD_AUD,0x75,0x60,0);
This is what I see in the wav files I captured (soft vol control was enabled):
Any idea what I might still have wrong in my settings?
Thanks!