From e84123e03d87ee483e82a9bdff2efda6b741aadf Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Thu, 18 Jan 2018 10:01:32 -0800 Subject: [PATCH] Clean up ESP32 compile warnings, use audio PLL Remove a couple compiler warnings found when building for the ESP32. Enable the high-precision audio PLL as clock source on ESP32. --- src/AudioOutputI2SDAC.cpp | 3 ++- src/libmad/layer3.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AudioOutputI2SDAC.cpp b/src/AudioOutputI2SDAC.cpp index 1af3e9a..c25c67b 100644 --- a/src/AudioOutputI2SDAC.cpp +++ b/src/AudioOutputI2SDAC.cpp @@ -39,7 +39,8 @@ i2s_config_t i2s_config_dac = { .communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB), .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1, // high interrupt priority .dma_buf_count = 8, - .dma_buf_len = 64 //Interrupt level 1 + .dma_buf_len = 64, //Interrupt level 1 + .use_apll = true // Use audio PLL }; i2s_pin_config_t pin_config_dac = { diff --git a/src/libmad/layer3.c b/src/libmad/layer3.c index 02cb84e..5a62644 100644 --- a/src/libmad/layer3.c +++ b/src/libmad/layer3.c @@ -2216,7 +2216,7 @@ void III_imdct_s(mad_fixed_t const X[18], mad_fixed_t z[36]) register mad_fixed64hi_t hi; register mad_fixed64lo_t lo; // MAD_F_MLA may produce non-32b aligned reads, so copy from progmem to stack and work from there... - mad_fixed_t const imdct_s_lcl[6][6]; + mad_fixed_t imdct_s_lcl[6][6]; memcpy_P(imdct_s_lcl, imdct_s, sizeof(imdct_s)); stack(__FUNCTION__, __FILE__, __LINE__);