]> git.baikalelectronics.ru Git - kernel.git/commit
media: mediatek: vcodec: record capture queue format type
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 12 May 2022 02:19:45 +0000 (04:19 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 12:47:10 +0000 (14:47 +0200)
commit32a3a9a7466146d84e90f24e5b56d8810d1e564f
tree1ce0578572c96726e8177ae1def1042df6c502a2
parent3c708eb7bb76017bd39e4ebfb7003c571d5aa953
media: mediatek: vcodec: record capture queue format type

The capture queue format type may be differ depending on platform: for
stateless decoder drivers, we need to calculate the capture buffer size
according to the capture queue format type in SCP.

As a preparation for introducing drivers for stateless decoding, save the
current capture queue type on a per vcodec context basis.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.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_drv.h