mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/i2s_tx_mono_issue_v4.4' into 'release/v4.4'
fix(i2s): fixed i2s incorrect tx mono slot (v4.4) See merge request espressif/esp-idf!28450
This commit is contained in:
commit
f6a76d8e09
@ -244,8 +244,13 @@ void i2s_hal_tx_set_channel_style(i2s_hal_context_t *hal, const i2s_hal_config_t
|
||||
uint32_t chan_num = 2;
|
||||
uint32_t chan_bits = hal_cfg->chan_bits;
|
||||
uint32_t data_bits = hal_cfg->sample_bits;
|
||||
#if SOC_I2S_SUPPORTS_TDM
|
||||
bool is_mono = (hal_cfg->chan_fmt == I2S_CHANNEL_FMT_ALL_RIGHT) ||
|
||||
(hal_cfg->chan_fmt == I2S_CHANNEL_FMT_ALL_LEFT);
|
||||
#else
|
||||
bool is_mono = (hal_cfg->chan_fmt == I2S_CHANNEL_FMT_ONLY_RIGHT) ||
|
||||
(hal_cfg->chan_fmt == I2S_CHANNEL_FMT_ONLY_LEFT);
|
||||
#endif
|
||||
|
||||
/* Set channel number and valid data bits */
|
||||
#if SOC_I2S_SUPPORTS_TDM
|
||||
|
Loading…
Reference in New Issue
Block a user