I am new to both Atmel Studio and SAM V71.
For testing audio we are using the WM8904 Example project in ASF 3.33.0 on SAM V71 xplained ultra board.
Regarding the code i have these doubts,
1. The configuration for Sampling Rate are the following lines
a. // wm8904_write_register(WM8904_CLOCK_RATES_1, WM8904_CLK_SYS_RATE(3) | WM8904_SAMPLE_RATE(5))
wm8904_write_register(WM8904_CLOCK_RATES_1, WM8904_CLK_SYS_RATE(9) | WM8904_SAMPLE_RATE(0));
b. //wm8904_write_register(WM8904_AUDIO_INTERFACE_1, WM8904_BCLK_DIR | WM8904_AIF_FMT_I2S);
wm8904_write_register(WM8904_AUDIO_INTERFACE_1, WM8904_BCLK_DIR | WM8904_AIF_FMT_I2S | WM8904_AIF_WL_16BIT);
c. wm8904_write_register(WM8904_AUDIO_INTERFACE_3, WM8904_LRCLK_DIR | WM8904_LRCLK_RATE(0xC0));
If anything more please help me with the 8KHz sampling rate. The playback output from speaker seems to be fine, but how do i verify that the output is actually 8KHz.