i2s_stream_init hard codes mclk to gpio0 BUG?

felixcollins
Posts: 125
Joined: Fri May 24, 2019 2:02 am

i2s_stream_init hard codes mclk to gpio0 BUG?

Postby felixcollins » Fri Aug 05, 2022 2:02 am

ADF 2.4

File: i2s_stream.c

Function: audio_element_handle_t i2s_stream_init(i2s_stream_cfg_t *config);

Line: 401
i2s_mclk_gpio_select(i2s->config.i2s_port, GPIO_NUM_0);


I do not even wish to use mclk output. Will Espressif accept a PR that introduces a function that allows i2s_stream_init with custom pins without requiring board config implementation and that does not hard code mclk?

audio_element_handle_t i2s_stream_init(i2s_stream_cfg_t *config, i2s_pin_config_t* pin_config);

How has this bug survived so long. Does no one else use ADF with custom board?


Who is online

Users browsing this forum: No registered users and 58 guests