[media] s5p-mfc: Use decode status instead of display status on MFCv5
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 22 Sep 2014 12:52:02 +0000 (09:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 26 Sep 2014 09:47:47 +0000 (06:47 -0300)
commit7c672812fe230f54e86da0e56cd2917e897fe760
treebdc823436aa2251d5bc81bf97ce1ba76bbba76f7
parent7e8fe13dc31d413c77ef1aaf7f7a2a60eab413da
[media] s5p-mfc: Use decode status instead of display status on MFCv5

Commit 90c0ae50097 changed how the frame_type of a decoded frame
gets determined, by switching from the get_dec_frame_type to
get_disp_frame_type operation. Unfortunately it seems that on MFC v5 the
result of get_disp_frame_type is always 0 (no display) when decoding
(tested with H264), resulting in no frame ever being output from the
decoder.

This patch reverts MFC v5 to the previous behaviour while keeping the
new behaviour for v6 and up.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c