[media] v4l2-ctrls: add control events
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 7 Jun 2011 14:13:44 +0000 (11:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:20 +0000 (17:53 -0300)
commit6e239399e5807132f86f64af6c659411c6a3d1a5
treeeeb564a25341111f1c7d6e92137e910c4e4d37f3
parentab892bac8438c5c2ff09a60d765d9b0c14941ba9
[media] v4l2-ctrls: add control events

Whenever a control changes value or state an event is sent to anyone
that subscribed to it.

This functionality is useful for control panels but also for applications
that need to wait for (usually status) controls to change value.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c
drivers/media/video/v4l2-event.c
drivers/media/video/v4l2-fh.c
include/linux/videodev2.h
include/media/v4l2-ctrls.h
include/media/v4l2-event.h