]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: rockchip/vpu: Move encoder logic to a common place
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 28 May 2019 17:02:24 +0000 (13:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 14:58:59 +0000 (10:58 -0400)
commitc65227fd2aac55f40f3b400e4a225e5846e3b47a
treeb0595a6b91ee3cfbbfcd3bc36e494e473174a1a7
parent8c06082041e4254a017df58a177a14ac855ee98e
media: rockchip/vpu: Move encoder logic to a common place

The V4L2/VB2 implementation for the encoder and decoder logic are very
similar, so let's rename rockchip_vpu_enc.c file into
rockchip_vpu_v4l2.c and remove the _enc_ part in objects/functions
exposed in rockchip_vpu_v4l2.h. We also rename the enc_queue_init()
function (in rockchip_vpu_drv.c) queue_init() since it will be used
to initialize both type of queues.

The implementation itself will be patched to support the decoding case
when decoder support is added.

Suggested-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/Makefile
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c
drivers/staging/media/rockchip/vpu/rockchip_vpu_enc.c [deleted file]
drivers/staging/media/rockchip/vpu/rockchip_vpu_v4l2.c [new file with mode: 0644]
drivers/staging/media/rockchip/vpu/rockchip_vpu_v4l2.h