Page 1 of 1

Change I2S configuration in hfp-ag example

Posted: Wed Dec 20, 2023 1:34 pm
by filippo.bianchi.85x
Hi all,

I try successfully hfp-ag example, I can connect to my headphone and start audio.
I noticed that I2S is automatically configured and started, I can only choose pins and master/slave role.
The default configuration seems to be the following (checked with an oscilloscope):
- I2S Standard
- MCLK 256kHz
- BCLK 256kHz
- Sampling freq 8Khz
- 16 bit

This configuration is not compatible with my codec that needs an higher MCLK frequency (MCLK/BCLK ratio 768 is the codec default configuration, support only some ratios).
Is there a way for changing the I2S configuration used by PCM channel?

I know that the alternative is using vHCI, configure I2S by myself and forward data to it...but let me say...I don't need it and if it possible use PCM directly is better for me.

Thanks,
Filippo

Re: Change I2S configuration in hfp-ag example

Posted: Thu Aug 29, 2024 3:09 pm
by Ahmed_Abdelaal14166
Hi there, i know its to old but im facing the same problem but i couldnt connect hfp ag to my headset can you help me