?? am_hw_primitive_builder.h
字號:
#ifndef AM_HARDWARE_PRIMITIVE_BUILDER_CLASS /* To prevent inadvertently including a header twice */#define AM_HARDWARE_PRIMITIVE_BUILDER_CLASS/* (c) Copyright Motorola 1996 - 2006, 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 file declares the AM_HW_Primitive Builder Class ************** REVISION HISTORY ********************************************** Date Author Reference ======== ======== ========================== 2005-12-13 w16355 CR - LIBhh59411 AUL stereo DAC can take up to 160ms to fully power up. 2005-10-17 w16355 CR - LIBhh15667 Panic Code: 0x00010304 MODEM_RUN_TIME_BAD_ID. 2005-09-13 w16355 CR - LIBgg56718 Pebble DAI stops working when Volume is adjusted. 2005-08-01 w16355 CR - LIBgg35198 AM needs to minimize chgs between audio events. 2005-06-23 w16355 CR - LIBgg36361 Need additional logging capabilities. 2005-06-03 w16355 CR - LIBgg03904 Atlas 2.3A Changes for feature 15226. 2005-03-24 w17860 CR - LIBff73690 Feature 10223 : Background audio feature interactions 2004-12-04 w16355 CR - LIBff37755 Fiji draws more than 5mA in standby mode. 2004-10-19 w16355 LIBff17193 Extra click sound when scrolling through sounds. - Removed EMU conditional compile since we need this for all PCAP2 and ATLAS IC's. 2004-11-05 w17860 LIBff24932 P4.4 Feature # 12583 Memory Reduction - Remove Voice Dial and Voice Tag 2004-07-06 w17860 LIBee21819 Pops and Click heard on Razor headset 2004-02-26 w17860 LIBdd64152 OT: Interrupted audio when call waiting advice is signalled - Added logging for HAPI signals 02-04-18 bal023 LIBbb28121 - fix LCA catchup 02-03-17 brb032 LIBbb23280 - LCA catchup 01-04-20 w17860 CR - LIBbb05515 Audio support for the TTY accessory in digital call mode. 02-01-17 bal023 LIBbb16809 LCA support for TTY - catchup from CR LIBbb05515 01-12-23 byr003 LIBbb15362 - LCA catchup for R1.2.1 01-10-22 brd007 CR - LIBbb09128 put neptune changes in #if (NEPTUNE == TRUE) 01-04-30 baf044 CR - CSGce94381 catchup for LCA (p2k baseline: PHX4US-G_P_3000.0E.07_IG7.11) 01-04-20 w17860 CR - LIBbb05515 Audio support for the TTY accessory in digital call mode. 01-03-08 mtaraba CSGce91273 Fix is_va_active() to report correctly 01-02-28 shagino CR - CSGce89923 RAM Savings - Make gain tables CONST - Removed am_hw_str_buffer_data buffer 01-02-26 mtaraba CSGce89691 Add DAI support out of a call 01-01-29 mtaraba CSGce79517 Fix VA record in a call 00-12-21 mtaraba CSGce82934 main_comp_hardware.h within engine_audio vob should be removed 00-11-20 mtaraba CSGce69100 Add support for DAI mode for GSM 00-09-11 hchuang CSGce66038 Provide an interface function for retrieving tone information - change update_tone from private to public attribute 00-09-11 hchuang CSGce68045 Analog Network DTMF fixes - update set_ctg_gain to use 2 input arguments, tone type is additional 00-08-04 ktang PR - CSGce67917 Update audio Manager to support Synergy Lite tone defs 00-08-09 ktang CR - CSGce68222 Adding the one-shot tone bit mask recognition in AM - Added parameter one-shot in build_tone function 00-08-09 mtaraba CR - CSGce55882 Eliminate file gsm.h from audio manager 00-06-19 mloutris CR - CSGce58879 Add new gain interface to support the audio and test tasks. - Removed obsolete gain functions. All gain functionality has been moved to am_c_utilities.c and am_c_utilities.h. 00-05-09 ktang PR - CSGce51877 Update Audio Manager to ITL Sound StyleGuide - Remvoed the member function build_music 00-05-05 shagino CR - CSGce56425 Implement handsfree_status funtion - Changed DL_AUDIO_TONE_TYPE to DL_AUDIO_TONE_TYPE_T. 00-04-27 mkloza PR - CSGce54341 MATRIX command implementation - added set_matrix() 00-04-14 hchuang CR - CSGce54805 update current prim id to HAPI generic prim id - replace sc_prim_ids with hapi_mdi_message_ids 00-03-31 mloutris PR - CSGce27128 00-03-31 mloutris PR - CSGce27128 Move audio gain tables from ROM to EEPROM for FDI products. - Adding prototype to return the device source and destination audio path pair. 00-03-30 shagino CR - CSGce53043 Stop all tones - Added prototype for stop_current_tone function. 00-03-02 ktang CR - CSGce50329 Sierra Audio Manager CTG fix - Added private data member tone_to_stop to remember the id of the tone requested by upper layer to stop - Added the public method to set private data tone_to_stop 00-01-05 wchoi PR -CSGce39558 Added VA/VR back into the system 99-12-03 ktang PR - CSGce40494 GRiEF AM Music Ringer - Changed function reset not to take arguments 99-11-16 ktang PR - CSGce42434 Common Tone Generator MDI messages - Added static public variable am_hw_tdma_analog - Added function build_music 99-10-25 ktang PR - CSGce40785 99-03-29 blamers PR - CSGce30057 99-03-15 mkloza PR - CSGce29606 99-03-10 blamers CR - CSGce29457 99-02-27 blamers CR - CSGce28847 99-01-26 mkloza PR - CSGce27430 99-01-20 blamers CR - CSGce26811 99-01-04 blamers CR - CSGce26131*//************** HEADER FILE INCLUDES ******************************************/#include <SUAPI/suapi.h>#include <stddef.h>#include <ENGINE_AUDIO/audio_conditional_compile_def.h>#include <ENGINE_AUDIO/td_vr_defs.h>#include <ENGINE_AUDIO/td_vr_capture_reps.h>#include <ENGINE_AUDIO/am_util_bits.h>#include "am_app_configuration_server.h"#include "am_app_logic_processor_main.h"#include "am_app_va_vr_server.h"#include "AM_HW_String_Primitive.H"#include "am_hw_primitive_builder_main.h"#include <ENGINE_AUDIO/am_hw_primitive_builder_interrupt.h>#include <ENGINE_HAPI/hapi_mdi_message_ids.h>#include <ENGINE_AUDIO/audscm_va_ind.h>#include <ENGINE_AUDIO/audscm_sdsr_ind.h>#include <ENGINE_SEEM/seem.h>#include <ENGINE_AUDIO/td_vr_group_types.h>#include <ENGINE_AUDIO/td_vr_voice_tag.h>#include <ENGINE_HAPI/hapi.h>#include <ENGINE_HAPI/hapi_cap_ext.h>/************** CONSTANTS *****************************************************//************** STRUCTURES, ENUMS, AND TYPEDEFS *******************************/enum{ // Decimal Hex AM_HW_NONE, // 0 0x00 AM_HW_AUD_IN_SEL, // 1 0x01 AM_HW_AUD_IN_GAIN, // 2 0x02 AM_HW_AUD_OUT_SEL, // 3 0x03 AM_HW_AUD_OUT_GAIN, // 4 0x04 AM_HW_A1_EN, // 5 0x05 AM_HW_A2_EN, // 6 0x06 AM_HW_ALEFT_EN, // 7 0x07 AM_HW_ARIGHT_EN, // 8 0x08 AM_HW_VIBRATOR_EN, // 9 0x09 AM_HW_AUD_IN_HPF_EN, // 10 0x0A AM_HW_CODEC_SMB_SEL, // 11 0x0B AM_HW_AUD_OUT_HPF_EN, // 12 0x0C AM_HW_AUD_OUT_DITHER_EN, // 13 0x0D AM_HW_DIGI_LOOPBACK_EN, // 14 0x0E AM_HW_CODEC_EN, // 15 0x0F AM_HW_CODEC_CLK_EN, // 16 0x10 AM_HW_CODEC_EN_2, // 17 0x11 AM_HW_CODEC_CLK_SEL, // 18 0x12 AM_HW_ST_DAC_CLK_SEL, // 19 0x13 AM_HW_ST_CLK_EN, // 20 0x14 AM_HW_DF_RESET_ST_DAC, // 21 0x15 AM_HW_ST_DAC_EN, // 22 0x16 AM_HW_ST_DAC_EN_2, // 23 0x17 AM_HW_ST_DAC_SR, // 24 0x18 AM_HW_MONO_ADDER, // 25 0x19 AM_HW_PGA_L_EN, // 26 0x1A AM_HW_AUDIO_IN_DET, // 27 0x1B AM_HW_STEREO_SPKR_EN, // 28 0x1C AM_HW_AUD_AHS_CFG, // 29 0x1D AM_HW_FM_DATA_RX, // 30 0x1E AM_HW_FM_DATA_TX, // 31 0x1F
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -