Skip to content

media: rockchip: Add the rkvdec driver

Boris Brezillon linux-devicetree linux-media linux-rockchip oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: vb2: Add a helper to get the vb2 buffer attached to a requestdrivers/media/common/videobuf2/videobuf2-core.c include/media/videobuf2-core.h+34 -00 replies
2/4media: dt-bindings: rockchip: Document RK3399 Video Decoder bindingsDocumentation/devicetree/bindings/media/rockchip,vdec.yaml+71 -03 replies
3/4media: rockchip: Add the rkvdec driverdrivers/staging/media/Kconfig drivers/staging/media/Makefile drivers/staging/media/rockchip/Kconfig +7 more+2524 -03 replies
4/4arm64: dts: rockchip: rk3399: Define the rockchip Video Decoder nodearch/arm64/boot/dts/rockchip/rk3399.dtsi+13 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RESEND PATCH v2 0/4] media: rockchip: Add the rkvdec driver

Hello,

Sorry for the noise, I forgot to Cc the DT maintainers/ML on my last attempt.

This is v2 of the rkvdec driver which was initially posted as part of my RFC adding codec helpers.
For this version, I decided to get rid of the helper stuff which is likely to take some more time to settle. The patchset now contains a proper DT binding doc.

Note that this implementation is likely to be adjusted based on the outcome of the 'scaling matrix order' [1] and 'dynamic resolution changes' [2] discussions, but I thought it'd be worth posting this version to start getting feeback.

Regards,

Boris

[1]https://patchwork.kernel.org/cover/11125207/
[2]https://lkml.org/lkml/2019/9/3/1033

Boris Brezillon (4):
media: vb2: Add a helper to get the vb2 buffer attached to a request
media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings
media: rockchip: Add the rkvdec driver
arm64: dts: rockchip: rk3399: Define the rockchip Video Decoder node

 .../bindings/media/rockchip,vdec.yaml         |   71 ++
 arch/arm64/boot/dts/rockchip/rk3399.dtsi      |   14 +-
 .../media/common/videobuf2/videobuf2-core.c   |   23 +
 drivers/staging/media/Kconfig                 |    2 +
 drivers/staging/media/Makefile                |    1 +
 drivers/staging/media/rockchip/Kconfig        |   16 +
 drivers/staging/media/rockchip/Makefile       |    2 +
 drivers/staging/media/rockchip/vdec/Kconfig   |   14 +
 drivers/staging/media/rockchip/vdec/Makefile  |    3 +
 .../staging/media/rockchip/vdec/rkvdec-h264.c |  960 +++++++++++++++
 .../staging/media/rockchip/vdec/rkvdec-regs.h |  306 +++++
 drivers/staging/media/rockchip/vdec/rkvdec.c  | 1089 +++++++++++++++++
 drivers/staging/media/rockchip/vdec/rkvdec.h  |  131 ++
 include/media/videobuf2-core.h                |   11 +
 14 files changed, 2642 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec.yaml
 create mode 100644 drivers/staging/media/rockchip/Kconfig
 create mode 100644 drivers/staging/media/rockchip/Makefile
 create mode 100644 drivers/staging/media/rockchip/vdec/Kconfig
 create mode 100644 drivers/staging/media/rockchip/vdec/Makefile
 create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec-h264.c
 create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec-regs.h
 create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec.c
 create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec.h
Signature · 1 line
2.21.0