hfp_ag.c (473ac565d5bec808a27038120ea3e66bd9fae3dd) hfp_ag.c (eddcd3084af8a144b56e09ed9af6b20590981c8a)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 798 unchanged lines hidden (view full) ---

807 // run codecs exchange
808 int done = codecs_exchange_state_machine(hfp_connection);
809 if (done) return done;
810
811 if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return done;
812 if (hfp_connection->establish_audio_connection){
813 hfp_connection->state = HFP_W4_SCO_CONNECTED;
814 hfp_connection->establish_audio_connection = 0;
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 798 unchanged lines hidden (view full) ---

807 // run codecs exchange
808 int done = codecs_exchange_state_machine(hfp_connection);
809 if (done) return done;
810
811 if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return done;
812 if (hfp_connection->establish_audio_connection){
813 hfp_connection->state = HFP_W4_SCO_CONNECTED;
814 hfp_connection->establish_audio_connection = 0;
815 hfp_setup_synchronous_connection(hfp_connection->acl_handle, hfp_connection->link_setting);
815 hfp_setup_synchronous_connection(hfp_connection);
816 return 1;
817 }
818 return 0;
819}
820
821static hfp_connection_t * hfp_ag_context_for_timer(btstack_timer_source_t * ts){
822 btstack_linked_list_iterator_t it;
823 btstack_linked_list_iterator_init(&it, hfp_get_connections());

--- 1489 unchanged lines hidden ---
816 return 1;
817 }
818 return 0;
819}
820
821static hfp_connection_t * hfp_ag_context_for_timer(btstack_timer_source_t * ts){
822 btstack_linked_list_iterator_t it;
823 btstack_linked_list_iterator_init(&it, hfp_get_connections());

--- 1489 unchanged lines hidden ---