linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 50-udev-default.rules.in: set correct group for mediaX/cecX
@ 2017-05-09  7:40 Hans Verkuil
  2017-05-09 13:01 ` [systemd-devel] " Lennart Poettering
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2017-05-09  7:40 UTC (permalink / raw)
  To: systemd-devel; +Cc: Linux Media Mailing List

The /dev/mediaX and /dev/cecX devices belong to the video group.
Add two default rules for that.

The /dev/cecX devices were introduced in kernel 4.8 in staging and moved
out of staging in 4.10. These devices support the HDMI CEC bus.

The /dev/mediaX devices are much older, but because they are not used very
frequently nobody got around to adding this rule to systemd. They let the
user control complex media pipelines.

---
 rules/50-udev-default.rules.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/50-udev-default.rules.in b/rules/50-udev-default.rules.in
index 064f66a97..e55653302 100644
--- a/rules/50-udev-default.rules.in
+++ b/rules/50-udev-default.rules.in
@@ -34,6 +34,8 @@ SUBSYSTEM=="video4linux", GROUP="video"
 SUBSYSTEM=="graphics", GROUP="video"
 SUBSYSTEM=="drm", GROUP="video"
 SUBSYSTEM=="dvb", GROUP="video"
+SUBSYSTEM=="media", GROUP="video"
+SUBSYSTEM=="cec", GROUP="video"

 SUBSYSTEM=="sound", GROUP="audio", \
   OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [systemd-devel] [PATCH] 50-udev-default.rules.in: set correct group for mediaX/cecX
  2017-05-09  7:40 [PATCH] 50-udev-default.rules.in: set correct group for mediaX/cecX Hans Verkuil
@ 2017-05-09 13:01 ` Lennart Poettering
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Poettering @ 2017-05-09 13:01 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: systemd-devel, Linux Media Mailing List

On Tue, 09.05.17 09:40, Hans Verkuil (hverkuil@xs4all.nl) wrote:

> The /dev/mediaX and /dev/cecX devices belong to the video group.
> Add two default rules for that.
> 
> The /dev/cecX devices were introduced in kernel 4.8 in staging and moved
> out of staging in 4.10. These devices support the HDMI CEC bus.
> 
> The /dev/mediaX devices are much older, but because they are not used very
> frequently nobody got around to adding this rule to systemd. They let the
> user control complex media pipelines.

Next time, please submit patches as PRs on github. I created one for
your patch now:

https://github.com/systemd/systemd/pull/5921

patch looks good btw.

Lennart

-- 
Lennart Poettering, Red Hat

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-09 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09  7:40 [PATCH] 50-udev-default.rules.in: set correct group for mediaX/cecX Hans Verkuil
2017-05-09 13:01 ` [systemd-devel] " Lennart Poettering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).