hfp_hf.c (d2e34ffbec341d76e0624304909e07d63f1ccd92) hfp_hf.c (7f8f119190fb5c4dbcc499490b8408ac3b4e4539)
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

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

1130 hfp_connection->command = HFP_CMD_NONE;
1131 hfp_connection->ok_pending = 0;
1132
1133 switch (response_pending_for_command){
1134 case HFP_CMD_TURN_OFF_EC_AND_NR:
1135 hfp_emit_event(hfp_connection, HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE, status);
1136 break;
1137 case HFP_CMD_CUSTOM_MESSAGE:
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

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

1130 hfp_connection->command = HFP_CMD_NONE;
1131 hfp_connection->ok_pending = 0;
1132
1133 switch (response_pending_for_command){
1134 case HFP_CMD_TURN_OFF_EC_AND_NR:
1135 hfp_emit_event(hfp_connection, HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE, status);
1136 break;
1137 case HFP_CMD_CUSTOM_MESSAGE:
1138 hfp_emit_event(hfp_connection, HFP_SUBEVENT_COMPLETE, status);
1138 hfp_emit_event(hfp_connection, HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT, status);
1139 break;
1140 default:
1141 event_emited = false;
1142
1143 switch (hfp_connection->state){
1144 case HFP_W4_EXCHANGE_SUPPORTED_FEATURES:
1145 if (has_codec_negotiation_feature(hfp_connection)){
1146 hfp_connection->state = HFP_NOTIFY_ON_CODECS;

--- 1126 unchanged lines hidden ---
1139 break;
1140 default:
1141 event_emited = false;
1142
1143 switch (hfp_connection->state){
1144 case HFP_W4_EXCHANGE_SUPPORTED_FEATURES:
1145 if (has_codec_negotiation_feature(hfp_connection)){
1146 hfp_connection->state = HFP_NOTIFY_ON_CODECS;

--- 1126 unchanged lines hidden ---