Skip to content

Commit

Permalink
audio: only install I2S driver once
Browse files Browse the repository at this point in the history
This requires an ESP-ADF bump.

Closes: #125
Closes: #354
  • Loading branch information
stintel authored and kristiankielhofner committed Jan 2, 2024
1 parent 0ac5fb7 commit 74dfff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY container.gitconfig /root/.gitconfig
ENV PATH="$PATH:/willow/.local/bin"
WORKDIR /willow

ENV ADF_VER="willow-main-2023110800"
ENV ADF_VER="willow-main-2024010200"
RUN \
cd /opt/esp/idf && \
curl https://raw.githubusercontent.com/toverainc/esp-adf/$ADF_VER/idf_patches/idf_v5.1_freertos.patch | patch -p1
2 changes: 2 additions & 0 deletions main/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ static void init_esp_audio(void)
.use_apll = false, // not supported on ESP32-S3-BOX
},
.i2s_port = CODEC_ADC_I2S_PORT,
.install_drv = true,
.multi_out_num = 0,
.need_expand = true,
.out_rb_size = 8 * 1024, // default is 8 * 1024
Expand Down Expand Up @@ -682,6 +683,7 @@ static void start_rec(void)
.use_apll = false, // not supported on ESP32-S3-BOX
},
.i2s_port = CODEC_ADC_I2S_PORT,
.install_drv = false,
.multi_out_num = 0,
.need_expand = false,
.out_rb_size = 8 * 1024, // default is 8 * 1024
Expand Down

0 comments on commit 74dfff2

Please sign in to comment.