]> granicus.if.org Git - esp-idf/commit
i2s: add (optional) support to clear tx descriptor in underflow case
authorMahavir Jain <mahavir@espressif.com>
Mon, 14 May 2018 09:03:45 +0000 (14:33 +0530)
committerMahavir Jain <mahavir@espressif.com>
Fri, 23 Nov 2018 09:01:09 +0000 (14:31 +0530)
commit765bf674d0d54b2b871bb2d1e41160bc4025da1a
treeb5abbfc4aa26dbb45092f0d90d49821fc91ee7c8
parent783ff9c45563b8d597da32e33e0ffefc67bff5df
i2s: add (optional) support to clear tx descriptor in underflow case

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
components/driver/i2s.c
components/driver/include/driver/i2s.h