int exynos5_blank(struct hwc_composer_device_1 *dev, int disp, int blank)
{
ATRACE_CALL();
- int fence = 0;
struct exynos5_hwc_composer_device_1_t *pdev =
(struct exynos5_hwc_composer_device_1_t *)dev;
#ifdef SKIP_DISPLAY_BLANK_CTRL
return -1;
}
-int exynos_setCursorPositionAsync(struct hwc_composer_device_1 *dev, int disp, int x_pos, int y_pos)
+int exynos_setCursorPositionAsync(struct hwc_composer_device_1 *dev __unused, int disp __unused, int x_pos __unused, int y_pos __unused)
{
return 0;
}
int exynos_setPowerMode(struct hwc_composer_device_1* dev, int disp, int mode)
{
ATRACE_CALL();
- int fence = 0;
struct exynos5_hwc_composer_device_1_t *pdev =
(struct exynos5_hwc_composer_device_1_t *)dev;
#ifdef SKIP_DISPLAY_BLANK_CTRL
{
int ret = 0;
int refreshRate;
- int sw_fd;
if (strcmp(name, HWC_HARDWARE_COMPOSER)) {
return -EINVAL;
}
static struct hw_module_methods_t exynos5_hwc_module_methods = {
- open: exynos5_open,
+ .open = exynos5_open,
};
hwc_module_t HAL_MODULE_INFO_SYM = {
- common: {
- tag: HARDWARE_MODULE_TAG,
- module_api_version: HWC_MODULE_API_VERSION_0_1,
- hal_api_version: HARDWARE_HAL_API_VERSION,
- id: HWC_HARDWARE_MODULE_ID,
- name: "Samsung exynos5 hwcomposer module",
- author: "Samsung LSI",
- methods: &exynos5_hwc_module_methods,
- dso: 0,
- reserved: {0},
+ .common = {
+ .tag = HARDWARE_MODULE_TAG,
+ .module_api_version = HWC_MODULE_API_VERSION_0_1,
+ .hal_api_version = HARDWARE_HAL_API_VERSION,
+ .id = HWC_HARDWARE_MODULE_ID,
+ .name = "Samsung exynos5 hwcomposer module",
+ .author = "Samsung LSI",
+ .methods = &exynos5_hwc_module_methods,
+ .dso = 0,
+ .reserved = {0},
}
};
supportedInternalMPP->mState = MPP_STATE_ASSIGNED;
mLayerInfos[fbIndex]->mInternalMPP = supportedInternalMPP;
mLayerInfos[fbIndex]->mDmaType = getDeconDMAType(mLayerInfos[fbIndex]->mInternalMPP);
+#if defined(MAX_DECON_DMA_TYPE)
if (mLayerInfos[fbIndex]->mDmaType >= MAX_DECON_DMA_TYPE) {
+#else
+ if (mLayerInfos[fbIndex]->mDmaType >= IDMA_MAX) {
+#endif
ALOGE("getDeconDMAType with InternalMPP for FramebufferTarget failed (MPP type: %d, MPP index: %d)",
mLayerInfos[fbIndex]->mInternalMPP->mType, mLayerInfos[fbIndex]->mInternalMPP->mIndex);
mLayerInfos[fbIndex]->mDmaType = 0;
int ExynosDisplay::setPowerMode(int mode)
{
+#if defined(S3CFB_POWER_MODE)
return ioctl(this->mDisplayFd, S3CFB_POWER_MODE, &mode);
+#else
+ return ioctl(this->mDisplayFd, FBIOBLANK, (mode == HWC_POWER_MODE_OFF ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK));
+#endif
}