android_kernel_xiaomi_sm8350/include/media
brandon@ifup.org 539a7555b3 V4L/DVB (8078): Introduce "index" attribute for persistent video4linux device nodes
A number of V4L drivers have a mod param to specify their preferred minors.
This is because it is often desirable for applications to have a static /dev
name for a particular device.  However, using minors has several disadvantages:

  1) the requested minor may already be taken
  2) using a mod param is driver specific
  3) it requires every driver to add a param
  4) requires configuration by hand

This patch introduces an "index" attribute that when combined with udev rules
can create static device paths like this:

/dev/v4l/by-path/pci-0000\:00\:1d.2-usb-0\:1\:1.0-video0
/dev/v4l/by-path/pci-0000\:00\:1d.2-usb-0\:1\:1.0-video1
/dev/v4l/by-path/pci-0000\:00\:1d.2-usb-0\:1\:1.0-video2

$ ls -la /dev/v4l/by-path/pci-0000\:00\:1d.2-usb-0\:1\:1.0-video0
lrwxrwxrwx 1 root root 12 2008-04-28 00:02 /dev/v4l/by-path/pci-0000:00:1d.2-usb-0:1:1.0-video0 -> ../../video1

These paths are steady across reboots and should be resistant to rearranging
across Kernel versions.

video_register_device_index is available to drivers to request a
specific index number.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Kees Cook <kees@outflux.net>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-07-20 07:10:27 -03:00
..
audiochip.h
cs53l32a.h
cs5345.h V4L/DVB (6869): cs5345: new i2c driver 2008-01-25 19:04:08 -02:00
cx2341x.h V4L/DVB (6861): cx2341x: command argument should be u32 instead of int 2008-01-25 19:04:04 -02:00
cx25840.h V4L/DVB (8007): cx18/cx25840: the S-Video LUMA input can use all In1-In8 inputs 2008-06-26 15:58:42 -03:00
i2c-addr.h
ir-common.h V4L/DVB (8048): saa7134: Fix entries for Avermedia A16d and Avermedia E506 2008-06-26 15:58:52 -03:00
ir-kbd-i2c.h
m52790.h V4L/DVB (6486): m52790: add new Mitsubishi A/V switch i2c driver 2008-01-25 19:01:46 -02:00
msp3400.h
ovcamchip.h
pwc-ioctl.h
rds.h include/media/: Spelling fixes 2008-02-03 17:19:47 +02:00
saa6752hs.h
saa7115.h
saa7127.h
saa7146_vv.h V4L/DVB (6496): saa7146_vv.h: remove wrong include <linux/videodev.h> 2008-01-25 19:01:52 -02:00
saa7146.h
soc_camera.h V4L/DVB (7501): soc-camera: use a spinlock for videobuffer queue 2008-04-24 14:07:57 -03:00
tuner-types.h V4L/DVB (7352): tuner-simple: enable digital tuning support for Philips FMD1216ME 2008-04-24 14:07:50 -03:00
tuner.h V4L/DVB (7381): tuner: rename TUNER_PHILIPS_ATSC to TUNER_PHILIPS_FCV1236D 2008-04-24 14:07:52 -03:00
tvaudio.h
tveeprom.h
tvp5150.h
upd64031a.h
upd64083.h
v4l2-chip-ident.h V4L/DVB (7786): cx18: new driver for the Conexant CX23418 MPEG encoder chip 2008-04-29 18:41:41 -03:00
v4l2-common.h i2c: Add support for device alias names 2008-04-29 23:11:39 +02:00
v4l2-dev.h V4L/DVB (8078): Introduce "index" attribute for persistent video4linux device nodes 2008-07-20 07:10:27 -03:00
v4l2-i2c-drv-legacy.h i2c: Convert some more new-style drivers to use module aliasing 2008-05-11 20:37:06 +02:00
v4l2-i2c-drv.h i2c: Convert some more new-style drivers to use module aliasing 2008-05-11 20:37:06 +02:00
v4l2-int-device.h V4L/DVB (6580): Set slave's master before master's attach call. 2008-01-25 19:02:06 -02:00
videobuf-core.h Fix a deadlock in the bttv driver 2008-05-20 10:12:26 -07:00
videobuf-dma-sg.h V4L/DVB (7554): videobuf-dma-sg: Remove unused flag 2008-04-24 14:08:48 -03:00
videobuf-dvb.h V4L/DVB (7538): Adds selectable adapter numbers as per module option 2008-04-24 14:08:00 -03:00
videobuf-vmalloc.h V4L/DVB (7566): videobuf-dvb: allow its usage with videobuf-vmalloc 2008-04-24 14:09:39 -03:00
wm8775.h