Update esphome/components/esp_adf/microphone/esp_adf_microphone.cpp

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
This commit is contained in:
Jesse Hills 2023-11-24 12:01:28 +13:00 committed by GitHub
parent 26a1d14ee0
commit e2bb81e233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ void ESPADFMicrophone::read_task(void *params) {
i2s_stream_cfg_t i2s_cfg = {
.type = AUDIO_STREAM_READER,
.i2s_config = i2s_config,
.i2s_port = I2S_NUM_0,
.i2s_port = static_cast<i2s_port_t>(CODEC_ADC_I2S_PORT),
.use_alc = false,
.volume = 0,
.out_rb_size = I2S_STREAM_RINGBUFFER_SIZE,