]> granicus.if.org Git - esp-idf/commitdiff
examples: enable option to auto clear I2S tx descriptor on underflow
authorMahavir Jain <mahavir@espressif.com>
Fri, 23 Nov 2018 09:09:04 +0000 (14:39 +0530)
committerMahavir Jain <mahavir@espressif.com>
Mon, 31 Dec 2018 08:13:34 +0000 (13:43 +0530)
Closes: https://github.com/espressif/esp-idf/issues/1945
(cherry picked from commit 1751607adfe7078f89a2bd07ea7f0a261cf8421c)

examples/bluetooth/a2dp_gatts_coex/main/main.c
examples/bluetooth/a2dp_sink/main/main.c

index 69e489930566cf6d137437ea32410b52e0b61a45..367602705917c8acf24bf687b72461fe9f1fb6a1 100644 (file)
@@ -653,8 +653,9 @@ void app_main()
         .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,                           //2-channels
         .communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB,
         .dma_buf_count = 6,
-        .dma_buf_len = 60,                                                      //
-        .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1                                //Interrupt level 1
+        .dma_buf_len = 60,
+        .intr_alloc_flags = 0,                                                  //Default interrupt priority
+        .tx_desc_auto_clear = true                                              //Auto clear tx descriptor on underflow
     };
 
 
index 66850d30d391bc69182cc7b000482254a305ae9b..830afe45e4793a431a03fc358efa2a7299b24eda 100644 (file)
@@ -63,8 +63,9 @@ void app_main()
         .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,                           //2-channels
         .communication_format = I2S_COMM_FORMAT_I2S_MSB,
         .dma_buf_count = 6,
-        .dma_buf_len = 60,                                                      //
-        .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1                                //Interrupt level 1
+        .dma_buf_len = 60,
+        .intr_alloc_flags = 0,                                                  //Default interrupt priority
+        .tx_desc_auto_clear = true                                              //Auto clear tx descriptor on underflow
     };