earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
2.07k stars 439 forks source link

SPDIF output not working on ESP32 #589

Open vshymanskyy opened 2 years ago

vshymanskyy commented 2 years ago

Test project: Audio_SPDIF_ESP32_fail.zip

ESP8266:

pio run -e esp8266 -t upload
pio run -e esp8266 -t uploadfs

Result: LED is connected to RX,GND. LED light is (visually) stable, audio plays OK.

ESP32:

pio run -e esp32 -t upload
pio run -e esp32 -t uploadfs

Result: LED is connected to gpio27,GND. LED light is unstable, audio is not playing.

pwilkowski commented 1 year ago

I have exact same problem, it is not a problem of i2s capabilities because this project is able to output audio: https://github.com/amedes/esp_a2dp_sink_spdif

Altho from bluetooth and i want to have it play from sd card

Edzelf commented 9 months ago

I had the same problem. In AudioOutputSPDIF.cpp I commented out the line "rtc_clk_apll_enable(1, 28, 8, 5, 0);" (near line 187). Now it works correctly.