|
|
@@ -527,7 +527,8 @@ static void s5p_mfc_handle_seq_done(struct s5p_mfc_ctx *ctx,
|
|
|
dev);
|
|
|
ctx->mv_count = s5p_mfc_hw_call(dev->mfc_ops, get_mv_count,
|
|
|
dev);
|
|
|
- ctx->scratch_buf_size = s5p_mfc_hw_call(dev->mfc_ops,
|
|
|
+ if (FW_HAS_E_MIN_SCRATCH_BUF(dev))
|
|
|
+ ctx->scratch_buf_size = s5p_mfc_hw_call(dev->mfc_ops,
|
|
|
get_min_scratch_buf_size, dev);
|
|
|
if (ctx->img_width == 0 || ctx->img_height == 0)
|
|
|
ctx->state = MFCINST_ERROR;
|