Intel 82854 GMCH Satellite TV System User Manual


 
52 Intel® Digital Set Top Box Display Driver
User’s Guide for Microsoft* Windows* CE 5.0
7.1.1.21 ICEGD_ESCAPE_WAIT_HDMI_HOTPLUG
Description
This escape code is used to wait for an HDMI hotplug event.
Output Data Structure Definition
Block the user thread until the HDMI is plugged in, then return ESC_HDMI_PLUG_IN, or plugged out, then return
ESC_HDMI_PLUG_OUT.
Example
esc_enum_hotplug_status status ;
esc_mult_dvo_select_t dvoSelect;
// Wait for HDMI hotplug event
ExtEscape(
hDC,
ICEGD_ESCAPE_WAIT_HDMI_HOTPLUG,
0,
NULL,
sizeof(esc_enum_hotplug_status) ,
(LPSTR)&status
);
if(status == ESC_HDMI_PLUG_IN){
dvoSelect.select = ESC_MULT_DVO_SLAVE;
// Double pixel and interlaced flag only be needed for select HDMI (slave)
under SD mode.
dvoSelect.flag = ESC_DISPLAY_PIXEL_DOUBLE|ESC_DISPLAY_INTERLACED;
}
else if(status == ESC_HDMI_PLUG_OUT) {
dvoSelect.select = ESC_MULT_DVO_MASTER;
}
else {
_tprintf(_T(" Invalid Hotplug Status.\n"));
exit(0);
}
// Select the right DVO port
ExtEscape(
hDC,
ICEGD_ESCAPE_MULT_DVO_SELECT,
sizeof(esc_mult_dvo_select_t),
(LPCSTR)&dvoSelect,
0,
NULL
);
Input Data Structure Output Data Structure Notes
N/A esc_enum_hotplug_status
ESC_HDMI_PLUG_IN :
ESC_HDMI_PLUG_OUT