linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAPDSS: HDMI5: Fix AVI infoframe
@ 2016-04-21 13:48 J.D. Schroeder
  2016-04-21 14:43 ` Tomi Valkeinen
  2016-04-21 17:49 ` [PATCH v2] " J.D. Schroeder
  0 siblings, 2 replies; 5+ messages in thread
From: J.D. Schroeder @ 2016-04-21 13:48 UTC (permalink / raw)
  To: linux-kernel, linux-omap, linux-fbdev, tomi.valkeinen,
	misael.lopez
  Cc: Lodes, Jim, J.D. Schroeder

From: "Lodes, Jim" <jim.lodes@garmin.com>

The AVI infoframe R0-R3 in the 2nd data byte represents the
Active Format Aspect Ratio. It is four bits long not two bits.
This fixes that mask used to extract the bits before writing the
bits to the hardware registers.

Signed-off-by: Lodes, Jim <jim.lodes@garmin.com>
Signed-off-by: J.D. Schroeder <jay.schroeder@garmin.com>
---
 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c          | 2 +-
 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
index d993f78..8ab2093 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
@@ -458,7 +458,7 @@ static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
 
 	c = (ptr[1] >> 6) & 0x3;
 	m = (ptr[1] >> 4) & 0x3;
-	r = (ptr[1] >> 0) & 0x3;
+	r = (ptr[1] >> 0) & 0xf;
 
 	itc = (ptr[2] >> 7) & 0x1;
 	ec = (ptr[2] >> 4) & 0x7;
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
index f3e4b81..bbfe7e2 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
@@ -442,7 +442,7 @@ static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
 
 	c = (ptr[1] >> 6) & 0x3;
 	m = (ptr[1] >> 4) & 0x3;
-	r = (ptr[1] >> 0) & 0x3;
+	r = (ptr[1] >> 0) & 0xf;
 
 	itc = (ptr[2] >> 7) & 0x1;
 	ec = (ptr[2] >> 4) & 0x7;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] OMAPDSS: HDMI5: Fix AVI infoframe
  2016-04-21 13:48 [PATCH] OMAPDSS: HDMI5: Fix AVI infoframe J.D. Schroeder
@ 2016-04-21 14:43 ` Tomi Valkeinen
  2016-04-21 15:35   ` J.D. Schroeder
  2016-04-21 17:49 ` [PATCH v2] " J.D. Schroeder
  1 sibling, 1 reply; 5+ messages in thread
From: Tomi Valkeinen @ 2016-04-21 14:43 UTC (permalink / raw)
  To: J.D. Schroeder, linux-kernel, linux-omap, linux-fbdev,
	misael.lopez
  Cc: Lodes, Jim, J.D. Schroeder


[-- Attachment #1.1: Type: text/plain, Size: 1785 bytes --]

Hi,

On 21/04/16 16:48, J.D. Schroeder wrote:
> From: "Lodes, Jim" <jim.lodes@garmin.com>
> 
> The AVI infoframe R0-R3 in the 2nd data byte represents the
> Active Format Aspect Ratio. It is four bits long not two bits.
> This fixes that mask used to extract the bits before writing the
> bits to the hardware registers.
> 
> Signed-off-by: Lodes, Jim <jim.lodes@garmin.com>
> Signed-off-by: J.D. Schroeder <jay.schroeder@garmin.com>

Thanks, looks good. Can you fix the email here too, and resend?

 Tomi

>  drivers/gpu/drm/omapdrm/dss/hdmi5_core.c          | 2 +-
>  drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
> index d993f78..8ab2093 100644
> --- a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
> +++ b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
> @@ -458,7 +458,7 @@ static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
>  
>  	c = (ptr[1] >> 6) & 0x3;
>  	m = (ptr[1] >> 4) & 0x3;
> -	r = (ptr[1] >> 0) & 0x3;
> +	r = (ptr[1] >> 0) & 0xf;
>  
>  	itc = (ptr[2] >> 7) & 0x1;
>  	ec = (ptr[2] >> 4) & 0x7;
> diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
> index f3e4b81..bbfe7e2 100644
> --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
> +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
> @@ -442,7 +442,7 @@ static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
>  
>  	c = (ptr[1] >> 6) & 0x3;
>  	m = (ptr[1] >> 4) & 0x3;
> -	r = (ptr[1] >> 0) & 0x3;
> +	r = (ptr[1] >> 0) & 0xf;
>  
>  	itc = (ptr[2] >> 7) & 0x1;
>  	ec = (ptr[2] >> 4) & 0x7;
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] OMAPDSS: HDMI5: Fix AVI infoframe
  2016-04-21 14:43 ` Tomi Valkeinen
