diff mbox

[1/2] drm/i915/hdmi: fetch infoframe status in get_config v3

Message ID 1415737847-1925-1-git-send-email-jbarnes@virtuousgeek.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jesse Barnes Nov. 11, 2014, 8:30 p.m. UTC
This is useful for checking things later.

v2:
  - fix hsw infoframe enabled check (Ander)
v3:
  - set infoframe status in compute_config too (Ville)

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Daniel Vetter Nov. 12, 2014, 9:44 a.m. UTC | #1
On Tue, Nov 11, 2014 at 12:30:46PM -0800, Jesse Barnes wrote:
> This is useful for checking things later.
> 
> v2:
>   - fix hsw infoframe enabled check (Ander)
> v3:
>   - set infoframe status in compute_config too (Ville)
> 
> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

Squashed into the original patch, thanks.
-Daniel

> ---
>  drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 0c9fe4b..f58e883 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -982,6 +982,9 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder,
>  
>  	pipe_config->has_hdmi_sink = intel_hdmi->has_hdmi_sink;
>  
> +	if (pipe_config->has_hdmi_sink)
> +		pipe_config->has_infoframe = true;
> +
>  	if (intel_hdmi->color_range_auto) {
>  		/* See CEA-861-E - 5.1 Default Encoding Parameters */
>  		if (pipe_config->has_hdmi_sink &&
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index 0c9fe4b..f58e883 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -982,6 +982,9 @@  bool intel_hdmi_compute_config(struct intel_encoder *encoder,
 
 	pipe_config->has_hdmi_sink = intel_hdmi->has_hdmi_sink;
 
+	if (pipe_config->has_hdmi_sink)
+		pipe_config->has_infoframe = true;
+
 	if (intel_hdmi->color_range_auto) {
 		/* See CEA-861-E - 5.1 Default Encoding Parameters */
 		if (pipe_config->has_hdmi_sink &&