Change I2S configuration in hfp-ag example
Posted: 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
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