disp: msm: dp: populate supported colorspace property for DP
Populate the supported colorspaces property for DP as part of getting the display modes. This will expose the supported colorspaces of the sink to userspace and in-turn the userspace shall pick the colorspace suitable for the use-case. Change-Id: I70408c719610bc63f9c06dad8cd50f7fa5d94908 Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
This commit is contained in:
@@ -1676,6 +1676,14 @@ end:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void dp_display_clear_colorspaces(struct dp_display *dp_display)
|
||||
{
|
||||
struct drm_connector *connector;
|
||||
|
||||
connector = dp_display->base_connector;
|
||||
connector->color_enc_fmt = 0;
|
||||
}
|
||||
|
||||
static int dp_display_pre_disable(struct dp_display *dp_display, void *panel)
|
||||
{
|
||||
struct dp_display_private *dp;
|
||||
@@ -1732,6 +1740,8 @@ static int dp_display_pre_disable(struct dp_display *dp_display, void *panel)
|
||||
}
|
||||
}
|
||||
|
||||
dp_display_clear_colorspaces(dp_display);
|
||||
|
||||
clean:
|
||||
if (dp_panel->audio_supported)
|
||||
dp_panel->audio->off(dp_panel->audio);
|
||||
|
Reference in New Issue
Block a user