OSDN Git Service

media: staging/intel-ipu3: make imgu use fixed running mode
authorBingbu Cao <bingbu.cao@intel.com>
Mon, 30 Dec 2019 09:26:25 +0000 (10:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jan 2020 07:13:42 +0000 (08:13 +0100)
commite878742c83ec26ef256ebb6b36a4d44644548f25
tree0f6ec5591a376facfc17bc5eca403128e71b3427
parent92590966fe5b6cc1930b1ad36d4f84e9bc88b982
media: staging/intel-ipu3: make imgu use fixed running mode

Currently, the imgu running mode need user to set by v4l2 ctrl.
However, imgu only support 2 pipes and 2 operation modes - video and
still. This patch make the first imgu subdev running as video and second
one running as still, it will make the user understand easily, it can
also cover current camera use cases requirement. The running mode is set
during subdev registering, no race-condition after change, so it is safe
to change the mode data type to integer.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/media/v4l-drivers/ipu3.rst
drivers/staging/media/ipu3/include/intel-ipu3.h
drivers/staging/media/ipu3/ipu3-v4l2.c
drivers/staging/media/ipu3/ipu3.h