Closed PilnyTomas closed 10 months ago
tx_right_first
is set by i2s_ll_tx_enable_right_first
in dac_dma.c
, as well as tx_msb_shift
and tx_short_sync
, so these redundant configuration in i2s_ll_enable_builtin_dac
will be removed.
Thanks for your suggestion! @PilnyTomas
Answers checklist.
General issue report
This is a minor issue. No need to rush. branch: master, release/v5.2, release/v5.1, release/v5.0 file: components/hal/esp32/include/hal/i2s_ll.h function: i2s_ll_enable_builtin_dac link: https://github.com/espressif/esp-idf/blob/30870c819f8bf1be1c8a3b4360be8174a280b40c/components/hal/esp32/include/hal/i2s_ll.h#L1161 Description The parameter
enable
is described asSet true to enable build in DAC
The reg fieldtx_right_first
is being set by the parameterenable
. According to the TRM:Set this bit to transmit right-channel data first.
This reg field is already controlled by functioni2s_ll_tx_enable_right_first
Conclusion: I suggested changing the linehw->conf.tx_right_first = enable;
tohw->conf.tx_right_first = 0;