?? am_event_handler_driver.cc
字號:
/* (c)Copyright Motorola 1996-2005 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 is the control module for AM_Event_Handler class. Upon receiving a primitive, it will route the primitive to the proper handler function. *************** REVISION HISTORY ********************************************* Date Author Reference ======== ======== ========================== 2006-01-30 a19950 LIBhh82547 port LIBhh18354 to P044 2005-11-23 e12122 LIBgg43622 Subscribe for Stop Complete 2005-07-05 rkamath1 LIBgg65242 Feature 16017 - added entry for AUD_SETTING_CHANGE_IND_ID in the am_event_handler_mapping_tbl 2004-11-05 w17860 LIBff24932 P4.4 Feature # 12583 Memory Reduction - Remove Voice Dial and Voice Tag 04-11-23 aja099 libff38547 VST VR Port 03-06-13 aaa063 LIBdd01040 Removed unused VST events from state table. 03-05-01 w50175 LIBdd01040 - Modify Audio Manager to accept VST VR port from CDMA T730 03-10-22 w17860 CR - LIBdd50170 In handle_primitive, check for tone ID only if the msg is AUD_TONE_REQ 03-09-23 w17860 CR - LIBdd42216 TCMD: TST_CAMERA does not work on 08.42I release - Allow aud_tone_req to go through for DL_AUDIO_TONE_TYPE_MULTIMEDIA_VIDEO. 03-06-04 a18984 CR - LIBdd06234 Audio Engine changes to support Vibe test command on E380 03-05-13 a18985 CR - LIBbb90227 MME Enhancements for OKI Support for Mymix Edit on E380 03-03-25 e11237 CR - LIBbb77547 support video telephony 03-04-28 w17860 CR - LIBdd02287 Turn off Noise Suppression when Network requests it for AMR 03-04-17 e11237 CR - LIBbb87186 bluetooth HFP on triplets 03-03-17 w17860 CR - LIBbb87685 MRS 8245: Haptics support for E390 03-03-16 a18984 CR - LIBbb76996 Support for MFT on E380 03-02-18 a3177c CR - LIBbb77026 OKI Support. Support for MIDI playback. 02-09-24 w18944 CR - LIBbb50981 Use of audio mdi queues while am suspended 02-09-24 w18944 CR - LIBbb50981 Use of audio mdi queues while am suspended 02-11-14 brb032 CR - LIBbb56504 Add new event for Media support. 01-10-05 w17860 CR - LIBbb07519 Replace MAKE_EXT_SMART_AUDIO comp flag with MAKE_MP3 & MAKE_TELEMATICS 01-12-20 ktang CR - LIBbb13753 Audio Media Request Redirection 01-07-01 rsubram CSGce95427 TELEMATICS: Need noise suppression and echo control to be dynamic. - Added a handle function to handle the dynamic echo and noise cancellation 00-12-21 mtaraba CSGce82934 main_comp_hardware.h within engine_audio vob should be removed 00-11-21 cfarrel CR - CSGce71778 MDI Audio error message handling - Modify event mapping table to handle the DSP tone complete reply and error reply 00-11-09 qcf001 CR - CSGce79507 00-09-11 mtaraba CR - CSGce68318 Add audio manager support for customer audio loopback testing 00-09-01 blamers CR - CSGce61298 Complete functionality for VA FF/Rew - Remove unused event handlers 00-08-14 ktang CR - CSGce68045 Analog Network DTMF fixes - Removed the mapping to function handle_hscaud_key_feedback_ind 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 - Took away the mapping to function handle_hscaud_key_feedback_ind 00-05-26 shagino CR - CSGce59603 Re-Merge in changes that were removed 00-05-02 mkloza PR - CSGce54341 MATRIX command implementation - removed unsupported primitives 00-03-30 shagino CR - CSGce53305 Audio Mute Request - Added primitive to be mapped to the proper function. 00-03-28 shagino CR - CSGce53043 Stop all tones - Added function to be mapped. 00-03-21 shagino PR - CSGce51678 - Corrected errors found at inspection. 00-03-14 shagino PR - CSGce51678 - Added primitives to be mapped for Power Up/Down. Made changes to the function handle_primitive. 00-03-14 mkloza PR - CSGce51641 00.02.08 cfarrel PR - CSGce48312 99.12.23 wchoi PR - CSGce39558 99-11-16 ktang PR - CSGce42434 99-01-20 blamers CR - CSGce26811 99-01-07 mkloza PR - CSGce21917 98-09-08 blamers CR - CSGce17243 98-02-15 gswanson PR - CSGce12607 98-03-19 blamers CR - CSGce17631 97-09-29 gdrumma PR - CSGce12568 97-12-30 slam PR - CSGce15146 97-12-10 dbognich PR - CSGce15249 97-12-04 slam PR - CSGce15147 97-10-15 dbognich PR - CSGce09621 97-09-10 slam PR - CSGce12890 97-09-09 mgilot PR - CSGce12631 97-08-05 slam PR - CSGce11610 97-09-29 gdrumma PR - CSGce12568 97-07-07 gswanson PR - CSGce06712 97-05-23 slam PR - CSGce10240 97-04-05 gswanson smocfire_gms_CSGce08550 97-03-17 gswanson aud2_gms_CSGce09090*//************** INCLUDES ******************************************************/#include <SUAPI/suapi.h>#include <ENGINE_AUDIO/audio_conditional_compile_def.h>#include <ENGINE_AUDIO/aud_prim_ids.h>#include <audio/AM_Event_Handler.H>#include <ENGINE_AUDIO/mmi_prim_ids.h>#include <ENGINE_AUDIO/hscaud_prim_ids.h>#include <MME/mm_auf_common_defs.h>#include <SYNERGY_DEVICE_LAYER/dl_message_ids.h>#include <audio/aud_tone_req.h> /************** LOCAL CONSTANTS ***********************************************/extern BOOL am_suspend;/************** LOCAL STRUCTURES, ENUMS, AND TYPEDEFS *************************//************** LOCAL FUNCTION PROTOTYPES *************************************//************** LOCAL MACROS **************************************************//************** LOCAL VARIABLES ***********************************************/AM_EH_AUDIO_MEM_BLOCK AM_Event_Handler::am_event_memory;//TD_MAIL_ADDRESS AM_Event_Handler::am_rx_message_from_task;const AM_EVENT_PRIM_TO_FUNC AM_Event_Handler::am_event_handler_mapping_tbl[] ={ /*** VST VR Event Handlers ***/{AUD_RECORDED_DATA_READY_REQ_ID, &AM_Event_Handler::handle_aud_vst_vr_recorded_data_ready_req},#if (MAKE_FTR_VR == TRUE){AUD_PLAY_VOICE_TAG_REQ_ID, &AM_Event_Handler::handle_aud_play_voice_tag_req},{AUD_SDVR_CAPTURE_REQ_ID, &AM_Event_Handler::handle_aud_sdvr_capture_req},{AUD_SDVR_DELETE_VOICE_TAG_REQ_ID, &AM_Event_Handler::handle_aud_sdvr_delete_req},{AUD_SDVR_MODEL_ID_REQ_ID, &AM_Event_Handler::handle_aud_sdvr_model_id_req},{AUD_SDVR_START_REQ_ID, &AM_Event_Handler::handle_aud_sdvr_start_req},{AUD_SDVR_TRAIN_REQ_ID, &AM_Event_Handler::handle_aud_sdvr_train_req},{AUD_VR_STOP_REQ_ID, &AM_Event_Handler::handle_aud_vr_stop_req},{AUD_VR_ENABLE_ID, &AM_Event_Handler::handle_aud_vr_enable_req},{AUD_VR_DISABLE_ID, &AM_Event_Handler::handle_aud_vr_disable_req},#endif#if (MAKE_FTR_VA == TRUE){AUD_VA_COMMAND_REQ_ID, &AM_Event_Handler::handle_aud_va_command_req},// reports the VA Time remaining.{SEEM_DATA_STREAM_STOP_IND_ID, &AM_Event_Handler::handle_seem_data_stream_stop},#endif#if ((MAKE_FTR_VA == TRUE) ||\ (MAKE_FTR_VR == TRUE)){AUD_REFORMAT_FLASH_REQ_ID, &AM_Event_Handler::handle_aud_reformat_flash_req},#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -