All of lore.kernel.org
 help / color / mirror / Atom feed
From: Archit Taneja <architt@codeaurora.org>
To: Jose Abreu <Jose.Abreu@synopsys.com>, dri-devel@lists.freedesktop.org
Cc: Russell King <rmk+kernel@arm.linux.org.uk>,
	Carlos Palminha <CARLOS.PALMINHA@synopsys.com>,
	linux-kernel@vger.kernel.org,
	Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH RESEND] drm: bridge/dw-hdmi: Fix colorspace and scan information registers values
Date: Wed, 31 Aug 2016 09:38:02 +0530	[thread overview]
Message-ID: <57C65822.2030301@codeaurora.org> (raw)
In-Reply-To: <96fd0f06b7ebc2ee5cb8239a99648f3107e24497.1471530573.git.joabreu@synopsys.com>

Hi,

On 08/29/2016 03:00 PM, Jose Abreu wrote:
> Colorspace and scan information values were being written in wrong
> offsets. This patch corrects this and writes the values at the
> offsets specified in the databook.

queued to drm-misc after cleaning up some checkpatch
errors.

Thanks,
Archit

>
> Signed-off-by: Jose Abreu <joabreu@synopsys.com>
> Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
> Cc: Carlos Palminha <palminha@synopsys.com>
> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: David Airlie <airlied@linux.ie>
> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Cc: dri-devel@lists.freedesktop.org
> Cc: linux-kernel@vger.kernel.org
> ---
>   drivers/gpu/drm/bridge/dw-hdmi.c | 7 ++++---
>   1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c
> index 77ab473..cdf39aa 100644
> --- a/drivers/gpu/drm/bridge/dw-hdmi.c
> +++ b/drivers/gpu/drm/bridge/dw-hdmi.c
> @@ -940,10 +940,11 @@ static void hdmi_config_AVI(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
>   	 */
>
>   	/*
> -	 * AVI data byte 1 differences: Colorspace in bits 4,5 rather than 5,6,
> -	 * active aspect present in bit 6 rather than 4.
> +	 * AVI data byte 1 differences: Colorspace in bits 0,1 rather than 5,6,
> +	 * scan info in bits 4,5 rather than 0,1 and active aspect present in
> +	 * bit 6 rather than 4.
>   	 */
> -	val = (frame.colorspace & 3) << 4 | (frame.scan_mode & 0x3);
> +	val = (frame.scan_mode & 3) << 4 | (frame.colorspace & 3);
>   	if (frame.active_aspect & 15)
>   		val |= HDMI_FC_AVICONF0_ACTIVE_FMT_INFO_PRESENT;
>   	if (frame.top_bar || frame.bottom_bar)
>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: Archit Taneja <architt@codeaurora.org>
To: Jose Abreu <Jose.Abreu@synopsys.com>, dri-devel@lists.freedesktop.org
Cc: Carlos Palminha <CARLOS.PALMINHA@synopsys.com>,
	David Airlie <airlied@linux.ie>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] drm: bridge/dw-hdmi: Fix colorspace and scan information registers values
Date: Wed, 31 Aug 2016 09:38:02 +0530	[thread overview]
Message-ID: <57C65822.2030301@codeaurora.org> (raw)
In-Reply-To: <96fd0f06b7ebc2ee5cb8239a99648f3107e24497.1471530573.git.joabreu@synopsys.com>

Hi,

On 08/29/2016 03:00 PM, Jose Abreu wrote:
> Colorspace and scan information values were being written in wrong
> offsets. This patch corrects this and writes the values at the
> offsets specified in the databook.

queued to drm-misc after cleaning up some checkpatch
errors.

Thanks,
Archit

>
> Signed-off-by: Jose Abreu <joabreu@synopsys.com>
> Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
> Cc: Carlos Palminha <palminha@synopsys.com>
> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: David Airlie <airlied@linux.ie>
> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Cc: dri-devel@lists.freedesktop.org
> Cc: linux-kernel@vger.kernel.org
> ---
>   drivers/gpu/drm/bridge/dw-hdmi.c | 7 ++++---
>   1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c
> index 77ab473..cdf39aa 100644
> --- a/drivers/gpu/drm/bridge/dw-hdmi.c
> +++ b/drivers/gpu/drm/bridge/dw-hdmi.c
> @@ -940,10 +940,11 @@ static void hdmi_config_AVI(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
>   	 */
>
>   	/*
> -	 * AVI data byte 1 differences: Colorspace in bits 4,5 rather than 5,6,
> -	 * active aspect present in bit 6 rather than 4.
> +	 * AVI data byte 1 differences: Colorspace in bits 0,1 rather than 5,6,
> +	 * scan info in bits 4,5 rather than 0,1 and active aspect present in
> +	 * bit 6 rather than 4.
>   	 */
> -	val = (frame.colorspace & 3) << 4 | (frame.scan_mode & 0x3);
> +	val = (frame.scan_mode & 3) << 4 | (frame.colorspace & 3);
>   	if (frame.active_aspect & 15)
>   		val |= HDMI_FC_AVICONF0_ACTIVE_FMT_INFO_PRESENT;
>   	if (frame.top_bar || frame.bottom_bar)
>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

  parent reply	other threads:[~2016-08-31  4:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18 14:34 [PATCH] drm: bridge/dw-hdmi: Fix colorspace and scan information registers values Jose Abreu
2016-08-18 14:46 ` Russell King - ARM Linux
2016-08-29  9:21 ` [PATCH RESEND] " Russell King - ARM Linux
2016-08-29  9:26   ` Jose Abreu
2016-08-29  9:26     ` Jose Abreu
2016-08-31  4:08 ` Archit Taneja [this message]
2016-08-31  4:08   ` Archit Taneja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57C65822.2030301@codeaurora.org \
    --to=architt@codeaurora.org \
    --cc=CARLOS.PALMINHA@synopsys.com \
    --cc=Jose.Abreu@synopsys.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+kernel@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.