]> git.baikalelectronics.ru Git - kernel.git/commit
media: mediatek: vcodec: set each plane bytesused in buf prepare
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 12 May 2022 02:19:38 +0000 (04:19 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 12:42:43 +0000 (14:42 +0200)
commitebbc08c5697042af2bd0904e90944022b231aeb5
treef11252cde8fc4dfce2288e0a3627ee59a996e17e
parentd9c705c02c7ed6aa0471be832ac0ec3219b93c6e
media: mediatek: vcodec: set each plane bytesused in buf prepare

call vb2_set_plane_payload to set each plane bytesused in buf prepare,
need not to set independently for stateless and statefull architectures.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateful.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c