hfp_hf.c (84fb9ac1514d445fe9add7bef01bb906e0dd9b41) hfp_hf.c (722a85f3a63f0668cfb849f3f1d088b56e48635a)
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

--- 1034 unchanged lines hidden (view full) ---

1043 hfp_connection->state = HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED;
1044
1045 hfp_emit_slc_connection_event(hfp_connection, 0, hfp_connection->acl_handle, hfp_connection->remote_addr);
1046
1047 uint8_t i;
1048 for (i = 0; i < hfp_connection->ag_indicators_nr; i++){
1049 hfp_emit_ag_indicator_mapping_event(hfp_connection, &hfp_connection->ag_indicators[i]);
1050 }
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

--- 1034 unchanged lines hidden (view full) ---

1043 hfp_connection->state = HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED;
1044
1045 hfp_emit_slc_connection_event(hfp_connection, 0, hfp_connection->acl_handle, hfp_connection->remote_addr);
1046
1047 uint8_t i;
1048 for (i = 0; i < hfp_connection->ag_indicators_nr; i++){
1049 hfp_emit_ag_indicator_mapping_event(hfp_connection, &hfp_connection->ag_indicators[i]);
1050 }
1051
1052 for (i = 0; i < hfp_connection->ag_indicators_nr; i++){
1053 hfp_connection->ag_indicators[i].status_changed = 0;
1054 hfp_emit_ag_indicator_status_event(hfp_connection, &hfp_connection->ag_indicators[i]);
1055 }
1056
1051 // restore volume settings
1052 hfp_connection->speaker_gain = hfp_hf_speaker_gain;
1053 hfp_connection->send_speaker_gain = 1;
1054 hfp_emit_event(hfp_connection, HFP_SUBEVENT_SPEAKER_VOLUME, hfp_hf_speaker_gain);
1055 hfp_connection->microphone_gain = hfp_hf_microphone_gain;
1056 hfp_connection->send_microphone_gain = 1;
1057 hfp_emit_event(hfp_connection, HFP_SUBEVENT_MICROPHONE_VOLUME, hfp_hf_microphone_gain);
1058 // enable all indicators

--- 1126 unchanged lines hidden ---
1057 // restore volume settings
1058 hfp_connection->speaker_gain = hfp_hf_speaker_gain;
1059 hfp_connection->send_speaker_gain = 1;
1060 hfp_emit_event(hfp_connection, HFP_SUBEVENT_SPEAKER_VOLUME, hfp_hf_speaker_gain);
1061 hfp_connection->microphone_gain = hfp_hf_microphone_gain;
1062 hfp_connection->send_microphone_gain = 1;
1063 hfp_emit_event(hfp_connection, HFP_SUBEVENT_MICROPHONE_VOLUME, hfp_hf_microphone_gain);
1064 // enable all indicators

--- 1126 unchanged lines hidden ---