mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
docs(i2s): add note for ws setting under DEFAULT config
Closes https://github.com/espressif/esp-idf/issues/18744
This commit is contained in:
@@ -356,6 +356,10 @@ Different slot communication formats can be generated by the following helper ma
|
||||
- :c:macro:`I2S_STD_PCM_SLOT_DEFAULT_CONFIG`
|
||||
- :c:macro:`I2S_STD_MSB_SLOT_DEFAULT_CONFIG`
|
||||
|
||||
.. note::
|
||||
|
||||
The standard mode slot helper macros set :cpp:member:`i2s_std_slot_config_t::ws_width` according to the ``bits_per_sample`` argument. If :cpp:member:`i2s_std_slot_config_t::slot_bit_width` is manually changed after using a helper macro, update :cpp:member:`i2s_std_slot_config_t::ws_width` as needed. For Philips and MSB formats, set ``ws_width`` to the slot bit width to keep the WS duty cycle at 50%. For PCM short format, ``ws_width`` should remain 1 BCLK.
|
||||
|
||||
The clock config helper macro is:
|
||||
|
||||
- :c:macro:`I2S_STD_CLK_DEFAULT_CONFIG`
|
||||
@@ -806,6 +810,10 @@ Here is the table of the data received in the buffer with different :cpp:member:
|
||||
- :c:macro:`I2S_TDM_PCM_SHORT_SLOT_DEFAULT_CONFIG`
|
||||
- :c:macro:`I2S_TDM_PCM_LONG_SLOT_DEFAULT_CONFIG`
|
||||
|
||||
.. note::
|
||||
|
||||
The TDM Philips and MSB slot helper macros use ``I2S_TDM_AUTO_WS_WIDTH`` by default, which sets the WS width to half of the frame width. If :cpp:member:`i2s_tdm_slot_config_t::ws_width` is manually changed, make sure the configured WS width matches the expected timing of the selected format.
|
||||
|
||||
The clock config helper macro is:
|
||||
|
||||
- :c:macro:`I2S_TDM_CLK_DEFAULT_CONFIG`
|
||||
|
||||
Reference in New Issue
Block a user