Change I2S configuration in hfp-ag example

filippo.bianchi.85x
Posts: 1
Joined: Wed Dec 20, 2023 1:25 pm

Change I2S configuration in hfp-ag example

Postby filippo.bianchi.85x » Wed Dec 20, 2023 1:34 pm

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

Ahmed_Abdelaal14166
Posts: 1
Joined: Thu Aug 29, 2024 3:05 pm

Re: Change I2S configuration in hfp-ag example

Postby Ahmed_Abdelaal14166 » Thu Aug 29, 2024 3:09 pm

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

Who is online

Users browsing this forum: Baidu [Spider] and 126 guests