int viafb_ioctl_hotplug(int hres, int vres, int bpp) { int DVIsense, status = 0; DEBUG_MSG(KERN_INFO "viafb_ioctl_hotplug!!\n"); if (viaparinfo->chip_info->tmds_chip_info.tmds_chip_name != NON_TMDS_TRANSMITTER) { DVIsense = viafb_dvi_sense(); if (DVIsense) { DEBUG_MSG(KERN_INFO "DVI Attached...\n"); if (viafb_DeviceStatus != DVI_Device) { viafb_DVI_ON = 1; viafb_CRT_ON = 0; viafb_LCD_ON = 0; viafb_DeviceStatus = DVI_Device; viafb_set_iga_path(); return viafb_DeviceStatus; } status = 1; } else DEBUG_MSG(KERN_INFO "DVI De-attached...\n"); } if ((viafb_DeviceStatus != CRT_Device) && (status == 0)) { viafb_CRT_ON = 1; viafb_DVI_ON = 0; viafb_LCD_ON = 0; viafb_DeviceStatus = CRT_Device; viafb_set_iga_path(); return viafb_DeviceStatus; } return 0; }
/* Hot-Plug Priority: DVI > CRT*/ int viafb_ioctl_hotplug(int hres, int vres, int bpp) { int DVIsense, status = 0; DEBUG_MSG(KERN_INFO "viafb_ioctl_hotplug!!\n"); if (viaparinfo->chip_info->tmds_chip_info.tmds_chip_name != NON_TMDS_TRANSMITTER) { DVIsense = viafb_dvi_sense(); if (DVIsense) { DEBUG_MSG(KERN_INFO "DVI Attached...\n"); if (viafb_DeviceStatus != DVI_Device) { viafb_DVI_ON = 1; viafb_CRT_ON = 0; viafb_LCD_ON = 0; viafb_DeviceStatus = DVI_Device; <<<<<<< HEAD viafb_set_iga_path(); ======= >>>>>>> 296c66da8a02d52243f45b80521febece5ed498a return viafb_DeviceStatus;