TEMP: s5p-mfc: Set display delay to 0x8
authorNaveen krishna Chatradhi <ch.naveen@samsung.com>
Wed, 6 Jun 2012 05:03:35 +0000 (22:03 -0700)
committerPrathyush K <prathyush.k@samsung.com>
Wed, 20 Jun 2012 16:37:44 +0000 (22:07 +0530)
HACK: Application should be able to set the DISPLAY_DELAY using the
s_ctrl IOCTL. But, the s_ctrl path is not working in the driver
right now. This needs to be fixed.

BUG=None
TEST=H264 videos runs fine with UTC Secomx

Change-Id: Ife47b5ade29105981bf2b20af92419e3e54528ae
Signed-off-by: Naveen krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/19656
Reviewed-by: Sunil M <sunilm.samsung@gmail.com>
Reviewed-by: Pawel Osciak <posciak@google.com>
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
drivers/media/video/s5p-mfc/s5p_mfc_opr_v6.c

index dd73068..a0413c5 100755 (executable)
@@ -1162,7 +1162,7 @@ int s5p_mfc_init_decode(struct s5p_mfc_ctx *ctx)
         * set to negative value. */
        if (ctx->display_delay >= 0) {
                reg |= (0x1 << S5P_FIMV_D_OPT_DDELAY_EN_SHIFT);
-               WRITEL(ctx->display_delay, S5P_FIMV_D_DISPLAY_DELAY);
+               WRITEL((ctx->display_delay | 0x8), S5P_FIMV_D_DISPLAY_DELAY);
        }
        /* Setup loop filter, for decoding this is only valid for MPEG4 */
        if (ctx->codec_mode == S5P_FIMV_CODEC_MPEG4_DEC) {