remove unused ISR allocation

this was blocking the i2s driver somehow!(?)
custom
jacqueline 2 years ago
parent ef8d404b15
commit aae1871999
  1. 4
      src/audio/i2s_audio_output.cpp
  2. 2
      src/drivers/display.cpp
  3. 1
      src/main/main.cpp

@ -92,12 +92,10 @@ auto I2SAudioOutput::ProcessStreamInfo(const StreamInfo& info)
auto I2SAudioOutput::ProcessChunk(const cpp::span<std::byte>& chunk) auto I2SAudioOutput::ProcessChunk(const cpp::span<std::byte>& chunk)
-> cpp::result<std::size_t, AudioProcessingError> { -> cpp::result<std::size_t, AudioProcessingError> {
ESP_LOGI(kTag, "playing samples");
SetSoftMute(false); SetSoftMute(false);
// TODO(jacqueline): write smaller parts with a small delay so that we can // TODO(jacqueline): write smaller parts with a small delay so that we can
// be responsive to pause and seek commands. // be responsive to pause and seek commands.
std::size_t bytes_written = dac_->WriteData(chunk, portMAX_DELAY); dac_->WriteData(chunk, portMAX_DELAY);
ESP_LOGI(kTag, "played %u bytes", bytes_written);
return 0; return 0;
} }

@ -241,7 +241,7 @@ void Display::Flush(lv_disp_drv_t* disp_drv,
// lv_disp_flush_ready(&driver_); // lv_disp_flush_ready(&driver_);
} }
void IRAM_ATTR Display::PostTransaction(const spi_transaction_t& transaction) { void Display::PostTransaction(const spi_transaction_t& transaction) {
if (reinterpret_cast<uintptr_t>(transaction.user) & LVGL_FLUSH) { if (reinterpret_cast<uintptr_t>(transaction.user) & LVGL_FLUSH) {
lv_disp_flush_ready(&driver_); lv_disp_flush_ready(&driver_);
} }

@ -89,7 +89,6 @@ void lvgl_main(void* voidArgs) {
extern "C" void app_main(void) { extern "C" void app_main(void) {
ESP_LOGI(TAG, "Initialising peripherals"); ESP_LOGI(TAG, "Initialising peripherals");
ESP_ERROR_CHECK(gpio_install_isr_service(ESP_INTR_FLAG_LOWMED));
ESP_ERROR_CHECK(drivers::init_i2c()); ESP_ERROR_CHECK(drivers::init_i2c());
ESP_ERROR_CHECK(drivers::init_spi()); ESP_ERROR_CHECK(drivers::init_spi());

Loading…
Cancel
Save