]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mtk-vcodec: fix default OUTPUT buffer size
authorTiffany Lin <tiffany.lin@mediatek.com>
Wed, 13 Jul 2016 08:05:23 +0000 (05:05 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 15 Jul 2016 16:19:35 +0000 (13:19 -0300)
commit7754d5caf7c834b9077809187718e6bf1ef84216
treeeeed998ce9a9e23ce732d7dbbdf2a35b6c6fbe58
parent3f52cb5535ea3f4d577b7f706305d2e9feb2172d
[media] mtk-vcodec: fix default OUTPUT buffer size

When calculate OUTPUT buffer size in vidioc_try_fmt, it will
add more size hw need in each plane.
But in mtk_vcodec_enc_set_default_params, it do not add
same size in each plane.
This makes v4l2-compliance test fail.
This patch fix the issue.

Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c