summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_intel.c
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2012-10-04 16:01:27 +0300
committerTapani Pälli <tapani.palli@intel.com>2012-10-18 10:52:38 +0300
commit2d2758bca0f962ef21673dbe29df4c042d7f3254 (patch)
treed17d46beb9ccac2406215922182cf8919eeaaac0 /gralloc_drm_intel.c
parentc878105aa842f6a7fbec5414d50cbf93892b3a1b (diff)
downloadexternal_drm_gralloc-2d2758bca0f962ef21673dbe29df4c042d7f3254.zip
external_drm_gralloc-2d2758bca0f962ef21673dbe29df4c042d7f3254.tar.gz
external_drm_gralloc-2d2758bca0f962ef21673dbe29df4c042d7f3254.tar.bz2
gralloc: hdmi cloned mode support
Patch implements simple support for cloned mode hdmi by introducing primary and hdmi outputs that are updated respectively. Current implementation is rather naive and assumes hdmi can drive same mode as the local lvds. Only cloned mode is supported but can be extended later to support extended mode when hwcomposer is available for controlling this behaviour. HDMI hotplug is implemented as a separate observer thread that listens to uevents and reads hdmi connection state from there, this requires switch support from the kernel hdmi driver. Change-Id: I1d5873214d672563789f4953a892de60539eca88 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>
Diffstat (limited to 'gralloc_drm_intel.c')
-rw-r--r--gralloc_drm_intel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gralloc_drm_intel.c b/gralloc_drm_intel.c
index 519827f..6a0d7e0 100644
--- a/gralloc_drm_intel.c
+++ b/gralloc_drm_intel.c
@@ -497,12 +497,12 @@ static void intel_init_kms_features(struct gralloc_drm_drv_t *drv,
struct drm_i915_getparam gp;
int pageflipping, id;
- switch (drm->fb_format) {
+ switch (drm->primary.fb_format) {
case HAL_PIXEL_FORMAT_BGRA_8888:
case HAL_PIXEL_FORMAT_RGB_565:
break;
default:
- drm->fb_format = HAL_PIXEL_FORMAT_BGRA_8888;
+ drm->primary.fb_format = HAL_PIXEL_FORMAT_BGRA_8888;
break;
}
@@ -545,7 +545,7 @@ static void intel_init_kms_features(struct gralloc_drm_drv_t *drv,
int pipe;
pipe = drm_intel_get_pipe_from_crtc_id(info->bufmgr,
- drm->crtc_id);
+ drm->primary.crtc_id);
drm->swap_interval = (pipe >= 0) ? 1 : 0;
drm->vblank_secondary = (pipe > 0);
}