]> git.baikalelectronics.ru Git - kernel.git/commit
[media] adv7842: Deliver resolution change events to userspace
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 24 Jun 2015 16:50:31 +0000 (13:50 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 12:48:32 +0000 (09:48 -0300)
commitb9156b3596263b7cb6586d93f90fe9f907a47dc9
treefad974031a65840b92503941911af518eeab38bc
parent86e541664146b0ff52b2ef810d1d9dcb36a1a034
[media] adv7842: Deliver resolution change events to userspace

Use the new v4l2_subdev_notify_event() helper function to deliver the
resolution change event to userspace via the v4l2 subdev event queue as
well as to the bridge driver using the callback notify mechanism.

This allows userspace applications to react to changes in resolution. This
is useful and often necessary for video pipelines where there is no direct
1-to-1 relationship between the subdevice converter and the video capture
device and hence it does not make sense to directly forward the event to
the video capture device node.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
[hans.verkuil@cisco.com: fix obvious mistake: v4l2_event_subdev_unsubscribe -> v4l2_ctrl_subdev_subscribe_event]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv7842.c