am_event_handler_hsc.cc

来自「Motorola synergy audio component」· CC 代码 · 共 125 行

CC
125
字号
/* (c) Copyright Motorola 1996, All rights reserved.   Motorola Confidential Proprietary   Contains confidential proprietary information of Motorola, Inc.   Reverse engineering is prohibited.   The copyright notice does not imply publication.   DESCRIPTION:      This module will handle all hsc related primitives: hscaud_hookswitch_ind and      hscaud_key_feedback_ind. *************** REVISION HISTORY *********************************************   Date       Author      Reference   ========   ========    ==========================   00-08-09   mtaraba     CR - CSGce55882              Eliminate file gsm.h from audio manager   00-08-04   ktang       PR - CSGce67917              Update audio Manager to support Synergy Lite tone defs              - Removed function handle_hscaud_key_feedback_ind   00-05-05   shagino     CR - CSGce56425              Implement handsfree_status funtion              - Updated DL types to match new naming convention   00-05-02   mkloza      PR - CSGce54341              MATRIX command implementation              - removed unused function(s)   99-12-25   wchoi       CR - CSGce39558              - suapi compilancy and added VA/VR functionality back in              - removed unnecessary C++ classes for sending suapi messages   99-10-25   ktang       PR - CSGce40785              GRiEF Audio: DL Audio Tone Types and DL DB Feature IDs              - replaced td tone types and ids with DL tone types and ids   99-04-12   mkloza      PR - CSGce30453              "Blip" sound after setting SMS alert to music              - if SMS alert interrupted by key press              then send STOP_TONE for AUD_TONE_SMS_MESSAGE_ALERT tone.               Audio manager already remembers that it could be music tone.   99-01-07   mkloza      PR - CSGce21719              - added definition for handle_hscaud_dtmf_fbk_mute_ind_event()                function that handle HSC request to sound key tones                as a secret tones entry.   98-08-26   rentring    PR - CSGce21436              No audio when ext HS is MUTED then hung up              - changed handling of an external handsets hookstate to                not send a second aud_hookswitch_ind by just simply returning               - fixed some comments   98-07-06   aliang      CR - CSGce19444              AM Changes for User Selectable SMS Alert              - revised handle_hscaud_key_feedback_ind to include user selectable sms alert    98-02-15   gswanson    PR - CSGce12607              Add DAI support to AM              - moved all of the functionality for an external handsets hookstate change                 to inside the peripheral server              - changed get_hookswitch to a function that returns a value,                 rather that have it pass in a value to fill in.              - use /td definitions for the device types rather than local AM definitions.   98-01-21   gswanson    PR - CSGce16260   98-01-08   gswanson    PR - CSGce14851   97-11-17   krager      PR - CSGce14669   97-07-07   gswanson    PR - CSGce06712   97-05-12   gswanson    PR - CSGce10523*//************** INCLUDES ******************************************************/#include <SUAPI/suapi.h>#include <stddef.h>#include <ENGINE_AUDIO/td_dsc_bus_limits.h>#include <ENGINE_AUDIO/td_aud_tone_req_type.h>#include <ENGINE_AUDIO/td_hscaud_dtmf_fbk_mut_ind_typ.h>#include <ENGINE_AUDIO/td_hsc_public_key_event_type.h>#include <ENGINE_AUDIO/td_hsc_public_key_type.h>#include <ENGINE_AUDIO/hscaud_key_feedback_ind.h>#include <ENGINE_AUDIO/hscaud_dtmf_fbk_mute_ind.h>#include <audio/AM_Event_Handler.H>#include <audio/AM_Tone_Sequence_Handler.H>#ifndef DL_AUDIO_AUF_INCLUDE#include <SYNERGY_DEVICE_LAYER/dl_audio_auf.h>#endif/************** LOCAL CONSTANTS ***********************************************//************** FUNCTION DEFINITIONS ******************************************//* DESCRIPTION       This function activates and deactivates "mute DTMF keypress       tones" feature.     INPUTS       Pointer to generic primitive.   OUTPUTS       None.   IMPORTANT NOTES:       None.*/voidAM_Event_Handler :: handle_hscaud_dtmf_fbk_mute_ind_event( void *msg ){   HSCAUD_DTMF_FBK_MUTE_IND * dtmf_fbk_mute_ind = (HSCAUD_DTMF_FBK_MUTE_IND *)msg;   // set bit in configuration server to indicate if keypress tones should    // be played as a generic key tone   if(  dtmf_fbk_mute_ind->req_type == HSCAUD_DTMF_FBK_MUTE )   {       am_event_configuration_server.set (AM_CONFIGURATION_ID_DTMF_SECRET, TRUE);   }   else   {       am_event_configuration_server.set (AM_CONFIGURATION_ID_DTMF_SECRET, FALSE);   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?