-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio_stream: fix warnings with ESP-IDF >= 5
Fix the following warnings when building with ESP-IDF 5: In file included from /willow/deps/esp-adf/components/audio_stream/lib/gzip/miniz_inflate.h:32, from /willow/deps/esp-adf/components/audio_stream/lib/gzip/gzip_miniz.c:30: /opt/esp/idf/components/esp_rom/include/esp32s3/rom/miniz.h:7:2: warning: #warning "{target}/rom/miniz.h is deprecated, please use (#include "miniz.h") instead" [-Wcpp] 7 | #warning "{target}/rom/miniz.h is deprecated, please use (#include "miniz.h") instead" | ^~~~~~~ /willow/deps/esp-adf/components/audio_stream/i2s_stream.c:142:5: warning: 'dma_buf_count' is deprecated [-Wdeprecated-declarations] 142 | int index = i2s->config.i2s_config.dma_buf_count; | ^~~ In file included from /opt/esp/idf/components/driver/deprecated/driver/i2s.h:20, from /willow/deps/esp-adf/components/audio_stream/i2s_stream.c:33: /opt/esp/idf/components/driver/deprecated/driver/i2s_types_legacy.h:225:13: note: declared here 225 | int dma_buf_count __attribute__((deprecated)); /*!< This is an alias to 'dma_desc_num' for backward compatibility */ | ^~~~~~~~~~~~~ /willow/deps/esp-adf/components/audio_stream/i2s_stream.c:143:5: warning: 'dma_buf_len' is deprecated [-Wdeprecated-declarations] 143 | uint8_t *buf = audio_calloc(1, i2s->config.i2s_config.dma_buf_len * 4); | ^~~~~~~ /opt/esp/idf/components/driver/deprecated/driver/i2s_types_legacy.h:229:13: note: declared here 229 | int dma_buf_len __attribute__((deprecated)); /*!< This is an alias to 'dma_frame_num' for backward compatibility */ | ^~~~~~~~~~~ /willow/deps/esp-adf/components/audio_stream/i2s_stream.c:151:9: warning: 'dma_buf_len' is deprecated [-Wdeprecated-declarations] 151 | audio_element_output(self, (char *)buf, i2s->config.i2s_config.dma_buf_len * 4); | ^~~~~~~~~~~~~~~~~~~~ /opt/esp/idf/components/driver/deprecated/driver/i2s_types_legacy.h:229:13: note: declared here 229 | int dma_buf_len __attribute__((deprecated)); /*!< This is an alias to 'dma_frame_num' for backward compatibility */ | ^~~~~~~~~~~
- Loading branch information
Showing
3 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters