mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 10:20:58 +00:00
hfp: reset context codec negotiation
This commit is contained in:
parent
781e7b5097
commit
551cbfb38e
@ -604,11 +604,6 @@ static void hfp_reset_voice_recognition(hfp_connection_t * hfp_connection){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void hfp_reset_context_flags(hfp_connection_t * hfp_connection){
|
void hfp_reset_context_flags(hfp_connection_t * hfp_connection){
|
||||||
// establish codecs hfp_connection
|
|
||||||
hfp_connection->suggested_codec = 0;
|
|
||||||
hfp_connection->negotiated_codec = 0;
|
|
||||||
hfp_connection->codec_confirmed = 0;
|
|
||||||
|
|
||||||
hfp_connection->establish_audio_connection = 0;
|
hfp_connection->establish_audio_connection = 0;
|
||||||
hfp_connection->enable_status_update_for_ag_indicators = 0xFF;
|
hfp_connection->enable_status_update_for_ag_indicators = 0xFF;
|
||||||
hfp_reset_voice_recognition(hfp_connection);
|
hfp_reset_voice_recognition(hfp_connection);
|
||||||
@ -647,6 +642,11 @@ static hfp_connection_t * create_hfp_connection_context(void){
|
|||||||
hfp_connection->enable_extended_audio_gateway_error_report = 0;
|
hfp_connection->enable_extended_audio_gateway_error_report = 0;
|
||||||
hfp_connection->call_waiting_notification_enabled = 0;
|
hfp_connection->call_waiting_notification_enabled = 0;
|
||||||
|
|
||||||
|
// Codec negotiation
|
||||||
|
hfp_connection->suggested_codec = 0;
|
||||||
|
hfp_connection->negotiated_codec = 0;
|
||||||
|
hfp_connection->codec_confirmed = 0;
|
||||||
|
|
||||||
hfp_reset_context_flags(hfp_connection);
|
hfp_reset_context_flags(hfp_connection);
|
||||||
|
|
||||||
btstack_linked_list_add_tail(&hfp_connections, (btstack_linked_item_t*)hfp_connection);
|
btstack_linked_list_add_tail(&hfp_connections, (btstack_linked_item_t*)hfp_connection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user