In https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/i2s.html it is detailed that the legacy api using i2s.h is deprecated and may be removed in the future. Instead, a different API from i2s_std.h (or i2s_pdm.h for pdm) should be used now.
In https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/i2s.html it is detailed that the legacy api using
i2s.his deprecated and may be removed in the future. Instead, a different API fromi2s_std.h(ori2s_pdm.hfor pdm) should be used now.