From: Austin Hu <[email protected]> With HDMI enabled, the GLES/OVG BAT cases (ovg_unit_test, gles1test1, gles2test1, FBTest) failed to display after blitting, due to the FB size exceeds the native MIPI panel size.
The patch added the MIPI'sixed mode as the preferred mode of HDMI to its mode list when detecting the native MIPI panel. Change-Id: I333ba80f3dec346f3d29435f919484d40c2040d9 Signed-off-by: Austin Hu <[email protected]> --- drivers/staging/mrst/drv/psb_intel_hdmi.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/staging/mrst/drv/psb_intel_hdmi.c b/drivers/staging/mrst/drv/psb_intel_hdmi.c index b4fb811..d005733 100644 --- a/drivers/staging/mrst/drv/psb_intel_hdmi.c +++ b/drivers/staging/mrst/drv/psb_intel_hdmi.c @@ -34,6 +34,7 @@ #include "psb_intel_hdmi_reg.h" #include "psb_intel_hdmi_edid.h" #include "psb_intel_hdmi.h" +#include "mdfld_dsi_output.h" #ifdef MDFLD_HDCP #include "mdfld_hdmi_audio_if.h" #endif /* MDFLD_HDCP */ @@ -758,8 +759,9 @@ static int mdfld_hdmi_get_modes(struct drm_connector *connector) int ret = 0; #if 1 /* FIXME_JLIU7 HDMI*/ struct drm_device *dev = connector->dev; - struct psb_intel_mode_device *mode_dev = psb_intel_output->mode_dev; - struct drm_display_mode *panel_fixed_mode = mode_dev->panel_fixed_mode; + struct drm_psb_private *dev_priv = dev->dev_private; + struct mdfld_dsi_config *dsi_config = dev_priv->dsi_configs[0]; + struct drm_display_mode *panel_fixed_mode = NULL; #endif #if 1 /* FIXME_JLIU7 HDMI*/ @@ -785,6 +787,8 @@ static int mdfld_hdmi_get_modes(struct drm_connector *connector) #endif PSB_DEBUG_ENTRY("\n"); + if (dsi_config != NULL) + panel_fixed_mode = dsi_config->fixed_mode; #if 0 if (!psb_intel_output->hdmi_i2c_adapter) { DRM_INFO("Enter mdfld_hdmi_get_modes, i2c_adapter is NULL. \n"); -- 1.7.1 _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
