fix(afe): fix float precision errors

This commit is contained in:
xysun 2024-08-08 11:09:10 +08:00
parent f3578e9abf
commit fe63de89b3
6 changed files with 15 additions and 12 deletions

View File

@ -137,7 +137,7 @@ typedef struct {
.vad_mode = VAD_MODE_3, \
.wakenet_model_name = NULL, \
.wakenet_model_name_2 = NULL, \
.wakenet_mode = DET_MODE_2CH_90, \
.wakenet_mode = DET_MODE_90, \
.afe_mode = SR_MODE_LOW_COST, \
.afe_perferred_core = 0, \
.afe_perferred_priority = 5, \
@ -145,8 +145,8 @@ typedef struct {
.memory_alloc_mode = AFE_MEMORY_ALLOC_MORE_PSRAM, \
.afe_linear_gain = 1.0, \
.agc_mode = AFE_MN_PEAK_AGC_MODE_2, \
.pcm_config.total_ch_num = 3, \
.pcm_config.mic_num = 2, \
.pcm_config.total_ch_num = 2, \
.pcm_config.mic_num = 1, \
.pcm_config.ref_num = 1, \
.pcm_config.sample_rate = 16000, \
.debug_init = false, \
@ -189,4 +189,4 @@ typedef struct {
#ifdef __cplusplus
}
#endif
#endif

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -30,13 +30,6 @@ void check_chip_config(void)
#ifndef CONFIG_ESP32S3_DATA_CACHE_LINE_64B
ESP_LOGW(TAG, "Data cache line recommends 64B");
#endif
#elif CONFIG_IDF_TARGET_ESP32P4
#ifndef CONFIG_SPIRAM_SPEED
ESP_LOGW(TAG, "PSRAM should be enabled and PSRAM freq should be not less than 80MHz");
#endif
#ifndef CONFIG_CACHE_L2_CACHE_LINE_128B
ESP_LOGW(TAG, "It is recommended to set the cache line to 128B");
#endif
#elif CONFIG_IDF_TARGET_ESP32
#ifndef CONFIG_ESP32_DEFAULT_CPU_FREQ_240
@ -54,8 +47,18 @@ void check_chip_config(void)
#ifndef CONFIG_ESPTOOLPY_FLASHMODE_QIO
ESP_LOGW(TAG, "Flash mode should be QIO");
#endif
#elif CONFIG_IDF_TARGET_ESP32P4
#if (! defined CONFIG_ESPTOOLPY_FLASHFREQ_80M)
ESP_LOGW(TAG, "Flash freq should be 80MHz");
#endif
#ifndef CONFIG_SPIRAM_SPEED_200M
ESP_LOGW(TAG, "PSRAM freq should be 200MHz");
#endif
#else
ESP_LOGW(TAG, "ESP-SR-AFE only support ESP32/ESP32S3/ESP32P4");
ESP_LOGW(TAG, "ESP-SR-AFE only support ESP32/ESP32S3");
#endif
}