The application demonstrates A2DP Sink and HF profile usage, I found in the code that during playback the I2S clock is 1.411 MHz and during HF call the clock is 256 KHz, I would like to know how this switching is being done. Can anyone please help me here ?
These rates are defined by the spec. HFP is a much lower rate protocol guaranteeing low latency for phone calls where a delay is not acceptable. HFP operates at either 8KHz or 16KHz. On the other hand, A2DP is meant for higher quality audio streams where a higher latency is acceptable. A2DP operates at either 44.1KHz or 48KHz.