]> git.baikalelectronics.ru Git - kernel.git/commit
media: mediatek: vcodec: Read max resolution from dec_capability
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 12 May 2022 02:19:37 +0000 (04:19 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 12:42:18 +0000 (14:42 +0200)
commitd9c705c02c7ed6aa0471be832ac0ec3219b93c6e
tree67aef571da8b46262f6569f5cb1b6289867ecbae
parent24a574cd0efb38b8aee486dc904e3387b9dcaf1a
media: mediatek: vcodec: Read max resolution from dec_capability

Supported max resolution for different platforms are not the same: 2K
or 4K, getting it according to dec_capability.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: Tzung-Bi Shih<tzungbi@google.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