mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
62eb0f4c12
It has been observed that, in case of underflow (data unavailability) in I2S transmission, previously filled up tx descriptors continue to get transmitted on line, causing noise in case of audio use case. This change adds optional `tx_desc_auto_clear` field during I2S driver intialization than can zero initialize tx descriptor in case of underflow situation in interrupt handler itself. Closes: https://github.com/espressif/esp-idf/issues/1789 (cherry picked from commit 765bf674d0d54b2b871bb2d1e41160bc4025da1a)