hfp_ag.c (d68dcce1839e6655bf2d775b6c924378a795f97b) | hfp_ag.c (a0653c3b5c210bfe291627d8de2733f878ea442b) |
---|---|
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 --- 606 unchanged lines hidden (view full) --- 615 && (hfp_supported_features & (1<<HFP_AGSF_ESCO_S4))){ 616 hfp_connection->link_setting = HFP_LINK_SETTINGS_S4; 617 } 618 } 619} 620 621static void hfp_ag_slc_established(hfp_connection_t * hfp_connection){ 622 hfp_connection->state = HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED; | 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 --- 606 unchanged lines hidden (view full) --- 615 && (hfp_supported_features & (1<<HFP_AGSF_ESCO_S4))){ 616 hfp_connection->link_setting = HFP_LINK_SETTINGS_S4; 617 } 618 } 619} 620 621static void hfp_ag_slc_established(hfp_connection_t * hfp_connection){ 622 hfp_connection->state = HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED; |
623 hfp_emit_event(hfp_callback, HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED, 0); 624 | 623 hfp_emit_connection_event(hfp_callback, HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED, 0, hfp_connection->acl_handle); 624 |
625 hfp_init_link_settings(hfp_connection); 626 627 // if active call exist, set per-hfp_connection state active, too (when audio is on) 628 if (hfp_gsm_call_status() == HFP_CALL_STATUS_ACTIVE_OR_HELD_CALL_IS_PRESENT){ 629 hfp_connection->call_state = HFP_CALL_W4_AUDIO_CONNECTION_FOR_ACTIVE; 630 } 631 // if AG is ringing, also start ringing on the HF 632 if (hfp_gsm_call_status() == HFP_CALL_STATUS_NO_HELD_OR_ACTIVE_CALLS && --- 1664 unchanged lines hidden --- | 625 hfp_init_link_settings(hfp_connection); 626 627 // if active call exist, set per-hfp_connection state active, too (when audio is on) 628 if (hfp_gsm_call_status() == HFP_CALL_STATUS_ACTIVE_OR_HELD_CALL_IS_PRESENT){ 629 hfp_connection->call_state = HFP_CALL_W4_AUDIO_CONNECTION_FOR_ACTIVE; 630 } 631 // if AG is ringing, also start ringing on the HF 632 if (hfp_gsm_call_status() == HFP_CALL_STATUS_NO_HELD_OR_ACTIVE_CALLS && --- 1664 unchanged lines hidden --- |