]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
drm: xilinx: dp_sub: Fix color coefficient for yuv to 8bit
authorHyun Kwon <hyun.kwon@xilinx.com>
Thu, 13 Oct 2016 00:32:44 +0000 (17:32 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 13 Oct 2016 12:27:40 +0000 (14:27 +0200)
UV components are 8 bit, so use coefficients for 8 bit components.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xilinx/xilinx_drm_dp_sub.c

index b9f5b587ab468780afe43326f14aa0194b1ecef4..1ffd922632e474ada7e6f0e20674468f942f5127 100644 (file)
@@ -572,8 +572,8 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
                .swap           = false,
                .chroma_sub     = true,
                .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
-               .sf[1]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
-               .sf[2]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
                .name           = "nv16",
        }, {
                .drm_fmt        = DRM_FORMAT_NV61,
@@ -582,8 +582,8 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
                .swap           = false,
                .chroma_sub     = true,
                .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
-               .sf[1]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
-               .sf[2]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
                .name           = "nv61",
        }, {
                .drm_fmt        = DRM_FORMAT_BGR888,
@@ -632,8 +632,8 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
                .swap           = false,
                .chroma_sub     = true,
                .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
-               .sf[1]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
-               .sf[2]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
                .name           = "nv12",
        }, {
                .drm_fmt        = DRM_FORMAT_NV21,
@@ -642,8 +642,8 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
                .swap           = false,
                .chroma_sub     = true,
                .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
-               .sf[1]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
-               .sf[2]          = XILINX_DP_SUB_AV_BUF_4BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
                .name           = "nv21",
        }
 };