mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
i2s: fixed DAC no output issue
Closes https://github.com/espressif/esp-idf/issues/6470
This commit is contained in:
parent
23e8233506
commit
387fb06aa0
@ -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_tx_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) {
|
||||
i2s_ll_set_tx_msb_shift(hal->dev, 0);
|
||||
}
|
||||
@ -220,7 +220,7 @@ void i2s_hal_config_param(i2s_hal_context_t *hal, const i2s_config_t *i2s_config
|
||||
if (i2s_config->mode & I2S_MODE_RX) {
|
||||
i2s_ll_set_rx_short_sync(hal->dev, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user