ESP32 application crash i2c: CONFLICT! driver_ng is not allowed to be used with this old driver

The application compiled with ESP-IDF 5.3 or newer might fail with the following message in the runtime:

i2c: CONFLICT! driver_ng is not allowed to be used with this old driver

Problem is caused by incompatible BSP (Board Support Package) which is using old version of I2C driver.

The solution is to add the following dependency into idf_component.yaml:

  esp_codec_dev:
    public: true
    version: "==1.1.0"

Rebuild the application and the problem should be resolved.