diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2012-10-04 16:01:27 +0300 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2012-10-24 15:34:01 +0300 |
commit | b89d7caffeea06e568e9df7da6c6c39ec63b9a1d (patch) | |
tree | 5ee13a207f245945f9765f3169ccc198c6f136ae /gralloc_drm_intel.c | |
parent | 8075c812370fdc1aeb049322c6033d35eb4cd530 (diff) | |
download | drm_gralloc-b89d7caffeea06e568e9df7da6c6c39ec63b9a1d.tar.gz |
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: I147273bbe4d21ab9f390f38c9a5f945530c8fd2e
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.c | 6 |
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); } |