video-support: put the DMA-BUF heaps in the video group

procd creates /dev/dma_heap/* owned by root with mode 0600, as no rule
matches the dma_heap subsystem. A media player allocates its frame
buffers from the system heap when decoding in software for a KMS plane,
and as an unprivileged user it cannot open the heap: Kodi then finds no
buffer object able to allocate by size and drops every VP9 frame.

Create the heap nodes in video, like the DRM card nodes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle committed 2026-11-05 22:59:22 +00:00
1 parent b12b44bfdf
commit c9ce96fffe
2 files changed
+9 -2

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=hardware-support
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-2.0-only
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
@@ -56,7 +56,7 @@ endef
define Package/video-support/description
Feature gate for display and video devices. Allocates the video and
video-capture groups and installs the hotplug rules which put the DRM
character devices into video.
character devices and the DMA-BUF heaps into video.
A uevent carries no device capabilities, so a V4L2 node is created
without a group and handed to v4l-id, which asks the driver and moves
@@ -17,6 +17,13 @@
[ "return" ]
]
],
[ "if",
[ "eq", "SUBSYSTEM", "dma_heap" ],
[
[ "makedev", "/dev/%DEVNAME%", "0660", "video" ],
[ "return" ]
]
],
[ "if",
[ "eq", "SUBSYSTEM", "video4linux" ],
[