hfp.c (1a26de69e9b36e0469cfd4d1d40a72bceca21fd4) hfp.c (ddbf29d22df43fa9ba38a11f0a29e21adfb98caa)
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

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

1644 hfp_connection->clip_enabled = hfp_connection->line_buffer[0] != '0';
1645 break;
1646 case HFP_CMD_ENABLE_CALL_WAITING_NOTIFICATION:
1647 hfp_connection->call_waiting_notification_enabled = hfp_connection->line_buffer[0] != '0';
1648 break;
1649 case HFP_CMD_HF_ACTIVATE_VOICE_RECOGNITION:
1650 value = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
1651 hfp_connection->ag_activate_voice_recognition_value = value;
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

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

1644 hfp_connection->clip_enabled = hfp_connection->line_buffer[0] != '0';
1645 break;
1646 case HFP_CMD_ENABLE_CALL_WAITING_NOTIFICATION:
1647 hfp_connection->call_waiting_notification_enabled = hfp_connection->line_buffer[0] != '0';
1648 break;
1649 case HFP_CMD_HF_ACTIVATE_VOICE_RECOGNITION:
1650 value = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
1651 hfp_connection->ag_activate_voice_recognition_value = value;
1652 log_info("hfp parse HFP_CMD_HF_ACTIVATE_VOICE_RECOGNITION %d\n", value);
1653 break;
1654 case HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION:
1655 switch(hfp_connection->parser_item_index){
1656 case 0:
1657 hfp_connection->ag_vra_status = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
1658 break;
1659 case 1:
1660 hfp_connection->ag_vra_state = (hfp_voice_recognition_state_t) btstack_atoi((char *)&hfp_connection->line_buffer[0]);

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

1672 hfp_connection->ag_msg.text_type = (hfp_text_type_t) btstack_atoi((char *)&hfp_connection->line_buffer[0]);
1673 break;
1674 case 5:
1675 hfp_emit_enhanced_voice_recognition_text(hfp_connection, hfp_connection->line_size, &hfp_connection->line_buffer[0]);
1676 break;
1677 default:
1678 break;
1679 }
1652 break;
1653 case HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION:
1654 switch(hfp_connection->parser_item_index){
1655 case 0:
1656 hfp_connection->ag_vra_status = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
1657 break;
1658 case 1:
1659 hfp_connection->ag_vra_state = (hfp_voice_recognition_state_t) btstack_atoi((char *)&hfp_connection->line_buffer[0]);

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

1671 hfp_connection->ag_msg.text_type = (hfp_text_type_t) btstack_atoi((char *)&hfp_connection->line_buffer[0]);
1672 break;
1673 case 5:
1674 hfp_emit_enhanced_voice_recognition_text(hfp_connection, hfp_connection->line_size, &hfp_connection->line_buffer[0]);
1675 break;
1676 default:
1677 break;
1678 }
1679 hfp_connection->parser_item_index++;
1680 break;
1681 default:
1682 break;
1683 }
1684}
1685
1686static void hfp_handle_start_sdp_client_query(void * context){
1687 UNUSED(context);

--- 312 unchanged lines hidden ---
1680 break;
1681 default:
1682 break;
1683 }
1684}
1685
1686static void hfp_handle_start_sdp_client_query(void * context){
1687 UNUSED(context);

--- 312 unchanged lines hidden ---