From b87eb50ada8195ff9703f6f0722a280c526dc6be Mon Sep 17 00:00:00 2001 From: jincheng Date: Tue, 16 Aug 2022 17:54:04 +0800 Subject: [PATCH] Fixed the failure of 'connect audio' operation in HFP examples with default SDK configuration Due to the lack of synchronized connections, the hf_client can not create audio_connection to hf_ag. Set default number of synchronized connection to 1. Closes https://github.com/espressif/esp-idf/issues/9537 --- .../bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.defaults | 1 + .../bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.defaults | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.defaults b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.defaults index c7f714a012a..d79e6d40d8e 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.defaults @@ -3,6 +3,7 @@ CONFIG_BT_ENABLED=y CONFIG_BT_BLE_ENABLED=n CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=y +CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN=1 CONFIG_BT_BLUEDROID_ENABLED=y CONFIG_BT_CLASSIC_ENABLED=y CONFIG_BT_HFP_ENABLE=y diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.defaults b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.defaults index e9b56e38074..4775673416a 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.defaults @@ -3,6 +3,7 @@ CONFIG_BT_ENABLED=y CONFIG_BT_BLE_ENABLED=n CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=y +CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN=1 CONFIG_BT_BLUEDROID_ENABLED=y CONFIG_BT_CLASSIC_ENABLED=y CONFIG_BT_HFP_ENABLE=y