Skip to content

V4L: add "function" sysfs attribute to v4l devices

Kees Cook linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2V4L: add "function" sysfs attribute to v4l deviceslinux/drivers/media/video/v4l2-common.c linux/drivers/media/video/videodev.c linux/include/linux/videodev2.h +2 more+72 -09 replies
2/2V4L: add "function" sysfs attribute to v4l deviceslinux/drivers/media/video/cpia.c linux/drivers/media/video/cx88/cx88-blackbird.c linux/drivers/media/video/cx88/cx88-video.c +2 more+40 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] V4L: add "function" sysfs attribute to v4l devices

Hello!

Two patches follow, related to discussions[1][2] on the hotplug mailing list, in an attempt to solve enumeration problems when multiple v4l devices are present in a system and the resulting init order was not guaranteed to be the same from boot-to-boot (video0 isn't always the same device). The goal is to create things like this with udev:

    pci-0000:01:06.0-video-mpeg-cap -> ../../video0
    pci-0000:01:07.0-video-yuv-cap -> ../../video1
    pci-0000:01:06.0-video-yuv-cap -> ../../video24

First patch is the sysfs infrastructure to support exporting a "function" string. This value is related to the existing "type" field, but is singular in use and not designed for internal driver use, as "type" seems to be.

Second patch is a first stab at providing "function" entries for hardware I have access to.

Thanks,

-Kees

[1] http://marc.info/?t=118591155400012&r=1&w=2
[2] some recent discussion on the new hotplug list, but I can't find an archive link since it moved to vger...

Signature · 6 lines
Kees Cook                                            @outflux.net

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list