1717#include "core/os.h"
1818#include "core/app.h"
1919#include "user/vfx.h"
20+ #include "user/ain.h"
2021#include "user/ble_app.h"
2122#include "user/ble_gatts.h"
22- #include "user/audio_input.h"
2323
2424#define BLE_GATTS_TAG "ble_gatts"
2525
@@ -135,7 +135,7 @@ static void profile_vfx_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t
135135#ifdef CONFIG_ENABLE_VFX
136136 vfx_config_t * vfx = vfx_get_conf ();
137137 #ifndef CONFIG_AUDIO_INPUT_NONE
138- uint8_t ain_mode = audio_input_get_mode ();
138+ uint8_t ain_mode = ain_get_mode ();
139139 #endif
140140#endif
141141
@@ -182,7 +182,7 @@ static void profile_vfx_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t
182182#ifdef CONFIG_ENABLE_VFX
183183 vfx_config_t * vfx = vfx_get_conf ();
184184 #ifndef CONFIG_AUDIO_INPUT_NONE
185- uint8_t ain_mode = audio_input_get_mode ();
185+ uint8_t ain_mode = ain_get_mode ();
186186 #endif
187187#endif
188188 if (!param -> write .is_prep ) {
@@ -198,7 +198,7 @@ static void profile_vfx_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t
198198 app_setenv ("VFX_INIT_CFG" , vfx , sizeof (vfx_config_t ));
199199 #ifndef CONFIG_AUDIO_INPUT_NONE
200200 ain_mode = DEFAULT_AIN_MODE ;
201- audio_input_set_mode (ain_mode );
201+ ain_set_mode (ain_mode );
202202 app_setenv ("AIN_INIT_CFG" , & ain_mode , sizeof (uint8_t ));
203203 #endif
204204#endif
@@ -212,7 +212,7 @@ static void profile_vfx_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t
212212 app_setenv ("VFX_INIT_CFG" , vfx , sizeof (vfx_config_t ));
213213 #ifndef CONFIG_AUDIO_INPUT_NONE
214214 ain_mode = param -> write .value [7 ];
215- audio_input_set_mode (ain_mode );
215+ ain_set_mode (ain_mode );
216216 app_setenv ("AIN_INIT_CFG" , & ain_mode , sizeof (uint8_t ));
217217 #endif
218218#endif
0 commit comments