am_c_utilities.c

来自「Motorola synergy audio component」· C语言 代码 · 共 1,431 行 · 第 1/5 页

C
1,431
字号
#ifdef __cplusplusextern "C" {#endif/*==================================================================================================                                                                                   Module Name:        am_c_utilities.c    General Description:         C functions to determine and return the audio gains for GSM.         The audio gains consist of hardware amplifiers under software        control as well as digital gains performed by the DSP.====================================================================================================                               Motorola Confidential Proprietary                           Advanced Technology and Software Operations                        (c) Copyright Motorola 1999 - 2005 All Rights Reserved  Revision History:Date       Author      CR Number---------- ----------- ---------------------------------------------------------2005-06-23 w16355      CR - LIBgg36361           Need additional logging capabilities.2005-06-13 w17860      CR - LIBff63840              Apple 3990042: Sometimes after sync, phone only plays out right headphone2005-05-10 w16355      LIBff95124           Incorrect routing of call alert with BT Speakerphone.2005-05-05 w17860      CR - LIBgg00249           INTG: Panic when receive MT call very quickly before ringtone rang.2005-04-25 w16355      LIBff87544           Add unique PTT speakerphone mode mic table.2005-29-05 w17860      LIBff78139           Buzz in BTS when HS is attached to the phone2005-29-05 w17860      LIBff83088           Buzz in BTS when HS is attached to the phone2004-11-05 w17860      LIBff24932              P4.4 Feature # 12583 Memory Reduction               - Remove Voice Dial and Voice Tag2005-01-26 w17860      CR - LIBff42504           Panic with Neptune LTE2 ROM3. Audio shaping not disabled           - Make sure that CODER_ON is allowed to be sent only when              audio queue is empty and the messges have been sent to DSP2004-11-05 w17860      LIBff24932           P4.4 Feature # 12583 Memory Reduction            - Remove Voice Dial and Voice Tag2005-01-19 w17860      CR - LIBff55311           Feature 12969: Seperate out EMU headset from regular wired headset2004-06-29 w16355      LIBdd80946           PTT updates.2004-05-10 w17860      LIBee08172           Make a seperate tone request for MFT Vib from MME2004-04-26 w17860      CR - LIBdd95262           FT: "MP3" type ringer is too loud while connected to EIHF kit. 2004-04-02 w16355      CR - LIBdd93012                 RTime never told to stop stereo headset polling.2004-03-02 w16355      CR - LIBdd79661           Connect tone must be highest gain for stereo detection.2004-03-04 w17860      CR - LIBdd82660           FT: Vibrator on V220 phone was not strong compare to other Models.Author                          Date          Number     Description of Changes-------------------------   ------------    ----------   -------------------------------------------Lori Lareau                 02/16/2004      LIBdd73602   Increase sensitivity of rhythm lightsRavi Subramanyan            12/16/2003      LIBdd62227   MFT vib Updates for E398Gayathri S                  12/12/2003      LIBdd62239   Ringtone is heard in Vibrate or Silent modeLori Lareau                 10/24/2003      LIBdd50145   BT headset noise when connecting during callLori Lareau                 10/14/2003      LIBdd45712   BT Carkit Entertainment Mute not workingRavi Subramanyan            11/25/2003      LIBdd58234   Audio Manager changes for EMU BUS support for                                                          RazorRavi Subramanyan            09/29/2003      LIBdd42562   Cingular: Midi and MP3 tones are very low when                                                          connected to EIHFLori Lareau                 08/26/2003      LIBdd26880   Silent at zero not working for StereoLori Lareau                 08/22/2003      LIBdd30597   add new gain tables for fm and clip-on spkrphRavi Subramanyan            08/18/2003      LIBdd29159   remove am_new_mic variable altogether from                                                          AM codeRavi Subramanyan            08/12/2003      LIBdd21346   Acc: ACLT: MP4P: Audio does not transfer to                                                          external speaker phoneLori Lareau                 07/22/2003      LIBdd22819   CE bus audio loopback not workingRavi Subramanyan            07/21/2003      LIBdd19939   Change Audio Gain Table design so that it can be BRed                                                          to common MME w18944                      07/03/2003      LIBdd10607   Add mm alert path typeLori Lareau                 06/26/2003      LIBdd11970   Uncomment call to feature db for alerts silent at zero.Mike Loutris                04/18/2003      LIBbb95533   Port AWS T720 audio fixes to the Triplets and Talon.                                                         - Added a feature database call so that we                                                            make alerts silent at volume zero if the                                                           phone has been flexed for that.e11237                      4/17/2003       LIBbb87186   bluetooth handsfree support for tripletsw17860                      03/31/2003     LIBbb85957    TCG - Merge of Telematics CRs in dl_audio from                                                          R1.2.7 to R3.6Lori Lareau                 04/08/2003      LIBbb93063   MIDI does not play out of loudspeaker on E380Ravi Subramanyan            04/15/2003      LIBbb94790   Need to turn on the internal speakerphone gain tables                                                          for TripletsLori Haegele                10/14/2002      LIBbb60623   Gain changes for multimediaJon Eklund                  09/25/2002      LIBbb40880   BT Headset voice gain should be const, fix comment typosLori Haegele                06/18/2002      LIBbb38688   Route multimedia audio to alert speakerbob030                      11/07/2002      LIBbb52316   Use louder gain tables for ringer playback when Tx-ing.bel012                      10/22/2002      LIBbb58233   Updated the gain tables for LCA                                                         - Increase handset mic gain by 5dB                                                           to work with new TA02 mic.                                                           bob030                      09/10/2002      LIBbb51979   LCA: Audio manager should not have visibility of battery volatge.                                                         - Replaced call to HAPI_ATOD_phase_bplus_value()                                                            with call to SBCM_DISPLAY_get_batt_lvl()                                                         - Removed define of batt voltage.baf044                      09/12/2002      LIBbb55054   LCA: porting CR: LIBbb44407 from T720.qcf001                      07/26/2002      LIBbb44407   "silent" is silent in all casesbob030                      06/26/2002      LIBbb41132   LCA: Use louder gain table for ringer playback when B+ is above threshold                                                         - Added usage of AM_HW_ALERT_INT_SPEAKERPHONE_HIGH_BPLUS_SPEAKER_TABLE                                                           for HEADSET, CE_BUS_SPEAKER_PHONE and HANDSET .bab047                      03/17/2002      LIBbb23280 - LCA catchup for PAN8-G_03.07.1AI arc095                      02/19/2002      LIBbb20318   Reduce Mic Gain with Speakerphone/Quill for                                                          Panther2 GSMbmd031                      02/17/2002      LIBbb20411   LCA: Add MME support byl034                      01/30/2002      LIBbb17614   LCA: CatchUp to LIBbb14802. arc095                      01/09/2002      LIBbb12603   Improving audio for Bluetooth Headset on GSM Panther IIRavi Subramanyan            01/05/2002      LIBbb16053   GSM TTY: Need new gain tables to overcome buzz in a                                                          TTY call baf044                      12/24/2001      LIBbb14802   LCA: Update gains for LCA (NEPTUNE).byr003                      01-12-23        LIBbb15362   LCA catchup for R1.2.1 Ravi Subramanyan            10/05/2001      LIBbb07519   Replace MAKE_EXT_SMART_AUDIO comp flag with MAKE_MP3 &                                                         MAKE_TELEMATICS              w17860                      10/05/2001      LIBbb05515   Audio support for the TTY accessory in digital call mode.Maria Mazur                 09/26/2001      LIBbb06605   Edit TDMA DTMF gain table to make  keypress tone                                                         equivalent to CDMAvijayk                      09/18/2001      LIBbb04982   Side tone gain change for  Headset for TDMA phoenix.qcf001                      08/27/2001      LIBbb03392   Make alerts silent when volume=0 (CDMA Only)vijayk                      08/17/2001      LIBbb02978   Mic gain change for Boom Headset for TDMA phoenix.Maria Mazur                 08/13/2001      CSGce95246   Edit voice smart aduio speaker table to eliminate                                            LIBbb05920   small echo in TDMA              Linda Lee                   08/01/2001      LIBbb01233   Fix for telematics using DTMF gain table for voice.Hua Mao                     08/01/2001      LIBaa09175   Update VR gains for Handset, Boom Headset,                                                         FM Radio Headset for TDMA Phoenixmloutris                    06/01/2001      LIBaa03955   General gain updates for R1.1.lorih                       05/30/2001      LIBaa02995   FM Headset Sidetones.lorih                       05/30/2001      LIBaa02992   GSM - Reduce Handset Sidetones by 3dBQi Hu                       05/14/2001      LIBaa00967   TDMA gains modification.lorih                       05/03/2001      CSGce95426   TELEMATICS: Need GSM/TDMA smart audio gains.Li Li                       04/19/2001      CSGce93849   Multiply VA recording gain by 8. mloutris                    04/18/2001      CSGce95746   Audio: Some VA record paths are mapped                                                         incorrectly in R1.1.mloutris                    03/20/2001      CSGce92584   GSM gains for Boom and CE BUS mic need to be modified.mloutris                    03/15/2001      CSGce83858   Need separate volume settings for voice for                                                         each accessory class.shagino                     02/28/2001      CSGce89923   RAM Savings - Make gain tables CONSTbaf044                      04/09/2001      CSGce94379   Support for NEPTUNE (LCA).                                                         - Taking out am_hw_gain_table and am_hw_vol_step_table                                                           to a different file (am_tables.c). Those tables will be located in                                                            external FLASH for LCA (NEPTUNE) and ininternal ROM for P2K.mloutris                    02/23/2001      CSGce89650   Zero volume step should result in zero gain                                                         for non-voice tones.mloutris                    03/26/2001      CSGce87756   MP3 Lite: Audio Manager needs to support the                                                          MP3 clip-on accessory.mloutris                    02/16/2001      CSGce88958   PANTHER CDMA - decrease the mic gain by 4 db                                                         - Undo CSGce85558 since it results in echo                                                           on the receiving phone at high volume steps.mloutris                    02/15/2001      CSGce88720   AM - GSM gain updates.mloutris                    02/08/2001      CSGce87930   CDMA Panther int. speakerphone speaker                                                          matrix gain needs adjustment.mtaraba                     01/22/2001      CSGce82103   Audio not routed properly for Desktop Speakerphonemloutris                    01/22/2001      CSGce85558   PANTHER CDMA - fails TOLR for protocert,                                                         TX gain needs to be higher.							 - Added new tables for Panther since it 							   requires +4dB for handset mic matrix gains.jona                        12/18/2000      CSGce83353   Change dsp_base_gain_1 for table 17 (USB VOICE) for cdma                                                         from 0x0271 to 0x07BA (-0.3dB)mloutris                    01/09/2001      CSGce84684   csgce84684_il93a_mloutris_modify_tdma_gains                                                         - Add conditional compiles to separate new                                                           updated gains for TDMA so they won't be                                                           used for GSM until verified for GSM.bshapiro                    12/11/2000      CSGce82895   Merge IT6/IT7 audio changes into SIERRA_1.1.0001mtaraba                     12/21/2000      CSGce82934   main_comp_hardware.h within engine_audio vob should be removedmloutris                    11/01/2000      CSGce78567   Need to change Panther speakerphone mic gain to 4 dB                                                         - Lowered the matrix gain by 4dB.mloutris                    11/08/2000      CSGce79614   Need updated gains for bluetooth in va/vr modes.mloutris                    10/19/2000      CSGce77258   Update GSM gain tables.                                                         - Move remaining HW 1 gains to HW 2 field.                                                         - Only shift HW 1 gains for CDMA.mloutris                    10/19/2000      CSGce77203   Alert level changed due to Wally spec change.rsubram                     10/10/2000      CSGce75368   Unmuting the audio paths for the dumb accessories                                                          when connected                                                         - Added a new case for selecting the right clip-on                                                            and desktop speakerphone speaker gains table in                                                           determine_gain_table function.mloutris                    09/28/2000      CSGce74605   Add internal speakerphone VA playback speaker table.                                                         - Add int speakerphone VA playback tablemloutris                    09/26/2000      CSGce74257   Add support for the Clip-On Speakerphone.rsubram                     09/27/2000      CSGce73284   VA/VR gains support for all modes except for Handsetmloutris                    09/08/2000      CSGce72157   Need to update CCAP path selection for factory.mloutris                    09/08/2000      CSGce72157   Need to update CCAP path selection for factory.Dale Noble                  09/11/2000      CSGce72195   Changed get_gain() to use a table lookup for                                                         determination of mic or speaker.Chuck Farrell               09/08/2000      CSGce72106   - Fix GSM and TDMA compilation errorsmloutris                    08/30/2000      CSGce70003   - Decouple input and output gains.Mark Taraba                 08/23/2000      CSGce65193   Move AM_AUDIO_PATH_TYPE enumeration to a global header filemloutris                    08/17/2000      CSGce69584   - Fix alert CCAP gains and add off mic table.Lori Haegele                08/10/2000      CSGce65041   - Panther internal speakerphone gain support.Steve Hagino                08/03/2000      CSGce67731   - Make Audio Manager Ansi-Compliantmloutris                    05/25/2000      CSGce58879   - Creation of file      ''                       06/19/2000          ''       - Added all cdma gain tables.   ''                       06/29/2000          ''       - Added all gsm gain tables.Portability: This module is portable to other compilers.====================================================================================================                                        INCLUDE FILES==================================================================================================*/#include <ENGINE_AUDIO/audio_path_types.h>#include <audio/am_app_logic_processor_main.h>#include <ENGINE_AUDIO/am_c_utilities.h>#include <audio/am_hw_primitive_builder_main.h>#include <ENGINE_AUDIO/aud_prim_ids.h>

⌨️ 快捷键说明

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