media: rockchip/vpu: Add decoder boilerplate
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 28 May 2019 17:02:27 +0000 (13:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 15:07:24 +0000 (11:07 -0400)
commit8c3dc73d41f5ca9a22d58a060a27c4c2bc598179
treeec34254f3357871990fb84a9240950a1feb54d7f
parent953aaa1492c538c98d3e018b68f9cbc143174e10
media: rockchip/vpu: Add decoder boilerplate

This commit adds the needed boilerplate code to support the VPU
in decoding operation. Two v4l2 interfaces are exposed, one for
encoding and one for decoding, but a single m2m device is shared
by them, so jobs are properly serialized.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/rockchip/vpu/Kconfig
drivers/staging/media/rockchip/vpu/rockchip_vpu.h
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c
drivers/staging/media/rockchip/vpu/rockchip_vpu_v4l2.c