|
@@ -2646,6 +2646,11 @@ static int dp_display_config_hdr(struct dp_display *dp_display, void *panel,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!dp_display_state_is(DP_STATE_ENABLED)) {
|
|
|
|
+ dp_display_state_show("[not enabled]");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* In rare cases where HDR metadata is updated independently
|
|
* In rare cases where HDR metadata is updated independently
|
|
* flush the HDR metadata immediately instead of relying on
|
|
* flush the HDR metadata immediately instead of relying on
|
|
@@ -2667,12 +2672,20 @@ static int dp_display_setup_colospace(struct dp_display *dp_display,
|
|
u32 colorspace)
|
|
u32 colorspace)
|
|
{
|
|
{
|
|
struct dp_panel *dp_panel;
|
|
struct dp_panel *dp_panel;
|
|
|
|
+ struct dp_display_private *dp;
|
|
|
|
|
|
if (!dp_display || !panel) {
|
|
if (!dp_display || !panel) {
|
|
pr_err("invalid input\n");
|
|
pr_err("invalid input\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dp = container_of(dp_display, struct dp_display_private, dp_display);
|
|
|
|
+
|
|
|
|
+ if (!dp_display_state_is(DP_STATE_ENABLED)) {
|
|
|
|
+ dp_display_state_show("[not enabled]");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
dp_panel = panel;
|
|
dp_panel = panel;
|
|
|
|
|
|
return dp_panel->set_colorspace(dp_panel, colorspace);
|
|
return dp_panel->set_colorspace(dp_panel, colorspace);
|
|
@@ -3005,6 +3018,11 @@ static int dp_display_update_pps(struct dp_display *dp_display,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!dp_display_state_is(DP_STATE_ENABLED)) {
|
|
|
|
+ dp_display_state_show("[not enabled]");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
dp_panel = sde_conn->drv_panel;
|
|
dp_panel = sde_conn->drv_panel;
|
|
dp_panel->update_pps(dp_panel, pps_cmd);
|
|
dp_panel->update_pps(dp_panel, pps_cmd);
|
|
return 0;
|
|
return 0;
|