BACKPORT: [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 <[email protected]>
Acked-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
(cherry picked from commit 3cbe6e5bcad0b102c06b9c6029fda75630045475)

Conflicts:
	drivers/media/v4l2-core/v4l2-event.c
	include/media/v4l2-event.h

BUG=chromium:409725
TEST=build kernel and pass

Change-Id: I958a9b65de96af89bacef32dd7d49afb9307ce58
Signed-off-by: Heng-Ruey Hsu <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/294039
Commit-Ready: Heng-ruey Hsu <[email protected]>
Tested-by: Heng-ruey Hsu <[email protected]>
Reviewed-by: Tomasz Figa <[email protected]>
5 files changed
OSZAR »