www.pudn.com > 8202S.rar > cust_def.h
#ifndef _CUST_DEF_H_
#define _CUST_DEF_H_
#include ".\\h\\set.h"
#ifdef SDRAM_16Mb_Mode
//#define SETUP_PROGRAM_IN_PLACE_UNDER_16M
#ifdef SETUP_PROGRAM_IN_PLACE_UNDER_16M // 2004/12/29 yltseng
// Because we use track buffer to store Setup/Program OSD, so this buffer can't
// be overwritten when Setup/Program OSD is shown
#undef SETUP_DONT_PAUSE
#undef PROG_DONT_PAUSE
#define JPEG_PAUSE_WHEN_SETUP
#endif
#endif
#define SUPPORT_PRECALCULATE_VIDEOBITRATE_FOR_FILE_MODE // 2004/08/11 yltseng
//#define SEL_AUDIO_LANG_BY_USER
//#define SEL_AUDIO_LANG_BY_SETUPMENU
//#define FIX_VIDEO_RATIO_ISSUE//nono 20040518
//#define SP_CTRL_BY_SETUP_MENU//nono 4-9-7 23:39 for SETUP MENU is set "OFF", but SUBP is still ON. Tkx for Terry's help.
//#define DVD_REP_ALL_TITLE //terry,2003/10/18 06:30PM
#define SHARE_NAV_VAR //terry, share dvd/jpeg/vcd/mp3 global variable memory
#define SUPPORT_ECC //define to use software ECC+De-Interlave for CDDA(CD-G) subchannel
//#define SUPPORT_STREAM_BUFFER
//#define SUPPORT_MIX_MP3_CDDA
#ifdef SUPPORT_MIX_MP3_CDDA //linrc change "SUPPORT_MIX_MP3_CDDA" to "SUPPORT_MIX_DATA_CDDA_DISC"
#define SUPPORT_MIX_DATA_CDDA_DISC //because we support this type mix mode disc 2004-12-15 15:53
#endif
//#define UOP_PROHIBIT_ANGLE_SHOW_OFF //nono 3-12-18 15:10 for YILI.
//#define JPG_EFFECT //David Add 3-6-26 17:12
//#define JPG_ONCE_SHOW_ALL_PER_PIECE
//#define USER_LOGO
//#define JPG_LOGO //use JPG save to logo.
//#define USER_MPEG_LOGO //David 3-7-15 17:55
//#define SF_SR_IN_A_KEY //freyman 2003-8-3 16:52 moved here from ircmd.c
//#define DVD_SEQ_PLAY
#define NEW_GOTO
//#define BIG_AC3_VOICE //terry, adjust ac3 default voice volume,0508 ,avoid audio noise
//#define SUPPORT_ID3
//#define SUPPORT_CHINESE_FONT
#if defined( SUPPORT_CHINESE_FONT ) || defined( SUPPORT_CHINESE_FONT_COMPRESSED )
// spuuort BIG5 or GB. only one can be activated.
#ifdef SUPPORT_CHINESE_FONT
#ifdef BBK_DV911S //fengjl add 2004-05-21 17:04
#define USE_GB2312_FONT
#else
//#define USE_BIG5_FONT
#define USE_BIG5_COMMON_FONT
//#define USE_GB2312_FONT
#endif
#elif defined( SUPPORT_CHINESE_FONT_COMPRESSED ) // 2004/09/19 yltseng
#ifdef BBK_DV911S
#define USE_GB2312_FONT_COMPRESSED
#else
//#define USE_BIG5_FONT_COMPRESSED
#define USE_BIG5_COMMON_FONT_COMPRESSED
//#define USE_GB2312_FONT_COMPRESSED
#endif
#endif
//#define SUPPORT_HZ // support HZ to GB or BIG5 translate
//#define SUPPORT_GB_TO_BIG5 // support GB to BIG5 translate
//#define SUPPORT_BIG5_TO_GB //support BIG5 to GB translate
#endif
#if defined( SUPPORT_CHINESE_FONT ) || defined( USE_RUSSIAN_LANGUAGE ) || defined( EUROPE_FOREIGN_LANGUAGES ) || defined( MIDDLE_EUROPE_LANGUAGES ) || defined( USE_JAPANESE_FONT ) || defined( USE_KOREAN_FONT )
#define LINK_FONT_LIB // 2004/09/11 yltseng
#endif
//#define OLD_VFD_DRV //old/new vfd driver ( different iop code )
//#define SLOT_IN_LOADER //robert 020919
//===========
//IR Formats
//===========
//IR0 //"ircode_v.h" //kenny 891109
//IR1 //"ircode_m.h" //kenny 891109
//IR2 //"ircode_315.h" //kenny 891109
//IR3 //"ircode_p.h" //kenny add it 891113
//IR4 //"ircode_g.h" //kenny add it 2001/1/15
//IR5 //"ircode_N700.h" //kenny 900511
//IR6 //"ircode_n9663.h" //chichang 900511
//IR7 //"ircode_M168.h" //chichang 900612
//IR8 //"ircode_yuxing.h"
//IR9 //"ircode_fuss.h" //nono 2-3-24 15:47
//IR13 //"ircode_huajia.h" //xiaosan 02-04-18
//IR14 //"ircode_wangine.h" //alan 02-05-07
//IR15 //"ircode_intech.h" //xiaosan 02-05-20
//IR16 //"ircode_jcg.c" //2-7-2 10:26
//IR17 //"ircode_nextbase.h" //2-7-2 10:26
//IR18 //"ircode_fuss_lide.h" //2-7-2 10:26
//IR19 //"ircode_fuss_shengke.h" //2-7-2 10:26
//IR20 //"ircode_fuss_sanying.h" //2-7-2 10:26
//IR21 //"ircode_gaodasi.h" //2-7-16 22:02
//IR22 //"ircode_gbm.h" //2-9-10 20:33
//IR23 //"ircode_hobo.h" //Jeff 20020916
//IR24 //"ircode_fuss_masco.h" //2-9-10 20:33
//IR25 //"ircode_sva.h" //2002-9-2 16:45
//IR26 //"ircode_huajia_ad1200.h //2002-9-16"
//IR27 //"ircode_huajia_ir240.h //2002-9-16"
//IR28 //"ircode_wangine_ir28.h //2002-9-16"
//IR29 //"ircode_fuss_feiyang.h //2002-9-24"
//IR30 //"ircode_fuss_masco2.c //2002-9-24"
//IR31 //"ircode_BMT.h" //2002-9-24"
//IR32 //"ircode_outmind.h" //2002-9-24"
//IR33 //"ircode_suojia.h" //2002-9-24"
//IR34 //"ircode_huajia_2290.h //2002-9-16"
//IR35 //"ircode_fuss_xinqiao.h //2-10-28 22:45
//IR36 //"ircode_lucky.h //2002/11/5 01:17¤U¤È
//IR37 //"ircode_ourmind_no_lcd.h //2-11-12 15:16
//IR38 //"ircode_fudi.h //2-11-12 15:16
//IR54 //"ircode_desay.h" //2003-8-3 16:51
//IR55 //"ircode_minton.h" //2003-8-3 21:21
//====================================================================
// System misc. function related
//====================================================================
#define DSPWATCHDOG (5*100/50) //RISC do DSP watchdog(x second)
#if defined(TONIC_DVD)||defined(INTRO_10S) //dingzhy for tonic 2/3/2004 10:41AM
#define INTRO_LEN 10*75 + 5
#elif defined(MINTON_DVD)||defined(INTRO_7S) //heqiang, cut down CD preview time to 7 seconds. 2004-3-5 11:03
#define INTRO_LEN 7*75 + 5
#else
#define INTRO_LEN 15*75 + 5//dingzhy "+5" for some cd only play 14s 4-11-11 15:22
#endif//end of TONIC_DVD
#ifdef DESAY_DVD //freyman 2003-8-6 11:05 added to cut the preview CD time to 8 sec
#ifdef INTRO_LEN
#undef INTRO_LEN
#define INTRO_LEN 8*75
#endif
#endif
//define password to show vcd F/W code version
#define PASSWORD
//define multiple screen saver selection
//#define MULTISCRNSAVER
//====================================================================
// audio related parameter area
//====================================================================
//Jeff modify, 20031222
//Define audio DAC format(DSP --> DAC)
//legacy define
#if defined(WM8746I2S24)
#define USE_DAC_I2S24
#elif defined(WM8746)
#define USE_DAC_RJ24 //recommend to use this
//#elif defined(PCM1606)
//#define USE_DAC_RJ16 //wuxiaofeng add for Eton
#endif
#ifdef USE_DAC_RJ24
#define DACFORMAT 0x5e //Right-justify format, High:L, Low:R
#elif defined(USE_DAC_I2S24)
#define DACFORMAT 0x4d //I2S format, Low: L, High:R // benson update 2004.08.18
#elif defined(USE_DAC_RJ16)
#define DACFORMAT 0x52 //Right-justify format, High:L, Low:R
#elif defined(USE_DAC_I2S16)
#define DACFORMAT 0x41 //I2S format, Low: L, High:R
#elif defined(USE_DAC_LJ24)
#define DACFORMAT 0x5c //LJ24 format, Low: L, High:R
#elif defined(USE_DAC_LJ16)
#define DACFORMAT 0x50 //LJ16 format, Low: L, High:R
#else
#define DACFORMAT 0x5e //Right-justify format, High:L, Low:R
#endif
//Define AUD_XCK is output or input pin
#define SUPPORT_AUD_XCK_OUT
//Define Extern MIC OK
//#define SUPPORT_EXT_MIC
#ifndef NO_MIC
#define VOCAL_CANCEL
#endif
#ifdef SUPPORT_EXT_AD_SHOW_MIC_AUTO_SING //ouyang add for extern AD achieve AUTO sing 2004-12-10 19:15
#define VOCAL_CANCEL
#endif
#ifdef VOCAL_CANCEL
#define MAX_CH_NUM 4
#define CH_AUTO_L 3
#define CH_AUTO_R 4
//#define SET_AUTO_SW_CH_TM 100 //1 sec //200 //2 sec
//#define SET_AUTO_MUTE_TM 300 //3 sec /*jhuang 2001/4/20 05:37PM*/
#else
#define MAX_CH_NUM 2
#endif
//====================================================================
// VFD related parameter area
//====================================================================
//#define TEST_VFD 1
//#define VFD2OSD_DBG_TXD
//Define VFD driver type
#define NEC16311 0x01 // Made by NEC
#define NEC16312 0x02 // Made by NEC
#define MN12510 0x03 // Made by Panasonic
#define BU2872AK 0x04 // Made by Rohm
#define HEF4021B 0x05 // Made by Philips
#define NJU3421A 0x06 // Made by JRC
#define VFD_NO_SCAN 0x20
#define HT1621 0x21 // Made by Holtek
#define SPL10 0x22 //SPL10 VFD
#define VFD_NONE_DRIVER 0xff
//Define VFD module type
#define ZEC_VFD28_0901 0x01 // Made by Zec
#define ZEC_VFD28_0903 0x02 // Made by ZEC
#define FUT_6_BT_265GK 0x03 // Made by Futaba
#define FUT_6_BT_269GK 0x04 // Made by Futaba
#define FUT_6_BT_253GK 0x05 // Made by Futaba
#define FUT_6_BT_267GK 0x06 // Made by Futaba
#ifdef YADAI_PT6554_PANNEL
#define pt6554 0x07
#else
#define ZEC_0601 0x07 // Made by Futaba
#endif
#define LCD_PANEL 0x08 // Made by Futaba
#define FUT_6_BT_269GK1 0x09
//#define HT1621_LCD 0x0a
//#define HT1621_LCDX 0x0d // תµúÒº¾§ÆÁ
#define HT1611_LCD 0x0e // chichang 2001 6/6 NINTAUS DVD-N701
#define HO16512_VFD 0x0c // zyf 2000/11/16
#define VFD_NONE 0xff // No Vfd Module
#ifdef N701_PANNEL
#define VFD_DRIVER NEC16312
#define VFD_MODULE HT1611_LCD
#elif defined(YUXING_PANNEL)
#define VFD_DRIVER NEC16312
#define VFD_MODULE Y_DVD_801D
#elif defined(SAMSUNG1_PANNEL) //add by shawn 910131
#define VFD_DRIVER NEC16312
//#define VFD_MODULE S_DVD1
#elif defined(HT1621_PANNEL)||defined(SKYWORTH_HT1621_PANNEL)
#define VFD_DRIVER HT1621
#elif defined(SPL10_PANNEL)
#define VFD_DRIVER SPL10
#elif defined(HC164_PANNEL)
#define VFD_DRIVER HC164
#elif defined(MCU810_PANNEL)
#define VFD_DRIVER MCU810
#elif defined(YADAI_PT6554_PANNEL)
#define VFD_DRIVER PT6554
#elif defined(AD7312_PANNEL)
#define VFD_DRIVER AD7312
#elif defined(GT1128_PANNEL)
#define VFD_DRIVER GT1128
#else
#define VFD_DRIVER NEC16312
#define VFD_MODULE FUT_6_BT_269GK1
#endif
//====================================================================
// IR related parameter area move to user_init.h 4-1-13 13:41
//====================================================================
//Define for optional IR function
//#define IR_GOTO_ON
//#define IR_PROG_ON
//#define IR_REPEAT_ALL_ON
//#define IR_SHUFFLE_ON
//#define LINEAR_PLAY_9FRAME
#ifdef IR_KEY_SET_VIDEO_MODE//nono 20031215
#define VIDEO_MODE_I2C_ADDRESS 127
#endif//IR_KEY_SET_VIDEO_MODE
//#define NEC16312SW //lijinhai for rotary switch key
//
// SDRAM related config
//
#ifdef SPHE8202
#define USE_108MHZ
#endif
#ifdef SDRAM_BUS_32BITS
//#define F94_5
#ifdef USE_108MHZ
#define F108 // 4.00x
//#define F114_75 // 4.25x
#else
#define F121_5 // 4.50x
#endif
// #define DIP_CFG_ENABLE
#else
//#define DIP_CFG_ENABLE
#ifdef DIP_CFG_ENABLE
#define F141_75
#else
//#define F108 // 4.00x (only for test, may not work)
//#define F114_75 // 4.25x
#define F121_5 // 4.50x
#endif
#endif
#define SDRAM_NO_REORDER
//#define MB22 // potatooo: don't use now
#define USE_LPCM_REPLACE_PCM //terry,2004/3/4 08:40PM
#ifdef SDRAM_16Mb_Mode
#define MEMCFG_COMPACT_MODE // potatooo
#define MEMCFG_MOVE_OSDSUP // potatooo
#define MEMCFG_PAL_LMEM // potatooo
#define DTH_CFG_ENABLE // potatooo
//#define NO_AUDIO_DSP
#define SDRAM_1PCS
#ifndef SUPPORT_SDRAM16M_DTS_5_1CH_OUTPUT //linrc 2004-11-24 17:55
#define NO_DTS_OUTPUT
#endif
#undef SUPPORT_SLOWBACKWARD
//#undef JPG_SUPPORT_PROGRESSIVE
#undef JPG_READ_SPEED_UP
/*#define ONLY_B_PIC*/
#else
/*#define DIP_CFG_ENABLE*/
/*#define JPEG_VFX_ENABLE*/
//#define SUPPORT_BOOK //this config should be moved to cfg_customer.h
#define SUPPORT_3DSOUND
//#define TWO_SUBTITLE
#define COMPRESS_CODE
#define PLAY_OKO_DISC
#endif
#if !defined(SDRAM_16Mb_Mode)&&!defined(NEW_STYLE_SETUP)//nono for GBM
#ifndef SUPPORT_JPEG_MIC
#define OSD_FONT_COMPRESS /* alan 020424 : flag to decide if you want to compress osd font */
#endif
#endif
#define SETUP_TAB // alan, 2003/3/4 04:56¤U¤È, for TAB setup menu
#define FREQ_MASK_DEFAULT 0xf
#define WATCHDOG_RENEW_TIME 0xbfff
//#define NEWSTYLE_WINDOW //XYY,20030701
//#define BAD_DISC_SEQ_PLAY //terry,2003/8/29 02:18AM,for all custumer
#define DVD_ALWAYS_AUTO_PLAY //terry 4-6-14 12:22
//#define CHANGE_DSP_SPDIF_OFF //nono 2003-10-21 21:07 spdif output, when change dsp code, run spdif off.
/*
* setup rating level
* wanghaoying 2003-11-22 17:27
* If you want change the default setting of rate for some customer,
* Please define RATE_DEFAULT in the customer's cfg_xxxx.h.
* Notice: Please note me if you want to modify something here
*/
#define RATE_LOW 2
#ifdef RATING_8
#define RATE_HIGH 9
#else
#define RATE_HIGH 4
#endif
#ifndef RATE_DEFAULT
#define RATE_DEFAULT RATE_HIGH
#endif
/*
* Audio
*/
#define USE_MIC_ECHO_PARAM //terry,2004/1/8 05:37PM
// 2004/07/16 yltseng
#ifdef SDRAM_16Mb_Mode
#ifndef USE_NAV_BUF_16M_DECREASE_SUBPICTURE
#define USE_NAV_BUF_16M
#endif
//#define USE_NAV_BUF_16M_DECREASE_SUBPICTURE
#ifdef SUPPORT_SDRAM16M_AC3_5_1CH_OUTPUT//nono move here.4-9-9 15:35
#define MOVE_PAL_AUDYA
#undef ONLY_DOWNMIX
#endif
#else
#define USE_NAV_BUF
#endif
//moved to here for both 8200 and 8202
#define SHOW_SYSTEM_CLOCK //20040708//JSLin
#if defined(SUPPORT_CHINESE_FONT) || defined(USE_RUSSIAN_LANGUAGE) || defined(EUROPE_FOREIGN_LANGUAGES) || defined(MIDDLE_EUROPE_LANGUAGES) || defined(USE_CYRILLIC_FONT) || defined(SUPPORT_TURKISH_LANGUAGES) || defined(USE_JAPANESE_FONT) || defined(USE_KOREAN_FONT)
#define SUPPORT_FONT_UTIL // 2005/01/20 yltseng
#endif
/*
* Terry,2004/2/17 04:21PM
* 8202 define
*/
#ifdef SPHE8202//terry,2004/1/28 02:18PM
#define USE_108MHZ
#ifdef SUPPORT_USB
#define HOST_UHCI //wthsin add 2003/12/25 10:03
//#define USB_HOST_DRV //USB Simply Host, 2005/1/17 08:05pm, wthsin
#endif//SUPPORT_USB
#ifdef SUPPORT_MP4
#define AVI_INTERNAL_SUP // To support internal subtitle of AVI (subpicture format)
#endif
#ifdef SDRAM_16Mb_Mode // 2004/09/06 yltseng
#undef AVI_INTERNAL_SUP
#ifndef SUPPORT_MP4
#undef SUPPORT_MP4_SUBTITLE
#endif
#endif
#ifdef SUPPORT_MP4_SUBTITLE
#define SUPPORT_OSDSRT //suqiaoli add 2004-3-17,show srt title on OSD
#define OSD_FONT_API
#define SUPPORT_FONT_UTIL // 2004/09/19 yltseng
#ifdef SUPPORT_FONT_UTIL
#if defined(SUPPORT_CHINESE_FONT_COMPRESSED) || defined(USE_RUSSIAN_LANGUAGE_COMPRESSED) || defined(EUROPE_FOREIGN_LANGUAGES_COMPRESSED) || defined(MIDDLE_EUROPE_LANGUAGES_COMPRESSED) || defined(SUPPORT_TURKISH_LANGUAGES_COMPRESSED) || defined(USE_JAPANESE_FONT_COMPRESSED) || defined(USE_KOREAN_FONT_COMPRESSED)
#define FONT_COMPRESSED
#endif
#endif
#endif
#if defined(CARD_SETUP_TYPE_1)||defined(CARD_SETUP_TYPE_2)||defined(CARD_SETUP_TYPE_3)
#ifdef HDMI_SMC_CLE//for HDDVD Non CF config.chenzhao on 2004-12-1 21:27
#undef COMPACT_FLASH //CF Card
#else
#define COMPACT_FLASH //CF Card
#endif//HDMI_SMC_CLE
#define SD_MMC_CARD //SD¡BMMC Card
#define MEMORY_STICK //MS¡BMS Pro Card
#define SMART_MEDIA //SMC¡BxD Card
//#define MOVE_NAND_DRIVER_TO_FS_KRNL //wthsin ,2004/9/15 10:56am
#elif defined(CARD_SETUP_TYPE_4) /*256Pin 32bit Non_share mode 3-in-1 card*/
#define SD_MMC_CARD //SD¡BMMC Card
#define MEMORY_STICK //MS¡BMS Pro Card
#elif defined(CARD_SETUP_TYPE_5) /*256Pin 16bit PMP project,Support HD and CF */
#define COMPACT_FLASH //CF Card interface
#endif
//move out for both 8200and 8202//20040708//JSLIN
//#define SHOW_SYSTEM_CLOCK//4-4-8 1:39
#define IC_8202_B//move from cfg_customers.h 4-6-18 23:41
#ifndef DTS_CD_OUT_RAW_A
#define DTS_CD_OUT_RAW_A
#endif
#if defined(NO_DTS_OUTPUT)&&!defined(FORCE_NO_DTS_OUTPUT)//nono 4-5-5 14:46
#undef DTS_CD_OUT_RAW_A
#endif//NO_DTS_OUTPUT
#undef PREAMP_GPIO_ENABLE//terry,2004/2/3 12:00PM
#ifndef USE_8_CH_DAC
#undef DACOUT0L
#undef DACOUT0R
#undef DACOUT1L
#undef DACOUT1R
#undef DACOUT2L
#undef DACOUT2R
#define DACOUT0L 0
#define DACOUT0R 1
#define DACOUT1L 2
#define DACOUT1R 3
#define DACOUT2L 4
#define DACOUT2R 5
#define LmRm_CFG 0
//#define DTS_94_24_CFG 0
#endif
#else
#define LmRm_CFG 1
#endif
#endif//#ifndef _CUST_DEF_H_