[media] v4l: Add source change event
authorArun Kumar K <arun.kk@samsung.com>
Wed, 14 May 2014 06:59:42 +0000 (03:59 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 22:50:40 +0000 (19:50 -0300)
commit3cbe6e5bcad0b102c06b9c6029fda75630045475
treea71d0f73af174620f82fd1b5469fef70e9075fe7
parent5b340ea0caac4c123a3bb989a43c021a2dc06fb2
[media] v4l: Add source change event

This event indicates that the video device has encountered
a source parameter change during runtime. This can typically be a
resolution change detected by a video decoder OR a format change
detected by an input connector.

This needs to be nofified to the userspace and the application may
be expected to reallocate buffers before proceeding. The application
can subscribe to events on a specific pad or input port which
it is interested in.

Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Documentation/DocBook/media/v4l/vidioc-dqevent.xml
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
drivers/media/v4l2-core/v4l2-event.c
include/media/v4l2-event.h
include/uapi/linux/videodev2.h