OMAPDSS: HDMI5: Fix AVI infoframe
Subsystems (5)
PATCH 1/1 OMAPDSS: HDMI5: Fix AVI infoframe
From: "Lodes, Jim" <[email protected]>
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.
--- 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(-)
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c +1 -1
@@ -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 ;
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c +1 -1
@@ -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 ;
Signature · 1 line
1.9.1
Hi,
Quoted 9 lines · J.D. Schroeder
From: "Lodes, Jim" <[email protected]>
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 <[email protected]>Signed-off-by J.D. Schroeder <[email protected]>
Thanks, looks good. Can you fix the email here too, and resend?
Tomi
Quoted 31 lines
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(-)drivers/gpu/drm/omapdrm/dss/hdmi5_core.c +1
-1@@ -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 ;drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c +1
-1@@ -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 ;
Quoted 3 lines · Tomi Valkeinen
Quoted 1 line
Signed-off-by Lodes, Jim <[email protected]>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.
PATCH v2 1/1 OMAPDSS: HDMI5: Fix AVI infoframe
In reply to J.D. SchroederFrom: Jim Lodes <[email protected]>
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.
--- 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(-)
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c +1 -1
@@ -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 ;
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c +1 -1
@@ -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 ;
Signature · 1 line
1.9.1
Quoted 7 lines · J.D. Schroeder
From: Jim Lodes <[email protected]>
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.
Quoted 6 lines
Signed-off-by Jim Lodes <[email protected]>Signed-off-by J.D. Schroeder <[email protected]>--- 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