]> git.karo-electronics.de Git - linux-beck.git/commit
[media] media: Fix DVB devnode representation at media controller
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 2 Jan 2015 15:18:23 +0000 (12:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 13 Feb 2015 23:10:10 +0000 (21:10 -0200)
commite31a0ba7df6ce21ac4ed58c4182ec12ca8fd78fb
tree9e9afc96b5c9343d0c615dcd39cfd7d7d22e000a
parentbc0c5aa35ac88342831933ca7758ead62d9bae2b
[media] media: Fix DVB devnode representation at media controller

The previous provision for DVB media controller support were to
define an ID (likely meaning the adapter number) for the DVB
devnodes.

This is just plain wrong. Just like V4L, DVB devices (and any other
device node)) are uniquely identified via a (major, minor) tuple.

This is enough to uniquely identify a devnode, no matter what
API it implements.

So, before we go too far, let's mark the old v4l, fb, dvb and alsa
"devnode" info as deprecated, and just call it as "dev".

We can latter add fields specific to each API if needed.

As we don't want to break compilation on already existing apps,
let's just keep the old definitions as-is, adding a note that
those are deprecated at media-entity.h.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-device.c
include/media/media-entity.h
include/uapi/linux/media.h