Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6cc2c71 causes default I2S Slave mode config to stop working (IDFGH-14758) #15497

Open
3 tasks done
ftab opened this issue Feb 28, 2025 · 0 comments
Open
3 tasks done
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@ftab
Copy link

ftab commented Feb 28, 2025

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

6cc2c71

Espressif SoC revision.

ESP32-P4 v0.1

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

Custom board

Power Supply used.

External 3.3V

What is the expected behavior?

I2S is configured and works correctly

What is the actual behavior?

Gives error: sample rate or mclk_multiple is too large for the current clock source

Steps to reproduce.

  1. Configure I2S as slave RX with 48khz sample rate, 32 bit data, stereo
  2. Attempt to run on recent master esp-idf including commit 6cc2c71

Using esp-adf i2s_stream:

    i2s_stream_cfg_t i2s_cfg =
        I2S_STREAM_CFG_DEFAULT_WITH_PARA(I2S_NUM_1, 48000, I2S_DATA_BIT_WIDTH_32BIT, AUDIO_STREAM_READER);
    i2s_cfg.chan_cfg.role = I2S_ROLE_SLAVE;
    stream_reader = i2s_stream_init(&i2s_cfg);

Debug Logs.

E (10845) i2s_std: i2s_std_calculate_clock(63): sample rate or mclk_multiple is too large for the current clock source
E (10846) i2s_std: i2s_std_set_clock(80): clock calculate failed
E (10847) i2s_std: i2s_channel_init_std_mode(240): initialize channel failed while setting clock
E (10848) I2S_STREAM_IDF5.x: I2S stream init failed

More Information.

I reverted 6cc2c71 and my setup works again

@L-KAYA what am I doing wrong with the new version that it suddenly doesn't like the clock config?

@ftab ftab added the Type: Bug bugs in IDF label Feb 28, 2025
@github-actions github-actions bot changed the title 6cc2c71 causes default I2S Slave mode config to stop working 6cc2c71 causes default I2S Slave mode config to stop working (IDFGH-14758) Feb 28, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

2 participants