arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.73k stars 4.72k forks source link

i2s audio, some small improvements #21433

Closed Staars closed 1 month ago

Staars commented 1 month ago

Description:

  1. Prevents unworkable default mode PDM for microphone on SOC's that do not support PDM mode (e.g. ESP-S2).
  2. Prevents crash when attempting to record in stereo mode, which does not really make sense on a mono microphone, but at least it is possible now.
  3. Less strict memory management for the MP3 encoder, which does not need preallocation anymore in the driver settings. Now late allocation is supported, but preallocation is still possible and it can be still useful, if free (large blocks of) heap is not guaranteed later in the running system.

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass