Open phoddie opened 2 years ago
I2S_CHANNEL_FMT_ONLY_RIGHT
means using only one channel, but I2S_DAC_CHANNEL_BOTH_EN
enabled two channel, they need to be matched.
Please try to use I2S_CHANNEL_FMT_ALL_RIGHT
with I2S_DAC_CHANNEL_BOTH_EN
or I2S_CHANNEL_FMT_ONLY_RIGHT
with I2S_DAC_CHANNEL_RIGHT_EN
.
@L-KAYA – I made a mistake above. Apologies. The code is using I2S_CHANNEL_FMT_ONLY_RIGHT
with I2S_DAC_CHANNEL_RIGHT_EN
on M5Stack Fire. I also tried with I2S_CHANNEL_FMT_ALL_RIGHT
with I2S_DAC_CHANNEL_BOTH_EN
but the result is the same.
We are currently pinned to commit c29343
. I also tried the latest from the v4.4
tag. That does not play audio at all. just a pop.
Environment
Problem Description
Audio playback using
i2s_
API to DAC plays back at about 2 half-steps higher than expected. For example, a B-flat tone plays back correctly under ESP-IDF 4.3. Under ESP-IDF 4.4, the same audio plays back as a C natural (two half steps higher).Code to reproduce this issue
Summary of implementation:
Other information
This issue was first noticed by @meganetaaan. His report includes a video that shows the behavior under ESP-IDF 4.3 and 4.4 so you can easily compare.