⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ircmd_receiver.c

📁 Sunplus 8202S source code.
💻 C
字号:
#ifdef SUPPORT_RECEIVER  //huziqin 2004-2-26

//#define DEBUG_VOLUME

 extern int current_rcvr_mode;
 extern int next_rcvr_mode;
 extern BYTE  subvol_time_out;

 void ircmd_mode_stop ()
 {
	if (t_disp) {
          DispFadeOut();
          disp_mode=0;
    	}
    	if (current_rcvr_mode == RECEIVER_MODE_DVD)
    	{
    	// Simon 12-15-2003
    	// This is a fake eject	
 		ircmd_post_func(CMD_FUNC | CMD_FUNC_OPEN);
		play_state = VCD_STATE_STOP;
		playmode_sel(CLEAR_ALL);
		//open_tray();
		stop_loader();	
	}
	else
	{
		system_state = SYSTEM_OPEN;
	}
 }

 void ircmd_rcvr_select_mode(int mode)
 {
 	UINT8 door;
 	door = atapi_p_mechanism_status();
 	if ((current_rcvr_mode == RECEIVER_MODE_DVD)&&(door == ATAPI_DOOR_OPEN))
 	{
 		invalid_key();
 	}
 	else
 	{
 	next_rcvr_mode = mode;
 	switch_modes_now = 1;
 	ircmd_mode_stop();
 }
 }

 void ircmd_rcvr_next_mode(void)
 {
 	// Find next supported mode
 	int found = 0;
 	//printf("mode %d\n",next_rcvr_mode);
#ifdef NEWSTYLE_WINDOW
 	if(full_scrn==MESSAGE)//xyy 2004-3-4 10:43
 		exit_browse_func();
#endif
 	if(full_scrn==SOUND)
 		cancel_sound();

 	next_rcvr_mode = current_rcvr_mode + 1;

 	while (found == 0) {
	    	if (next_rcvr_mode == NUM_MODES_MAX) 
	    	{
	    		next_rcvr_mode = 0;
	    	}
	    	if (rcvr_support_bits & (1 << next_rcvr_mode))
	    	{
	    		found = 1;	
	    	}
	    	else
	    	{
	    		next_rcvr_mode++;
	    	}
	}
 	switch_modes_now = 1;
 	ircmd_mode_stop();
}

#ifdef SUPPORT_VIDEO_WITH_SPDIF
 void ircmd_rcvr_analog_digital(void)
 {
 	if ((current_rcvr_mode != RECEIVER_MODE_AV1) ||
 		(current_rcvr_mode != RECEIVER_MODE_AV2))
 	{
 		invalid_key();
 	}
 	else {
 	// Switch between analog and digital inputs
 	}
}
#endif


/*the amplifier function moved to amp_gui.c    xyy 2004-8-3*/

#ifdef DOLBY_AMP_VOLUME_CTRL
void  ircmd_set_treble()
{
#ifdef SUPPORT_APOGEE_AMP
//	 ddx_OSDTrebleAdjust();
#endif
}
void  ircmd_set_bass()
{
#ifdef SUPPORT_APOGEE_AMP
//    ddx_OSDBassAdjust();
#endif
}
#endif


#ifdef  NO_INTERNAL_VOLUME_CTRL
void  ircmd_volume_up(void)
{
/*Here deleted by xyy 2004-8-5*/

	subvol_vol_up();
	/*tell vfd to show volume*/
	subvol_time_out = 10;

}

void  ircmd_volume_down(void)
{
/*Here deleted by xyy 2004-8-5*/
	subvol_vol_down();

	/*tell vfd to show volume*/
	subvol_time_out = 10;
	
}

#endif  //NO_INTERNAL_VOLUME_CTRL

#endif //SUPPORT_RECEIVER

⌨️ 快捷键说明

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