/******************************************************************** ** File Name: board_config.h ** ** File Description: ** ** Copyright(c) 2008 Sunplus Technologies - All Rights Reserved ** ** History Information Description ** Date Author Modification ** ********************************************************************/ #ifndef _CUSTOMER_H_ #define _CUSTOMER_H_ #include "subcustomer_setting.h" /******************************************************************** Macro ********************************************************************/ /*Define headphone active(when plug in) GPIO level*/ #define APP_AUDIO_HP_ACTIVE_GPIO_STATUS APP_AUDIO_HP_HIGH_ACTIVE #define SYSCONF_BOARD_POWER 1//0 AC 220V; 1 DC 12V; 2 AC/DC 12V+5V+5VSTB /*Param about PowerLimit setting*/ #if (CONFIG_CHIPID == 0x330) //CHIP 330 #define PLC_ENABLE (1) //enable the PLC setting #define PLC_TIMER (10) //control attack time , unit 1ms, min : 10ms (default) range: 10ms ~ 200ms #define PLC_ATTACK_RELEASE_RATIO (3) //control attack release ratio , to avoid audio output unsmooth issue. #define PLC_SP_ATTACK (-30) //Speaker attack 0: 0dB, -1 : -0.125dB , 2 : -0.25dB Min = -240(-30dB) #define PLC_HP_ATTACK (0) //Headphone attack 0: 0dB, -1 : -0.125dB , 2 : -0.25dB Min = -240(-30dB) #define PLC_LO_ATTACK (0) //Line out attck 0: 0dB, -1 : -0.125dB , 2 : -0.25dB Min = -240(-30dB) #else #define PLC_ENABLE (1) //enable the PLC setting #define PLC_TIMER (10) //control attack time , unit 1ms, min : 10ms (default) range: 10ms ~ 200ms #define PLC_ATTACK_RELEASE_RATIO (3) //control attack : release ratio , to avoid audio output unsmooth issue. #define PLC_SP_ATTACK (-35) //Speaker attack: 0: 0dB, -1 : -0.125dB , 2 : -0.25dB Min = -240(-30dB) #define PLC_HP_ATTACK (0) //Headphone attack 0: 0dB, -1 : -0.125dB , 2 : -0.25dB Min = -240(-30dB) #define PLC_LO_ATTACK (0) //Line out attck 0: 0dB, -1 : -0.125dB , 2 : -0.25dB Min = -240(-30dB) #endif /* Audio SIF threshold setting*/ #define OP_ATV_MN1ThH 0xb /*Carrier 1 Quality AAOS Threshold High Register (0x4A) */ #define OP_ATV_MN1ThL 0xa /*Carrier 1 Quality AAOS Threshold Low Register (0x4B)*/ #define OP_ATV_MN2ThH 0x34 /*Carrier 2 Quality AAOS Threshold High Register (0x4C)*/ #define OP_ATV_MN2ThL 0x21 /*Carrier 2 Quality AAOS Threshold Low Register (0x4D)*/ #define OP_ATV_PN2ThH 0x80 /*Carrier 1 Phase Noise AAOS Threshold high (0x4E)*/ #define OP_ATV_PN2ThL 0x20 /*Carrier 1 Phase Noise AAOS Threshold low (0x4F)*/ #define OP_ATV_FMSMTh 0x47 /*FM Subcarrier Magnitude AAOS Threshold High Registers (0x50)*/ #define OP_ATV_FMSMTl 0x32 /*FM Subcarrier Magnitude AAOS Threshold Low Registers (0x51)*/ #define OP_ATV_FMSNTh 0x32 /*FM Subcarrier Noise AAOS Threshold High Registers (0x52) */ #define OP_ATV_FMSNTl 0x30 /*FM Subcarrier Noise AAOS Threshold Low Registers (0x53) */ #define OP_ATV_NIERTh 0x60 /*NICAM Error Rate AAOS Threshold High Register (0x54) */ #define OP_ATV_NIERTl 0x55 /*NICAM Error Rate AAOS Threshold Low Register (0x55)*/ #define OP_ATV_PILMTh 0x5b /*Pilot Magnitude AAOS Threshold High Register (0x56)*/ #define OP_ATV_PILMTl 0x55 /*Pilot Magnitude AAOS Threshold Low Register (0x57)*/ #define OP_ATV_ASMTh 0x19 /*Carrier Magnitude ASD Threshold (0x81)*/ #define OP_ATV_ASQTh 0x16 /*Carrier FM Quality ASD Threshold (0x83)*/ #define OP_ATV_AANTh 0x09 /*Carrier AM Noise ASD Threshold (0x84)*/ #define OP_ATV_ANNTh 0x1e /*NICAM Noise ASD Threshold (0x85)*/ #define OP_ATV_SQlTh 0x1a /*Carrier FM Quality SCS Threshold (0x8D)*/ #define OP_ATV_SNsTh 0x1e /*NICAM Noise SCS Threshold (0x8E)*/ #define OP_ATV_ASFTh 0x30 /*Carrier Average Frequency ASD Threshold (0x82) */ #define OP_ATV_AVOLCo 0x0a /*Automatic Volume Correction (0x90): AVCEn[0]ˇBAVCDcy[2:1]ˇBAVCAtk[4:3]*/ #define OP_ATV_PSCLCh 0x97 /*Prescaler Level Left Channel (0x92)*/ #define OP_ATV_PSCRCh 0x97 /*Prescaler Level Right Channel (0x93)*/ #define OP_ATV_AVCThH 0x7f /*AVC Level Thresholds High (0x96) */ #define OP_ATV_AVCThL 0x7e /*AVC Level Thresholds Low (0x97)*/ #define OP_ATV_NIAMPLe 0x32 /*NICAM Analog Mono Prescaler Level (0x98) */ #define OP_ATV_NIPLe 0xff /*NICAM Prescaler Level (0x99)*/ #define OP_ATV_A2PLe 0x32 /*A2 Prescaler Level (0x9A)*/ #define OP_ATV_IAVCLo 0x05 /*AVC Manual Gain Control (0xDA) */ #define OP_ATV_IAVCRo 0x05 /*AVC Manual Gain Control (0xDB)*/ /* Audio AAOS auto mute setting*/ #define OP_ATV_AUTO_MUTE 1 /*AAOS autom mute 1:enable 0:disable*/ /******************************************************************** Enum ********************************************************************/ typedef enum { APP_CUSTOMER_BOARD_DEFINE_RDA_8503= 0, APP_CUSTOMER_BOARD_DEFINE_MAX, } APP_Customer_Board_Define_e; /******************************************************************** Function ********************************************************************/ extern APP_SourceVolOffset_t g_arAudioVolumeOffset[]; extern const UINT16 g_u16SourceVolOffset_Size; extern APP_SourceAudioAuxiliaryVolOffset_t g_arAudioAuxiliaryVolumeOffset[]; extern const UINT16 g_arAudioAuxiliaryVolumeOffset_Size; extern char *CV_CustomrBoardString[]; extern APP_SourceConfigTable_t g_APPSourceConfigTable[APP_CUSTOMER_BOARD_DEFINE_MAX]; extern UINT16 g_400mARange[SUPPORT_ADJUST_PWM_STAGE]; extern UINT16 g_700mARange[SUPPORT_ADJUST_PWM_STAGE]; extern UINT16 g_900mARange[SUPPORT_ADJUST_PWM_STAGE]; extern APP_Board_USB_Port_Maping_t g_arBoardUsbPortMaping[]; extern const UINT16 g_arBoardUsbPortMaping_Size; #endif