mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
fix(i2s/es8311): pass MCLK multiple to codec sample config
Pass EXAMPLE_MCLK_MULTIPLE through esp_codec_dev_sample_info_t so esp_codec_dev_open() preserves the intended I2S MCLK multiple. See issue #18696. Closes https://github.com/espressif/esp-idf/issues/18696 Closes https://github.com/espressif/esp-idf/pull/18697
This commit is contained in:
@@ -143,7 +143,6 @@ static esp_err_t i2s_driver_init(void)
|
||||
},
|
||||
},
|
||||
};
|
||||
std_cfg.clk_cfg.mclk_multiple = EXAMPLE_MCLK_MULTIPLE;
|
||||
|
||||
ESP_ERROR_CHECK(i2s_channel_init_std_mode(tx_handle, &std_cfg));
|
||||
ESP_ERROR_CHECK(i2s_channel_init_std_mode(rx_handle, &std_cfg));
|
||||
|
||||
Reference in New Issue
Block a user