@ 2016-04-21 15:35   ` J.D. Schroeder
  0 siblings, 0 replies; 5+ messages in thread
From: J.D. Schroeder @ 2016-04-21 15:35 UTC (permalink / raw)
  To: Tomi Valkeinen, linux-kernel, linux-omap, linux-fbdev,
	misael.lopez
  Cc: Lodes, Jim, J.D. Schroeder

On 04/21/2016 09:43 AM, Tomi Valkeinen wrote:
>> Signed-off-by: Lodes, Jim <jim.lodes@garmin.com>
> 
> Thanks, looks good. Can you fix the email here too, and resend?

Yes, I'll fix the sign off and make sure we have it correct going forward.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] OMAPDSS: HDMI5: Fix AVI infoframe
  2016-04-21 13:48 [PATCH] OMAPDSS: HDMI5: Fix AVI infoframe J.D. Schroeder
  2016-04-21 14:43 ` Tomi Valkeinen
@ 2016-04-21 17:49 ` J.D. Schroeder
  2016-04-27  5:55   ` Tomi Valkeinen
  1 sibling, 1 reply; 5+ messages in thread
From: J.D. Schroeder @ 2016-04-21 17:49 UTC (permalink / raw)
  To: linux-kernel, linux-omap, linux-fbdev, tomi.valkeinen,
	misael.lopez
  Cc: Jim Lodes, J.D. Schroeder

From: Jim Lodes <jim.lodes@garmin.com>

The AVI infoframe R0-R3 in the 2nd data byte represents the
Active Format Aspect Ratio. It is four bits long not two bits.
This fixes that mask used to extract the bits before writing the
bits to the hardware registers.

Signed-off-by: Jim Lodes <jim.lodes@garmin.com>
Signed-off-by: J.D. Schroeder <jay.schroeder@garmin.com>
---
 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c          | 2 +-
 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
index d993f78..8ab2093 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
@@ -458,7 +458,7 @@ static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
 
 	c = (ptr[1] >> 6) & 0x3;
 	m = (ptr[1] >> 4) & 0x3;
-	r = (ptr[1] >> 0) & 0x3;
+	r = (ptr[1] >> 0) & 0xf;
 
 	itc = (ptr[2] >> 7) & 0x1;
 	ec = (ptr[2] >> 4) & 0x7;
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
index f3e4b81..bbfe7e2 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
@@ -442,7 +442,7 @@ static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
 
 	c = (ptr[1] >> 6) & 0x3;
 	m = (ptr[1] >> 4) & 0x3;
-	r = (ptr[1] >> 0) & 0x3;
+	r = (ptr[1] >> 0) & 0xf;
 
 	itc = (ptr[2] >> 7) & 0x1;
 	ec = (ptr[2] >> 4) & 0x7;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] OMAPDSS: HDMI5: Fix AVI infoframe
  2016-04-21 17:49 ` [PATCH v2] " J.D. Schroeder
@ 2016-04-27  5:55   ` Tomi Valkeinen
  0 siblings, 0 replies; 5+ messages in thread
From: Tomi Valkeinen @ 2016-04-27  5:55 UTC (permalink / raw)
  To: J.D. Schroeder
  Cc: linux-kernel, linux-omap, linux-fbdev, misael.lopez, Jim Lodes,
	J.D. Schroeder


[-- Attachment #1.1: Type: text/plain, Size: 661 bytes --]

On 21/04/16 20:49, J.D. Schroeder wrote:
> From: Jim Lodes <jim.lodes@garmin.com>
> 
> The AVI infoframe R0-R3 in the 2nd data byte represents the
> Active Format Aspect Ratio. It is four bits long not two bits.
> This fixes that mask used to extract the bits before writing the
> bits to the hardware registers.
> 
> Signed-off-by: Jim Lodes <jim.lodes@garmin.com>
> Signed-off-by: J.D. Schroeder <jay.schroeder@garmin.com>
> ---
>  drivers/gpu/drm/omapdrm/dss/hdmi5_core.c          | 2 +-
>  drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Thanks! Queuing this for 4.7.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-27  5:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 13:48 [PATCH] OMAPDSS: HDMI5: Fix AVI infoframe J.D. Schroeder
2016-04-21 14:43 ` Tomi Valkeinen
2016-04-21 15:35   ` J.D. Schroeder
2016-04-21 17:49 ` [PATCH v2] " J.D. Schroeder
2016-04-27  5:55   ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).