?? winav.h
字號(hào):
//#define AUDIO_DAC DAC_PCM1723_WM8746 // Brian1.11, BE+P5 system board
#define AUDIO_ALIGN_FORMAT I2S_ALIGN //Kevin1.07-3, must check which format (RIGHT_ALIGN/I2S_ALIGN/LEFT_ALIGN) the ADAC supports
#define ACLK_SOURCE MPEGCHIP
//#define ACLK_SOURCE AUDIODAC
//Kevin0.91, uncomment to disable panel key scan while EEPROM R/W via I2C (I2C sck/sda are shared among panel, panel key scan, and EEPROM)
#define CPU_I2C
//Kevin0.91, I2C R/W EEPROM via P3 or P4
//#define I2C_USING_P4 //otherwise P3
#endif // DVD908_EVAL_P5
//LJY2.37
#if (DECODER_SYSTEM == DVD908_P5_RF3750)
#define TV_ENCODER_INTERNAL // use CT908 internal TV encoder
#define TV_ENCODER TV_W9954
#define SUPPORT_PCM_WORD_LENGTH 16
#define AUDIO_DAC DAC_CS4338_ONLY //CS4338 supports up to 16 bits only
//#define AUDIO_DAC DAC_PCM1723_WM8746 // Brian1.11, BE+P5 system board
#define AUDIO_ALIGN_FORMAT I2S_ALIGN //Kevin1.07-3, must check which format (RIGHT_ALIGN/I2S_ALIGN/LEFT_ALIGN) the ADAC supports
#define ACLK_SOURCE MPEGCHIP
//#define ACLK_SOURCE AUDIODAC
//Kevin0.91, uncomment to disable panel key scan while EEPROM R/W via I2C (I2C sck/sda are shared among panel, panel key scan, and EEPROM)
#define CPU_I2C
//Kevin0.91, I2C R/W EEPROM via P3 or P4
//#define I2C_USING_P4 //otherwise P3
#endif // DVD908_EVAL_P5
// Micky0.83b, add EPP board, the I/O is through EPP.
#if (DECODER_SYSTEM == DVD908_EPP)
#define TV_ENCODER_INTERNAL // use CT908 internal TV encoder
#define TV_ENCODER TV_W9954
#define SUPPORT_PCM_WORD_LENGTH 24
#define AUDIO_DAC DAC_PCM1723_WM8746
//#define AUDIO_DAC DAC_CS4338_ONLY //CS4338 supports up to 16 bits only
//#define AUDIO_DAC DAC_WM8746
#define AUDIO_ALIGN_FORMAT I2S_ALIGN //Kevin1.07-3, must check which format (RIGHT_ALIGN/I2S_ALIGN/LEFT_ALIGN) the ADAC supports
#define ACLK_SOURCE MPEGCHIP
//#define ACLK_SOURCE AUDIODAC
//Kevin1.00, I2C R/W EEPROM via P3 or P4
#define I2C_USING_P4 //otherwise P3
// Chuan1.10, Dump Debug information on EPP Platform
#define DUMP_INFORMATION
#endif // DVD908_EPP
// LLY2.80, add for CT908 emulator board
#if (DECODER_SYSTEM == DVD908_PCI)
#define TV_ENCODER_INTERNAL // use CT908 internal TV encoder
#define TV_ENCODER TV_W9954
#define SUPPORT_PCM_WORD_LENGTH 24
//#define AUDIO_DAC DAC_PCM1723_ONLY
#define AUDIO_DAC DAC_PCM1723_WM8746
#define AUDIO_ALIGN_FORMAT RIGHT_ALIGN //Kevin1.07-3, must check which format (RIGHT_ALIGN/I2S_ALIGN/LEFT_ALIGN) the ADAC supports
#define ACLK_SOURCE MPEGCHIP
//#define ACLK_SOURCE AUDIODAC
//#define ACLK_THROUGH_GP3
#endif // DVD908_PCI
// define it, will enable the testing for 24C02(I2C write, Tw) delay
// should add KEY_I2CTEST to ir.h
///#define I2C_TEST
// Define it, means system use W99132 IR function. (Don't work in ICE now)
// please make sure that system really use W99132 IC.
// else F/W will use F/W method.
// Micky0.85, can't disable H/W IR(CT908 doesn't support S/W IR)
// #define W99132_IR
// Define it, means system use extra KARAOKE chip (HC 2500)
// else F/W will use MPEG IC capability.
// #define KARAOKE
// define it, means Using MPEG Decoder is MASTER Mode
// else Slave mode (Default)
// Please be care this definition, must set right setting of board
#define MASTER_MPEG
// define it, means Video O/P will be ITU-R 656
// else YCbCr mode (Default)
// Please be care this definition, must set right setting of TV encoder
// #define VIDEO_OUTPUT_ITU656
// ******************************
// Audio Output Configuration
// ******************************
// DVD_275b+, SUPPORT_VIRTUAL_DTS
// define it, when DTS stream is selected audio audio output is not SPDIF/RAW mode
// will auto choose a non-DTS stream.
///#define SUPPORT_VIRTUAL_DTS
// define it, means Using Audio DAC can NOT support 96K Hz
// and will do down-sample,
// SETUP default value should be 48K and item will be removed
// not defined, can support 96K Hz.
// Please be care this definition, must set right setting of board (Audio DAC Chip)
///#define NOT_SUPPORT_LPCM_96K
// define it, only support 2 channel output
// setup only need provide SPDIF/2 channel setting
// else will support 2 channel/5.1 channel
#define SUPPORT_2_CHANNEL_ONLY
// Chuan2.80, Default multiple of sample rate is 384FS
//Kevin0.83, use USING_256_MODE_ACLK_FREQ & ACLK_FSMF simultaneously, 'cause some use the former, and others use the latter.
//#define USING_256_MODE_ACLK_FREQ
#define ACLK_FSMF ACLK_384FS
// define it, means Using I2C to control IC
// else reduce the source code
///#define SUPPORT_I2C
#if TV_ENCODER == TV_W9954
#ifdef TV_ENCODER_INTERNAL
#define TV_ENCODER_ID 0x42
// Brian.172q support YUV only when internal W9954
#define SUPPORT_COMPONENT_VIDEO_OUT
// LLY2.80, if define it, the TV encoder reset action only can be done by MPEG chip
#define SUPPORT_TVENCODER_RESET_BY_MPEG
#else // #ifdef TV_ENCODER_INTERNAL
#define TV_ENCODER_ID 0x40
#endif // #ifdef TV_ENCODER_INTERNAL
#define SUPPORT_I2C
#endif // TV_ENCODER
#if TV_ENCODER == TV_SAA7120
#define TV_ENCODER_ID 0x88
#define SUPPORT_I2C
#endif // TV_ENCODER
// Beginning... Added by KCHung for ADV7170
#if TV_ENCODER == TV_ADV7170
#define TV_ENCODER_ID 0xD4
#define SUPPORT_I2C
#define SUPPORT_COMPONENT_VIDEO_OUT // LLY.042
#endif // TV_ENCODER
// End... Added by KCHung for ADV7170
// ** 0.40; begin...
#if TV_ENCODER == TV_CS4954
#define TV_ENCODER_ID 0x00
#define SUPPORT_I2C
#define SUPPORT_COMPONENT_VIDEO_OUT // LLY.042
#endif // TV_ENCODER == TV_CS4954
// ** 0.40; end...
// ** TCH0.45; begin...
#if TV_ENCODER == TV_AV3168
#define TV_ENCODER_ID 0xCA // LLY.050, AV3169= 0xC8; AV3168= 0xCA.
#define SUPPORT_I2C
#define SUPPORT_COMPONENT_VIDEO_OUT
#endif // TV_ENCODER == TV_AV3168
// ** TCH0.45; end...
// LLY.278, Enable support "Equalizer" feature while Apogee digital AMP
#ifdef SUPPORT_AV_SYSTEM
#if AMP_VOLUME_SOURCE == DIGITAL_DDX8000
#define SUPPORT_EQUALIZER
//Kevin2.81 review AVSys, add user defined EQ
//#define SUPPORT_USER_DEFINED_EQ
// wyc.278, select AUDIO_CHANNEL_END number.
#define AUDIO_CHANNEL_END AUDIO_CHANNEL_TREBLE
// LLY2.78b, define ACLK frequency mode
// Notice: Apogee AMP must use 256 mdoe
#define USING_256_MODE_ACLK_FREQ
// Chuan2.80, Use 256 fs
#undef ACLK_FSMF
#define ACLK_FSMF ACLK_256FS
// LLY2.78b-2, support audio channel remapping mode
#define SUPPORT_CHANNEL_REMAPPING
#endif // #if AMP_VOLUME_SOURCE == DIGITAL_DDX8000
#if AMP_VOLUME_SOURCE == ANALOG_WM8746
#define AUDIO_CHANNEL_END AUDIO_CHANNEL_SW
#endif // #if AMP_VOLUME_SOURCE == ANALOG_WM8746
#endif // #ifdef SUPPORT_AV_SYSTEM
//LJY2.37, moved from cc.h for different audio DAC
// LLY.160a-1, re-adjust the max volume level from 12 --> 16
// Chuan0.81, The SAVCR of CT908 is 20 bits
// ** TCH1.00-1-908; S200-Jerry request
#if( AUDIO_DAC == DAC_PCM1723_WM8746)
#define VOLUME_MAX 0x7FFF0 // 31984
#define VOLUME_GAP 0x7FFF // 1999
#define VOLUME_MIN 0x0
#define VOLUME_DEFAULT VOLUME_MAX
#else
#define VOLUME_MAX 0x67FF0
#define VOLUME_MAX_CDDA 0x49ff0 //jyliu.yhi
#define VOLUME_GAP 0x67FF
#define VOLUME_MIN 0x0
#define VOLUME_DEFAULT VOLUME_MAX
#endif
// *******************************************
// Others -- Only can modify by programmer
// *******************************************
// Micky1.00, add a define for CDROM data do C3
// define it, JPEG/MP3 will through DSP path & do C3
/// TCH1.00-1-CT908
// Micky1.10-2, enable C3, cause MP3 play end enter MP2 checking routine??
// Micky1.11, enable C3 for JPEG ??
/*
#define SUPPORT_C3_FOR_CDROM_DATA
*/
// Micky1.21, use seprate define for C3 control
#define SUPPORT_JPEG_C3
#define SUPPORT_MP3_C3 // include MP2/ MP3
#define C3_RETRY_MAX_TIMES_FOR_JPEG 2
#define C3_RETRY_MAX_TIMES_FOR_MP3 2
// define it, will support real Letter Box Subpicture
// else, it choose WIDE mode
// Micky0.86, only navigate.c will reference it.
// Ct908AB can't enable it.
// Micky0.95, 908AC can support it.
// Micky1.00, enable it always for CT908AC.
#define SUPPORT_LETTERBOX_SUBPICTURE
// LLY.278, don't support DRAM copy command for 22 serial chip
//#define NO_RISC_DRAMCOPY
// LLY2.79-2, if define it, DSP will auto detect sector format
// Otherwise, F/W must specify it to DSP
// Notice: (1) Need 20030129 DSP code (IEC_PRAM.INC/ IEC_ERAM.INC)
// & 20030128 Parser code (DVDPRAM.INC/ ALLPRAM.INC/ MP3PRAM.INC)
// (2) New code must enable this define, ie it can't use old method
#define AUTO_DETECTION_SECTOR_FORMAT_BY_DSP
////////////////////////////////////////////////
// ****** User Operation Zone ******
////////////////////////////////////////////////
// ******************************
// OSD part
// ******************************
// define it, F/W will not support multi-OSD feature
// ie, it will only support English OSD font -- 16*32/ non-split top/bottom data
//#define NO_MULTIPLE_OSD
// LLY.170, if define it, F/W only support one display mode (display mode 1)
// So, developer must put our control code into _OSD_ShowDisplay1()
// Otherwise, it will support two display mode
//#define ONE_DISPLAY_MODE
// LLY2.78b-3, if define it, it will display "program play" info
// while start the program mode playing
// Otherwise, it only display "PLAY"
//#define SUPPORT_PROGRAM_PLAY_INFO
// Micky1.10, define it, KEY_REPEAT will toggle between repeat track/ disc when playing program.
/// #define SUPPORT_ONLY_2_REPEAT_MODE_IN_PROGRAM
// wyc1.10, add follow define in WINAV.H
// If define it, then CDROM titles will support number confirm keys
// Otherwise, after input number key in CDROM titles then it will directly go that file.
//#define SUPPORT_CDROM_NUMBER_CONFIRM_KEY
// If define it, then cursor will loop in current directory when moving select highlight up and down.
// Otherwise, move select highlight to up of current directory will go previous directory's last file.
//#define SUPPORT_FM_CURSOR_RING_SAME_DIRECTORY
// If define it, then F/W will support buttons in FM
// Otherwise, F/W will disable buttons.
//#define SUPPORT_FM_BUTTONS
// If define it, F/W will support a pop-up simple version program mode for CDROM titles, just like DVD / VCD.
// Otherwise, F/W will support FM UI like program mode.
//#define SUPPORT_SIMPLE_FM_PROGRAM
// If define it, system can input IR keys continuously.
// Otherwise, need to input key one by one.
//#define IR_CODE_CONTINUE
// If define it, NEXT and PREV won't H/W reset video and video won't black.
// Otherwise, KEY_NEXT / KEY_PREV will H/W reset RISC and video will black a while.
// wyc1.22, enable this define.
#define SUPPORT_NEXT_PREV_SOFT_RESET_VIDEO
// Brian1.07
// If define it, the value text of Setup OSD item will its own language
// otherwise all the value text use the same language as the current OSD language
// #define OSD_ITEM_TEXT_SAME_AS_LANGUAGE
// Brian1.07
// If define it, Setup help message will change according to the current OSD language.
// otherwise, all the help message is English
// #define SUPPORT_SETUP_MULTI_LANGUAGE_HELP_MSG
// Brian1.07
// If define it, a progressing bar or color bar is displayed while power on (before "Loading" message)
// #define SHOW_POWERON_BAR
#ifdef SHOW_POWERON_BAR
// If define it, the power on bar is a color bar
// otherwise, it's a progressing bar
// #define COLOR_BAR
// define the trigger (update) period of the bar. This must be defined when SHOW_PWRON_BAR is defined
#define POWERON_BAR_TRIGGER_TIME COUNT_300_MSEC
#endif //#ifdef SHOW_POWERON_BAR
//Brian1.07a
// define this will show PSCAN prompt dialog in Setup
//#define SUPPORT_PSCAN_PROMPT_SETUP
// define this will show PSCAN prompt dialog when KEY_PSCAN or KEY_VIDEO_OUTPUT_CTL
//#define SUPPORT_PSCAN_PROMPT_OSD
// default action after PSCAN prompt time out.
// KEY_STOP: cancel; KEY_PLAY: continue
#define PSCAN_PROMPT_DEFAULT_KEY KEY_STOP // default is cancel the action
// Micky1.10, add 6 Display Mode
// enable it, press KEY_DISPLAY will toggle 6 display mode(include remain/ relative time)
// #define SHOW_6_DISPLAY_MODE
// Micky1.10, define it, means has the key KEY_REMAIN
// #define SUPPORT_KEY_REMAIN
//#define SUPPORT_ADJUST_CHROM_PHASE // Brian1.25, support chroma adjust ability
#define SUPPORT_STRING_GENERATOR // Brian1.25, define this will use string files generated by String Generate Tool
//LJY1.11, support anti-shock
// define it, will support ant-shock
/// #define SUPPORT_ANTISHOCK
// Micky1.20, 4M flash
///#define SUPPORT_4M_FLASH
// Micky2.27, use new SDRAM configuration, give up original USE_32M_SDRAM.
// let it have same behavior no matter what DRAM configuration.
//Move to programmer's Zone
/*
#ifdef USE_32M_SDRAM
// if define this, all the Setup dialog will recover the area by redrawing,
// otherwise it use Bitmap Copy to recover the area.
#define SETUP_DIALOG_RECOVER_BY_REDRAW
// if define this, will use only one OSD region for display
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -