From 99fa7efc2c6a8db21ce6c4986a8344d997cd9aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Wed, 13 Nov 2024 15:38:13 +0100 Subject: [PATCH] bluez5: backend-native: Add eSCO S4 feature. eSCO S4 feature is mandatory since HFP 1.7. Found with PTS test HFP/HF/SLC/BV-03-C. --- spa/plugins/bluez5/backend-native.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index b51d0d31f..478f5d3da 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -890,7 +890,7 @@ static bool rfcomm_hfp_ag(struct rfcomm *rfcomm, char* buf) /* send reply to HF with the features supported by Audio Gateway (=computer) */ ag_features |= mm_supported_features(); - ag_features |= SPA_BT_HFP_AG_FEATURE_HF_INDICATORS; + ag_features |= SPA_BT_HFP_AG_FEATURE_HF_INDICATORS | SPA_BT_HFP_AG_FEATURE_ESCO_S4; rfcomm_send_reply(rfcomm, "+BRSF: %u", ag_features); rfcomm_send_reply(rfcomm, "OK"); } else if (spa_strstartswith(buf, "AT+BAC=")) { @@ -3146,7 +3146,8 @@ static DBusHandlerResult profile_new_connection(DBusConnection *conn, DBusMessag } else if (profile == SPA_BT_PROFILE_HFP_AG) { /* Start SLC connection */ unsigned int hf_features = SPA_BT_HFP_HF_FEATURE_CLIP | SPA_BT_HFP_HF_FEATURE_3WAY | - SPA_BT_HFP_HF_FEATURE_ENHANCED_CALL_STATUS; + SPA_BT_HFP_HF_FEATURE_ENHANCED_CALL_STATUS | + SPA_BT_HFP_HF_FEATURE_ESCO_S4; bool has_msbc = device_supports_codec(backend, rfcomm->device, HFP_AUDIO_CODEC_MSBC); bool has_lc3 = device_supports_codec(backend, rfcomm->device, HFP_AUDIO_CODEC_LC3_SWB);