hfp_ag.c (2085619da9b63b490ba5d595e2702b1583f0caed) | hfp_ag.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 --- 1119 unchanged lines hidden (view full) --- 1128 return 1; 1129 } 1130 1131 // run codecs exchange 1132 int sent = codecs_exchange_state_machine(hfp_connection); 1133 if (sent) return 1; 1134 1135 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 --- 1119 unchanged lines hidden (view full) --- 1128 return 1; 1129 } 1130 1131 // run codecs exchange 1132 int sent = codecs_exchange_state_machine(hfp_connection); 1133 if (sent) return 1; 1134 1135 if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 0; |
1136 if (hci_can_send_command_packet_now() == false) return 0; |
|
1136 if (hfp_connection->establish_audio_connection){ 1137 hfp_connection->state = HFP_W4_SCO_CONNECTED; 1138 hfp_connection->establish_audio_connection = 0; 1139 hfp_setup_synchronous_connection(hfp_connection); 1140 return 1; 1141 } 1142 return 0; 1143} --- 2100 unchanged lines hidden --- | 1137 if (hfp_connection->establish_audio_connection){ 1138 hfp_connection->state = HFP_W4_SCO_CONNECTED; 1139 hfp_connection->establish_audio_connection = 0; 1140 hfp_setup_synchronous_connection(hfp_connection); 1141 return 1; 1142 } 1143 return 0; 1144} --- 2100 unchanged lines hidden --- |