The background is that I want to output the sampling rates (44/48..), clock domain (22M/24M) and the format (PCM/DSD) via GPIO lines.
I have already enabled DSD accordingly in “xua_conf.h”:
Code: Select all
/* Number of DSD channels to DACs */
#define NATIVE_DSD 0 /* 0: Support only DoP */
#define DSD_CHANS_DAC (2)
#define PORT_DSD_DAC0 PORT_I2S_DAC0
#define PORT_DSD_DAC1 PORT_I2S_LRCLK
#define PORT_DSD_CLK PORT_I2S_BCLK
This is what I tried:
I use the function AudioHwConfig() in “audiohw.xc” and have extended it for testing with simple printf outputs.
Code: Select all
void AudioHwConfig(unsigned samFreq, unsigned mClk, unsigned dsdMode, unsigned sampRes_DAC, unsigned sampRes_ADC)
{
...
printf("samFreq: %d\n", samFreq);
printf("mClk: %d\n", mClk);
printf("dsdMode: %d\n", dsdMode);
...
}
Please share any thoughts on this, I'll be very grateful...