OSDN Git Service

media: tvp5150: add v4l2-event support
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 12 Mar 2020 10:31:51 +0000 (11:31 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 15:40:28 +0000 (16:40 +0100)
commite953c10300055694c976edfe8c7a71a5bfc5ade7
tree8a7738bd3758e3450c3a0a823b059970ded7ad32
parent73549a69a415394bae136c1b1cfe7a5caf705f98
media: tvp5150: add v4l2-event support

Currently the driver notifies internal subdevs if the signal is locked
or not. This information is also useful for userpace applications e.g. to
switch to another input device upon a signal lost event.

This commit adds the support for the userspace to subscribe to the
V4L2_EVENT_SOURCE_CHANGE and V4L2_EVENT_CTRL events.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/tvp5150.c