From 3b6b7e8a6035293f0f83e79703cb3af07c3a500c Mon Sep 17 00:00:00 2001 From: yangfeng Date: Wed, 24 Dec 2025 17:11:02 +0800 Subject: [PATCH] fix(examples/classic_bt): Add A2DP sink delay for AVRCP cover art and absolute volume examples --- .../bluedroid/classic_bt/avrcp_absolute_volume/main/main.c | 2 ++ .../bluedroid/classic_bt/avrcp_ct_cover_art/main/main.c | 2 ++ .../bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/bluetooth/bluedroid/classic_bt/avrcp_absolute_volume/main/main.c b/examples/bluetooth/bluedroid/classic_bt/avrcp_absolute_volume/main/main.c index 3e8411cbdf0..47a494816cf 100644 --- a/examples/bluetooth/bluedroid/classic_bt/avrcp_absolute_volume/main/main.c +++ b/examples/bluetooth/bluedroid/classic_bt/avrcp_absolute_volume/main/main.c @@ -221,6 +221,8 @@ static void bt_av_hdl_stack_evt(uint16_t event, void *p_param) #endif #endif + /* Get the default value of the delay value */ + esp_a2d_sink_get_delay_value(); /* Get local device name */ esp_bt_gap_get_device_name(); diff --git a/examples/bluetooth/bluedroid/classic_bt/avrcp_ct_cover_art/main/main.c b/examples/bluetooth/bluedroid/classic_bt/avrcp_ct_cover_art/main/main.c index 8a441c88dfa..f2d6d911080 100644 --- a/examples/bluetooth/bluedroid/classic_bt/avrcp_ct_cover_art/main/main.c +++ b/examples/bluetooth/bluedroid/classic_bt/avrcp_ct_cover_art/main/main.c @@ -103,6 +103,8 @@ static void bt_av_hdl_stack_evt(uint16_t event, void *p_param) #endif #endif + /* Get the default value of the delay value */ + esp_a2d_sink_get_delay_value(); /* Get local device name */ esp_bt_gap_get_device_name(); diff --git a/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt b/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt index 2cfa2028068..da473926c8c 100644 --- a/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt @@ -10,6 +10,6 @@ set(MY_COMPONENT_REQUIRES idf_component_register(SRCS "bt_app_av.c" "main.c" - PRIV_REQUIRES esp_driver_i2s bt nvs_flash esp_ringbuf esp_driver_dac + PRIV_REQUIRES bt nvs_flash PRIV_REQUIRES ${MY_COMPONENT_REQUIRES} INCLUDE_DIRS ".")