Use I2C bus which controls the CODEC
Posted: Thu Feb 15, 2024 9:21 am
Hi, I am trying to use the same I2C bus which is used for codec controll to communicate with another IC
I cannot figure out however how the driver should be set up.
If I use i2c_driver_install for the same bus and same settings it seems to conflict with the initalization that has already been performed by the ES8388 driver (esp-adf\components\audio_hal\driver\es8388\es8388.c).
If I were able to have a shared i2c_handle between the codec driver and my code it would work, but I am hoping for a less complicated solution which does not involve modifying the driver ?
Thank you
I cannot figure out however how the driver should be set up.
If I use i2c_driver_install for the same bus and same settings it seems to conflict with the initalization that has already been performed by the ES8388 driver (esp-adf\components\audio_hal\driver\es8388\es8388.c).
If I were able to have a shared i2c_handle between the codec driver and my code it would work, but I am hoping for a less complicated solution which does not involve modifying the driver ?
Thank you