[i2s_audio] Include legacy driver IDF component when use_legacy is set

The "driver" shim component (providing driver/i2s.h) was excluded by
default in #13623 to reduce compile time. When use_legacy is true,
the i2s_audio component needs this shim for the legacy I2S API headers.
This commit is contained in:
J. Nick Koston
2026-03-07 17:21:00 -10:00
parent ea7cfffdda
commit f01a050db2
+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)