Page 1 of 1

i2s_stream_init hard codes mclk to gpio0 BUG?

Posted: Fri Aug 05, 2022 2:02 am
by felixcollins
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?

Re: i2s_stream_init hard codes mclk to gpio0 BUG?

Posted: Sun Aug 28, 2022 10:39 pm
by felixcollins