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:
Chen Chen
2026-06-10 15:19:09 +08:00
parent 32db322839
commit 8e2c18f77c

View File

@@ -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));