Skip to content

Commit

Permalink
i2s: fixed DAC no output issue
Browse files Browse the repository at this point in the history
Closes #6470
  • Loading branch information
L-KAYA committed Mar 28, 2022
1 parent 23e8233 commit 387fb06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/soc/src/hal/i2s_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
}
}
}
}

Expand Down

0 comments on commit 387fb06

Please sign in to comment.