mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(i2s): support TX FIFO sync on esp32s31
This commit is contained in:
@@ -1673,6 +1673,7 @@ esp_err_t i2s_sync_enable_hw_fifo_sync(i2s_chan_handle_t tx_handle, bool enable)
|
||||
return ESP_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
i2s_ll_tx_enable_hw_fifo_sync(tx_handle->controller->hal.dev, enable);
|
||||
i2s_ll_tx_update(tx_handle->controller->hal.dev);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
@@ -1695,6 +1696,7 @@ esp_err_t i2s_sync_config_hw_fifo_sync(i2s_chan_handle_t tx_handle, const i2s_sy
|
||||
if (config->suppl_mode == I2S_SYNC_SUPPL_MODE_STATIC_DATA) {
|
||||
i2s_ll_tx_set_hw_fifo_sync_static_suppl_data(tx_handle->controller->hal.dev, config->suppl_data);
|
||||
}
|
||||
i2s_ll_tx_update(tx_handle->controller->hal.dev);
|
||||
return ESP_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -104,7 +104,7 @@ esp_err_t i2s_new_etm_task(i2s_chan_handle_t handle, const i2s_etm_task_config_t
|
||||
if (config->task_type == I2S_ETM_TASK_START) {
|
||||
// The i2s start will be controlled by etm
|
||||
handle->is_etm_start = true;
|
||||
} else {
|
||||
} else if (config->task_type == I2S_ETM_TASK_STOP) {
|
||||
// The i2s stop will be controlled by etm
|
||||
handle->is_etm_stop = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user