hfp_hf.c (d68dcce1839e6655bf2d775b6c924378a795f97b) | hfp_hf.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 --- 820 unchanged lines hidden (view full) --- 829 && (hfp_connection->remote_supported_features & (1<<HFP_AGSF_ESCO_S4))){ 830 hfp_connection->link_setting = HFP_LINK_SETTINGS_S4; 831 } 832 } 833} 834 835static void hfp_ag_slc_established(hfp_connection_t * hfp_connection){ 836 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 --- 820 unchanged lines hidden (view full) --- 829 && (hfp_connection->remote_supported_features & (1<<HFP_AGSF_ESCO_S4))){ 830 hfp_connection->link_setting = HFP_LINK_SETTINGS_S4; 831 } 832 } 833} 834 835static void hfp_ag_slc_established(hfp_connection_t * hfp_connection){ 836 hfp_connection->state = HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED; |
837 hfp_emit_event(hfp_callback, HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED, 0); | 837 hfp_emit_connection_event(hfp_callback, HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED, 0, hfp_connection->acl_handle); |
838 hfp_init_link_settings(hfp_connection); 839 // restore volume settings 840 hfp_connection->speaker_gain = hfp_hf_speaker_gain; 841 hfp_connection->send_speaker_gain = 1; 842 hfp_emit_event(hfp_callback, HFP_SUBEVENT_SPEAKER_VOLUME, hfp_hf_speaker_gain); 843 hfp_connection->microphone_gain = hfp_hf_microphone_gain; 844 hfp_connection->send_microphone_gain = 1; 845 hfp_emit_event(hfp_callback, HFP_SUBEVENT_MICROPHONE_VOLUME, hfp_hf_microphone_gain); --- 712 unchanged lines hidden --- | 838 hfp_init_link_settings(hfp_connection); 839 // restore volume settings 840 hfp_connection->speaker_gain = hfp_hf_speaker_gain; 841 hfp_connection->send_speaker_gain = 1; 842 hfp_emit_event(hfp_callback, HFP_SUBEVENT_SPEAKER_VOLUME, hfp_hf_speaker_gain); 843 hfp_connection->microphone_gain = hfp_hf_microphone_gain; 844 hfp_connection->send_microphone_gain = 1; 845 hfp_emit_event(hfp_callback, HFP_SUBEVENT_MICROPHONE_VOLUME, hfp_hf_microphone_gain); --- 712 unchanged lines hidden --- |