Skip to content

Commit a227a22

Browse files
committed
Merge branch 'bugfix/fix_i2s_dma_error' into 'master'
bugfix(i2s): fix i2s dma error See merge request sdk/ESP8266_RTOS_SDK!960
2 parents 135c297 + 483a5a4 commit a227a22

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/esp8266/driver/i2s.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ static esp_err_t i2s_param_config(i2s_port_t i2s_num, const i2s_config_t *i2s_co
650650
I2S[i2s_num]->conf.rx_reset = 1;
651651
I2S[i2s_num]->conf.rx_reset = 0;
652652

653+
// disable all i2s interrupt
654+
I2S[i2s_num]->int_ena.val = 0;
655+
653656
//reset dma
654657
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 1;
655658
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 0;

examples/peripherals/i2s/main/i2s_example_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void app_main()
8484
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, // 2-channels
8585
.communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB,
8686
.dma_buf_count = 6,
87-
.dma_buf_len = 60
87+
.dma_buf_len = 256
8888
};
8989
i2s_pin_config_t pin_config = {
9090
.bck_o_en = I2S_BCK_EN,

0 commit comments

Comments
 (0)