From: Álvaro Fernández Rojas Date: Sat, 27 Jan 2024 23:04:42 +0000 (+0100) Subject: bcm27xx: add codec-bcm2835 kernel module X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1364da7a3f5a72ab44c23bdf1f71f5ba38a55e3;p=openwrt%2Fstaging%2Fnbd.git bcm27xx: add codec-bcm2835 kernel module kmod-codec-bcm2835 enables HW accelerated video decoding/encoding on the Raspberry Pi. Signed-off-by: Álvaro Fernández Rojas --- 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