mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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.
This commit is contained in:
parent
abd96e592b
commit
99fa7efc2c
1 changed files with 3 additions and 2 deletions
|
|
@ -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) */
|
/* send reply to HF with the features supported by Audio Gateway (=computer) */
|
||||||
ag_features |= mm_supported_features();
|
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, "+BRSF: %u", ag_features);
|
||||||
rfcomm_send_reply(rfcomm, "OK");
|
rfcomm_send_reply(rfcomm, "OK");
|
||||||
} else if (spa_strstartswith(buf, "AT+BAC=")) {
|
} 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) {
|
} else if (profile == SPA_BT_PROFILE_HFP_AG) {
|
||||||
/* Start SLC connection */
|
/* Start SLC connection */
|
||||||
unsigned int hf_features = SPA_BT_HFP_HF_FEATURE_CLIP | SPA_BT_HFP_HF_FEATURE_3WAY |
|
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_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);
|
bool has_lc3 = device_supports_codec(backend, rfcomm->device, HFP_AUDIO_CODEC_LC3_SWB);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue