mirror of
https://github.com/openwrt/openwrt.git
synced 2026-12-06 04:15:39 +04:00
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:
1 parent
b12b44bfdf
commit
c9ce96fffe
2 files changed
+9
-2
No files matched your search
@@ -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" ],
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user