编译esp-adf 时出现错误,无法选择Custom audio board,选择了就报错
Posted: Wed Dec 28, 2022 2:25 am
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c: In function 'es8156_codec_init':
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:43:22: error: 'BOARD_PA_GAIN' undeclared (first use in this function)
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:175:41: note: in expansion of macro 'ES8156_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ES8156_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:43:22: note: each undeclared identifier is reported only once for each function it appears in
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:175:41: note: in expansion of macro 'ES8156_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ES8156_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~
[24/150] Building C object esp-idf/esp-adf-libs/CMakeFiles/__idf_esp-adf-libs.dir/esp_codec/audio_forge.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
D:\iot\esp32\sdk\esp-adf\project\a2dp_stream_with_tp123_copy>
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:43:22: error: 'BOARD_PA_GAIN' undeclared (first use in this function)
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:175:41: note: in expansion of macro 'ES8156_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ES8156_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:43:22: note: each undeclared identifier is reported only once for each function it appears in
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:175:41: note: in expansion of macro 'ES8156_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ES8156_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~
[24/150] Building C object esp-idf/esp-adf-libs/CMakeFiles/__idf_esp-adf-libs.dir/esp_codec/audio_forge.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
D:\iot\esp32\sdk\esp-adf\project\a2dp_stream_with_tp123_copy>