ospm_power_using_hw_end(OSPM_GRAPHICS_ISLAND);
#endif
}
-#if 1
else if (ui32DeviceIndex == gui32MRSTMSVDXDeviceID)
{
if (ospm_power_is_hw_on(OSPM_DISPLAY_ISLAND)) {
ospm_power_island_down(OSPM_VIDEO_DEC_ISLAND);
ospm_power_island_down(OSPM_DISPLAY_ISLAND);
}
-#if 0
-#if defined(SUPPORT_DRI_DRM_EXT)
- ospm_power_using_hw_end(OSPM_VIDEO_DEC_ISLAND);
- ospm_power_using_hw_end(OSPM_DISPLAY_ISLAND);
-#endif
-#endif
}
else if (ui32DeviceIndex == gui32MRSTTOPAZDeviceID)
{
ospm_power_island_down(OSPM_DISPLAY_ISLAND);
}
}
-#if 0
-#if defined(SUPPORT_DRI_DRM_EXT)
- ospm_power_using_hw_end(OSPM_VIDEO_ENC_ISLAND);
- ospm_power_using_hw_end(OSPM_DISPLAY_ISLAND);
-#endif
-#endif
-#endif
}
return PVRSRV_OK;
#endif
}
-#if 1
else if (ui32DeviceIndex == gui32MRSTMSVDXDeviceID)
{
PVR_DPF((PVR_DBG_MESSAGE,"SysDevicePrePowerState: Restore MSVDX power"));
ospm_power_island_up(OSPM_VIDEO_DEC_ISLAND);
ospm_power_island_down(OSPM_DISPLAY_ISLAND);
}
-#if 0
-#if defined(SUPPORT_DRI_DRM_EXT)
- if (!ospm_power_using_hw_begin(OSPM_DISPLAY_ISLAND, true))
- {
- return PVRSRV_ERROR_GENERIC;
- }
-
- if (!ospm_power_using_hw_begin(OSPM_VIDEO_DEC_ISLAND, true))
- {
- ospm_power_using_hw_end(OSPM_DISPLAY_ISLAND);
-
- return PVRSRV_ERROR_GENERIC;
- }
-#endif
-#endif
}
else if (ui32DeviceIndex == gui32MRSTTOPAZDeviceID)
{
ospm_power_island_up(OSPM_VIDEO_ENC_ISLAND);
ospm_power_island_down(OSPM_DISPLAY_ISLAND);
}
-#if 0
-#if defined(SUPPORT_DRI_DRM_EXT)
- if (!ospm_power_using_hw_begin(OSPM_DISPLAY_ISLAND, true))
- {
- return PVRSRV_ERROR_GENERIC;
- }
-
- if (!ospm_power_using_hw_begin(OSPM_VIDEO_ENC_ISLAND, true))
- {
- ospm_power_using_hw_end(OSPM_DISPLAY_ISLAND);
-
- return PVRSRV_ERROR_GENERIC;
- }
-#endif
-#endif
}
-#endif
}
return PVRSRV_OK;