Audio_common.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:5k
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * Audio_common.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Audio common header
- *
- * Author:
- * -------
- * Andy Ueng (mtk00490)
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * $Revision$
- * $Modtime$
- * $Log$
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- //---------------------------------------------------------------------------
- #ifndef _AUDIO_COMMON_H_
- #define _AUDIO_COMMON_H_
- // form
- #define VERTICAL_LABEL_NUM 9
- #define PLOT_GRID 0x01
- #define PLOT_BOUNDARY_CURVE 0x02
- #define PLOT_WANTED_CURVE 0x04
- #define PLOT_ORG_CURVE 0x08
- #define PLOT_COMPENSATED_CURVE 0x10
- #define NOT_FOUND -1
- #define VSCALE_UNIT 5
- // Acoustic FIR coefficient
- // common
- #define TOTAL_TRC_FREQ_NUM 100
- // Customer volume setting
- #define TOTAL_AUDIO_MODE_NUM 4
- #define NORMAL_MODE_INDEX 0
- #define HEADSET_MODE_INDEX 1
- #define HANDFREE_MODE_INDEX 2
- #define TVOUT_MODE_INDEX 3
- #define TOTAL_TONE_NUM 7
- #define CALL_TONE_INDEX 0
- #define KEYPAD_TONE_INDEX 1
- #define MICROPHONE_INDEX 2
- #define GMI_TONE_INDEX 3
- #define SPEECH_TONE_INDEX 4
- #define SIDE_TONE_INDEX 5
- #define MELODY_INDEX 6
- #define TOTAL_VOLUME_LEVEL_NUM 7
- #define VOLUME_LEVEL_0_INDEX 0
- #define VOLUME_LEVEL_1_INDEX 1
- #define VOLUME_LEVEL_2_INDEX 2
- #define VOLUME_LEVEL_3_INDEX 3
- #define VOLUME_LEVEL_4_INDEX 4
- #define VOLUME_LEVEL_5_INDEX 5
- #define VOLUME_LEVEL_6_INDEX 6
- #define MID_VOLUME_LEVEL 3
- #define MID_VOLUME_GAIN 128
- typedef enum
- {
- AUDIO_FIR_VER_ORG = 0,
- AUDIO_FIR_VER_W0547,
- AUDIO_FIR_VER_W0547_45_TAP,
- AUDIO_FIR_VER_W0712,
- AUDIO_FIR_VER_W0740,
- AUDIO_FIR_VER_W0809
- } E_AUDIO_FIR_VER_T;
- // form
- typedef struct
- {
- int num;
- int x[TOTAL_TRC_FREQ_NUM+2];
- int y[TOTAL_TRC_FREQ_NUM+2];
- }sAudioPoint;
- #endif