hfp_ag.c (84fb9ac1514d445fe9add7bef01bb906e0dd9b41) | hfp_ag.c (a5764cd2cee516caabc54ad03dc19cdd17f8d296) |
---|---|
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 --- 1346 unchanged lines hidden (view full) --- 1355 1356 hfp_ag_stop_ringing(); 1357 1358 btstack_linked_list_iterator_t it; 1359 btstack_linked_list_iterator_init(&it, hfp_get_connections()); 1360 while (btstack_linked_list_iterator_has_next(&it)){ 1361 hfp_connection_t * hfp_connection = (hfp_connection_t *)btstack_linked_list_iterator_next(&it); 1362 if (hfp_connection->local_role != HFP_ROLE_AG) continue; | 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 --- 1346 unchanged lines hidden (view full) --- 1355 1356 hfp_ag_stop_ringing(); 1357 1358 btstack_linked_list_iterator_t it; 1359 btstack_linked_list_iterator_init(&it, hfp_get_connections()); 1360 while (btstack_linked_list_iterator_has_next(&it)){ 1361 hfp_connection_t * hfp_connection = (hfp_connection_t *)btstack_linked_list_iterator_next(&it); 1362 if (hfp_connection->local_role != HFP_ROLE_AG) continue; |
1363 if (hfp_connection->call_state != HFP_CALL_INCOMING_RINGING) continue; | 1363 if ((hfp_connection->call_state != HFP_CALL_INCOMING_RINGING) && 1364 (hfp_connection->call_state != HFP_CALL_W4_AUDIO_CONNECTION_FOR_IN_BAND_RING)) continue; |
1364 1365 hfp_connection->call_state = HFP_CALL_TRIGGER_AUDIO_CONNECTION; 1366 1367 hfp_connection->ag_indicators_status_update_bitmap = store_bit(hfp_connection->ag_indicators_status_update_bitmap, call_indicator_index, 1); 1368 hfp_connection->ag_indicators_status_update_bitmap = store_bit(hfp_connection->ag_indicators_status_update_bitmap, callsetup_indicator_index, 1); 1369 1370 hfp_ag_run_for_context(hfp_connection); 1371 break; // only single --- 1749 unchanged lines hidden --- | 1365 1366 hfp_connection->call_state = HFP_CALL_TRIGGER_AUDIO_CONNECTION; 1367 1368 hfp_connection->ag_indicators_status_update_bitmap = store_bit(hfp_connection->ag_indicators_status_update_bitmap, call_indicator_index, 1); 1369 hfp_connection->ag_indicators_status_update_bitmap = store_bit(hfp_connection->ag_indicators_status_update_bitmap, callsetup_indicator_index, 1); 1370 1371 hfp_ag_run_for_context(hfp_connection); 1372 break; // only single --- 1749 unchanged lines hidden --- |