hfp: add hfp_sco_setup_active

This commit is contained in:
Matthias Ringwald 2023-06-22 09:35:39 +02:00
parent 249b703b04
commit 6b3901f2f7
2 changed files with 8 additions and 0 deletions

View File

@ -1903,6 +1903,10 @@ uint8_t hfp_trigger_release_audio_connection(hfp_connection_t * hfp_connection){
return ERROR_CODE_SUCCESS;
}
bool hfp_sco_setup_active(void){
return hfp_sco_establishment_active != NULL;
}
void hfp_setup_synchronous_connection(hfp_connection_t * hfp_connection){
// all packet types, fixed bandwidth
int setting = hfp_connection->link_setting;

View File

@ -866,8 +866,12 @@ uint8_t hfp_trigger_release_audio_connection(hfp_connection_t * hfp_connection);
void hfp_reset_context_flags(hfp_connection_t * hfp_connection);
// @returns if an SCO setup is active in either role
bool hfp_sco_setup_active(void);
void hfp_setup_synchronous_connection(hfp_connection_t * hfp_connection);
void hfp_accept_synchronous_connection(hfp_connection_t * hfp_connection, bool incoming_eSCO);
int hfp_supports_codec(uint8_t codec, int codecs_nr, uint8_t * codecs);
void hfp_hf_drop_mSBC_if_eSCO_not_supported(uint8_t * codecs, uint8_t * codecs_nr);
void hfp_init_link_settings(hfp_connection_t * hfp_connection, uint8_t eSCO_S4_supported);