The HDMI code takes an entirely separate code path for mode setting.
Mode the framebuffer depth check earlier, so that the HDMI case is
checked as well.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
REG_WRITE(dspcntr_reg, dspcntr);
}
-static int check_fb(struct drm_framebuffer *fb)
+static int check_fb(const struct drm_framebuffer *fb)
{
if (!fb)
return 0;
PSB_DEBUG_ENTRY("pipe = 0x%x\n", pipe);
+ ret = check_fb(crtc->fb);
+ if (ret)
+ return ret;
+
if (pipe == 1) {
if (!ospm_power_using_hw_begin(OSPM_DISPLAY_ISLAND, true))
return 0;
return 0;
}
- ret = check_fb(crtc->fb);
- if (ret)
- return ret;
-
PSB_DEBUG_ENTRY("adjusted_hdisplay = %d\n",
adjusted_mode->hdisplay);
PSB_DEBUG_ENTRY("adjusted_vdisplay = %d\n",