From f1364da7a3f5a72ab44c23bdf1f71f5ba38a55e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com> Date: Sun, 28 Jan 2024 00:04:42 +0100 Subject: [PATCH] bcm27xx: add codec-bcm2835 kernel module MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/target/linux/bcm27xx/modules/video.mk b/target/linux/bcm27xx/modules/video.mk index c7314201d7..5846616f83 100644 --- a/target/linux/bcm27xx/modules/video.mk +++ b/target/linux/bcm27xx/modules/video.mk @@ -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 -- 2.30.2