hfp.c (eb3e114b6fbccf66c781d71d0c1e5d68d5f9ecbc) hfp.c (84e7d3b9ed832c3903c91ded626ba2aba9533c80)
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

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

793 if (isHandsFree) return HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION;
794 return HFP_CMD_HF_ACTIVATE_VOICE_RECOGNITION;
795 }
796
797 if (strncmp(line_buffer+offset, HFP_TURN_OFF_EC_AND_NR, strlen(HFP_TURN_OFF_EC_AND_NR)) == 0){
798 return HFP_CMD_TURN_OFF_EC_AND_NR;
799 }
800
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

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

793 if (isHandsFree) return HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION;
794 return HFP_CMD_HF_ACTIVATE_VOICE_RECOGNITION;
795 }
796
797 if (strncmp(line_buffer+offset, HFP_TURN_OFF_EC_AND_NR, strlen(HFP_TURN_OFF_EC_AND_NR)) == 0){
798 return HFP_CMD_TURN_OFF_EC_AND_NR;
799 }
800
801 if (strncmp(line_buffer, HFP_CALL_ANSWERED, strlen(HFP_CALL_ANSWERED)) == 0){
801 if (strncmp(line_buffer, HFP_ANSWER_CALL, strlen(HFP_ANSWER_CALL)) == 0){
802 return HFP_CMD_CALL_ANSWERED;
803 }
804
805 if (strncmp(line_buffer, HFP_CALL_PHONE_NUMBER, strlen(HFP_CALL_PHONE_NUMBER)) == 0){
806 return HFP_CMD_CALL_PHONE_NUMBER;
807 }
808
809 if (strncmp(line_buffer+offset, HFP_REDIAL_LAST_NUMBER, strlen(HFP_REDIAL_LAST_NUMBER)) == 0){

--- 706 unchanged lines hidden ---
802 return HFP_CMD_CALL_ANSWERED;
803 }
804
805 if (strncmp(line_buffer, HFP_CALL_PHONE_NUMBER, strlen(HFP_CALL_PHONE_NUMBER)) == 0){
806 return HFP_CMD_CALL_PHONE_NUMBER;
807 }
808
809 if (strncmp(line_buffer+offset, HFP_REDIAL_LAST_NUMBER, strlen(HFP_REDIAL_LAST_NUMBER)) == 0){

--- 706 unchanged lines hidden ---