Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_i2s_pdm_config' into 'master'
Browse files Browse the repository at this point in the history
Audio Stream: Fix the default config doesn't work for PDM RX

See merge request adf/esp-adf-internal!1290
  • Loading branch information
jason-mao committed Apr 7, 2024
2 parents 5a3ac7d + 7371acd commit 491d2cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/audio_stream/include/i2s_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ typedef struct {

#if SOC_I2S_SUPPORTS_PDM_RX
#define I2S_STREAM_PDM_RX_CFG_DEFAULT() { \
.type = AUDIO_STREAM_WRITER, \
.type = AUDIO_STREAM_READER, \
.transmit_mode = I2S_COMM_MODE_PDM, \
.chan_cfg = I2S_CHANNEL_DEFAULT_CONFIG(I2S_NUM_0, I2S_ROLE_MASTER), \
.pdm_rx_cfg = { \
Expand Down Expand Up @@ -390,4 +390,4 @@ esp_err_t i2s_stream_sync_delay(audio_element_handle_t i2s_stream, int delay_ms)
}
#endif

#endif
#endif

0 comments on commit 491d2cd

Please sign in to comment.