bugfix(i2s): fix i2s dma error

This commit is contained in:
xiongyu
2019-05-29 21:05:19 +08:00
parent 22d8fc6483
commit 483a5a475c
2 changed files with 4 additions and 1 deletions

View File

@ -650,6 +650,9 @@ static esp_err_t i2s_param_config(i2s_port_t i2s_num, const i2s_config_t *i2s_co
I2S[i2s_num]->conf.rx_reset = 1;
I2S[i2s_num]->conf.rx_reset = 0;
// disable all i2s interrupt
I2S[i2s_num]->int_ena.val = 0;
//reset dma
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 1;
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 0;

View File

@ -84,7 +84,7 @@ void app_main()
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, // 2-channels
.communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB,
.dma_buf_count = 6,
.dma_buf_len = 60
.dma_buf_len = 256
};
i2s_pin_config_t pin_config = {
.bck_o_en = I2S_BCK_EN,