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>
* 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) {