hfp_hf.c (5e8e3664c9f428500de2b2858a85bdf314ac9256) | hfp_hf.c (d2e34ffbec341d76e0624304909e07d63f1ccd92) |
---|---|
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 --- 697 unchanged lines hidden (view full) --- 706 707 if (hfp_connection->state == HFP_AUDIO_CONNECTION_ESTABLISHED) return 0; 708 709 // run codecs exchange 710 int done = codecs_exchange_state_machine(hfp_connection); 711 if (done) return 1; 712 713 if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 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 --- 697 unchanged lines hidden (view full) --- 706 707 if (hfp_connection->state == HFP_AUDIO_CONNECTION_ESTABLISHED) return 0; 708 709 // run codecs exchange 710 int done = codecs_exchange_state_machine(hfp_connection); 711 if (done) return 1; 712 713 if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 0; |
714 if (hci_can_send_command_packet_now() == false) return 0; |
|
714 if (hfp_connection->establish_audio_connection){ 715 hfp_connection->state = HFP_W4_SCO_CONNECTED; 716 hfp_connection->establish_audio_connection = 0; 717 hfp_setup_synchronous_connection(hfp_connection); 718 return 1; 719 } 720 return 0; 721} --- 1550 unchanged lines hidden --- | 715 if (hfp_connection->establish_audio_connection){ 716 hfp_connection->state = HFP_W4_SCO_CONNECTED; 717 hfp_connection->establish_audio_connection = 0; 718 hfp_setup_synchronous_connection(hfp_connection); 719 return 1; 720 } 721 return 0; 722} --- 1550 unchanged lines hidden --- |