bcm27xx: add codec-bcm2835 kernel module
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 27 Jan 2024 23:04:42 +0000 (00:04 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 5 Feb 2024 17:25:16 +0000 (18:25 +0100)
kmod-codec-bcm2835 enables HW accelerated video decoding/encoding on the
Raspberry Pi.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bcm27xx/modules/video.mk

index c7314201d74887440f748f0f8c86e40dc39f12ec..5846616f83e1c87e6d167297cd45f45eda44fdf9 100644 (file)
@@ -20,6 +20,24 @@ endef
 $(eval $(call KernelPackage,camera-bcm2835))
 
 
+define KernelPackage/codec-bcm2835
+  TITLE:=BCM2835 Video Codec
+  KCONFIG:= \
+    CONFIG_VIDEO_CODEC_BCM2835
+  FILES:= \
+    $(LINUX_DIR)/drivers/staging/vc04_services/bcm2835-codec/bcm2835-codec.ko
+  AUTOLOAD:=$(call AutoLoad,67,bcm2835-codec)
+  $(call AddDepends/video,@TARGET_bcm27xx +kmod-vchiq-mmal-bcm2835 +kmod-video-dma +kmod-video-mem2mem)
+endef
+
+define KernelPackage/codec-bcm2835/description
+  V4L2 video codecs for Broadcom BCM2835 SoC.
+  This operates over the VCHIQ interface to a service running on VideoCore.
+endef
+
+$(eval $(call KernelPackage,codec-bcm2835))
+
+
 define KernelPackage/drm-vc4
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Broadcom VC4 Graphics