Skip to content

Commit

Permalink
media: rockchip/vpu: Prepare things to support decoders
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Boris Brezillon authored and Mauro Carvalho Chehab committed May 29, 2019
1 parent 4aa807e commit 953aaa1
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 202 deletions.
6 changes: 6 additions & 0 deletions drivers/staging/media/rockchip/vpu/rockchip_vpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,10 @@ static inline u32 vepu_read(struct rockchip_vpu_dev *vpu, u32 reg)
return val;
}

static inline bool
rockchip_vpu_is_encoder_ctx(const struct rockchip_vpu_ctx *ctx)
{
return true;
}

#endif /* ROCKCHIP_VPU_H_ */
Loading

0 comments on commit 953aaa1

Please sign in to comment.