es8311_sample_frequency_config() function
Configure sampling frequency
Arguments
mclk_frequency
MCLK frequency in [Hz] (MCLK or SCLK pin, depending on bit register01[7])
sample_frequency
Required sample frequency in [Hz], e.g. 44100, 22050...
Return value
- ESP_OK success - ESP_ERR_INVALID_ARG cannot set clock dividers for given MCLK and sampling frequency - Else I2C read/write error
Notes
This function is called by es8311_init(). Call this function explicitly only if you want to change sample frequency during runtime.