mirror of
https://github.com/esphome/esphome.git
synced 2026-08-31 18:16:03 +00:00
[i2s_audio] Include legacy driver IDF component when use_legacy is set (#14613)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user