Skip to content

Commit 7c67281

Browse files
sjoerdsimonsmchehab
authored andcommitted
[media] s5p-mfc: Use decode status instead of display status on MFCv5
Commit 90c0ae5 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>
1 parent 7e8fe13 commit 7c67281

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/media/platform/s5p-mfc/s5p_mfc.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,12 @@ static void s5p_mfc_handle_frame_new(struct s5p_mfc_ctx *ctx, unsigned int err)
264264
unsigned int frame_type;
265265

266266
dspl_y_addr = s5p_mfc_hw_call(dev->mfc_ops, get_dspl_y_adr, dev);
267-
frame_type = s5p_mfc_hw_call(dev->mfc_ops, get_disp_frame_type, ctx);
267+
if (IS_MFCV6_PLUS(dev))
268+
frame_type = s5p_mfc_hw_call(dev->mfc_ops,
269+
get_disp_frame_type, ctx);
270+
else
271+
frame_type = s5p_mfc_hw_call(dev->mfc_ops,
272+
get_dec_frame_type, dev);
268273

269274
/* If frame is same as previous then skip and do not dequeue */
270275
if (frame_type == S5P_FIMV_DECODE_FRAME_SKIPPED) {

0 commit comments

Comments
 (0)