OMAPDSS: HDMI5: Fix AVI infoframe
authorJim Lodes <[email protected]>
Thu, 21 Apr 2016 17:49:00 +0000 (12:49 -0500)
committerTomi Valkeinen <[email protected]>
Tue, 31 May 2016 05:20:42 +0000 (08:20 +0300)
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 <[email protected]>
Signed-off-by: J.D. Schroeder <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c

index 6a397520cae57f3f6fee331ba8a34e9988a2f196..f9a2d4377e45c03823145222e292fd8eb70e30f4 100644 (file)
@@ -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;
index 8ea531d2652c4cd96fcefab1f6fec938494ebc71..fc5eceeddf9cabcae560c2513265fa99d07271e7 100644 (file)
@@ -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;