media: rockchip/vpu: Prepare things to support decoders
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 28 May 2019 17:02:26 +0000 (13:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 15:03:08 +0000 (11:03 -0400)
commit953aaa1492c538c98d3e018b68f9cbc143174e10
tree173469e43f7ccadcb9c74fd83f04a03d55c20d79
parent4aa807ef41d8dd7a54bf5bcb0216e6672e0b6b53
media: rockchip/vpu: Prepare things to support decoders

The code in rockchip_vpu_v4l2 was hardcoded for encoder support.
Modify it more generic to support the decoder case so that we can
re-use the same vb2/v4l2 ops for both devices.

Co-developed-by: Ezequiel Garcia <ezequiel@collabora.com>
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/rockchip_vpu.h
drivers/staging/media/rockchip/vpu/rockchip_vpu_v4l2.c