The hdmi should turn off after mixer turns off by H/W limitation.
Otherwise, the TV power domain is not disabled. Generally, first it's
called DPMS function of encoder than DPMS function of crtc at from DPMS
off to DPMS on. It can be solution about the H/W dependency to control
hdmi power by crtc DPMS instead of encoder DPMS.
Change-Id: I86e39c438453af5bcc19b7109d2e3569d629d52f
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
.create_connector = hdmi_create_connector,
.mode_fixup = hdmi_mode_fixup,
.mode_set = hdmi_mode_set,
- .dpms = hdmi_dpms,
.commit = hdmi_commit,
};
.ops = &hdmi_display_ops,
};
+void hdmi_dpms_from_mixer(int mode)
+{
+ hdmi_dpms(&hdmi_display, mode);
+}
+
static irqreturn_t hdmi_irq_thread(int irq, void *arg)
{
struct hdmi_context *hdata = arg;
DRM_DEBUG_KMS("unknown dpms mode: %d\n", mode);
break;
}
+
+ /*
+ * The hdmi should turn off after mixer turns off by H/W limitation.
+ * Otherwise, the TV power domain is not disabled.
+ */
+ hdmi_dpms_from_mixer(mode);
}
/* Only valid for Mixer version 16.0.33.0 */
/* This function returns 0 if the given timing is valid for the mixer */
int mixer_check_mode(struct drm_display_mode *mode);
+extern void hdmi_dpms_from_mixer(int mode);
#endif