i2s: fixed DAC no output issue

Closes https://github.com/espressif/esp-idf/issues/6470
This commit is contained in:
laokaiyao 2022-03-07 14:42:34 +08:00
parent 23e8233506
commit 387fb06aa0

View File

@ -198,7 +198,7 @@ void i2s_hal_config_param(i2s_hal_context_t *hal, const i2s_config_t *i2s_config
i2s_ll_set_rx_short_sync(hal->dev, 0); i2s_ll_set_rx_short_sync(hal->dev, 0);
i2s_ll_set_tx_msb_shift(hal->dev, 1); i2s_ll_set_tx_msb_shift(hal->dev, 1);
i2s_ll_set_rx_msb_shift(hal->dev, 1); i2s_ll_set_rx_msb_shift(hal->dev, 1);
if (i2s_config->communication_format & I2S_COMM_FORMAT_I2S_LSB) { if (i2s_config->communication_format & I2S_COMM_FORMAT_I2S_LSB || i2s_config->communication_format & I2S_COMM_FORMAT_I2S_MSB) {
if (i2s_config->mode & I2S_MODE_TX) { if (i2s_config->mode & I2S_MODE_TX) {
i2s_ll_set_tx_msb_shift(hal->dev, 0); i2s_ll_set_tx_msb_shift(hal->dev, 0);
} }