msm: vidc: Add support for Mpeg-2 open-gop handling

ISDB-T client requires flags indicating the correctness
of output YUV data from MPEG-2 decoder. With this commit,
DATA_CORRUPT flag is sent from the driver if the output
YUV is either INCORRECT or APPROX_CORRECT.

Change-Id: I72e8ba81f45200715a195497d4eae140cbe86616
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit d68ca84da4a5c68eb2caf1f9e4dbb665bba5a05c)

Conflicts:

	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Signed-off-by: Manish Kumar <manishku@codeaurora.org>
This commit is contained in:
Rajeshwar Kurapaty 2012-11-19 19:15:50 +05:30 committed by Stephen Boyd
parent 2e298ef9e6
commit f9fd1434a4

View file

@ -1258,6 +1258,9 @@ static u32 ddl_decoder_output_done_callback(
output_vcd_frm->flags |=
VCD_FRAME_FLAG_DATACORRUPT;
}
if (decoder->codec.codec != VCD_CODEC_H264 ||
decoder->codec.codec != VCD_CODEC_MPEG2)
output_vcd_frm->flags &= ~VCD_FRAME_FLAG_DATACORRUPT;
output_vcd_frm->ip_frm_tag = dec_disp_info->tag_top;
vidc_sm_get_picture_times(&ddl->shared_mem
[ddl->command_channel],