[i2s_audio] Include legacy driver IDF component when use_legacy is set (#14613)

This commit is contained in:
J. Nick Koston
2026-03-07 22:33:54 -06:00
committed by GitHub
parent ea7cfffdda
commit 66919ef969
+2
View File
@@ -281,6 +281,8 @@ async def to_code(config):
if use_legacy():
cg.add_define("USE_I2S_LEGACY")
# Legacy I2S API lives in the "driver" shim component (driver/i2s.h)
include_builtin_idf_component("driver")
# Helps avoid callbacks being skipped due to processor load
add_idf_sdkconfig_option("CONFIG_I2S_ISR_IRAM_SAFE", True)