OSDN Git Service

media: staging/intel-ipu3: Add dual pipe support
authorBingbu Cao <bingbu.cao@intel.com>
Fri, 7 Dec 2018 01:03:39 +0000 (20:03 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Dec 2018 20:03:42 +0000 (15:03 -0500)
commit51abe041c5ed56efbdd944cbd45d27e2cd711406
tree230a585e292b76960716863765eec04d41462ac1
parent41158dabfd913c04058d54e9561a2a159a8e5082
media: staging/intel-ipu3: Add dual pipe support

This patch adds support to run dual pipes simultaneously.
A private ioctl to configure the pipe mode (video or still)
is also implemented.

IPU3 hardware supports a maximum of 2 streams per pipe.
With the support of dual pipes, more than 2 stream outputs
can be achieved.

This helps to support advanced camera features like
Continuous View Finder (CVF) and Snapshot During Video(SDV).

Extend ipu3 IMGU driver to support dual pipes

    1. Extend current IMGU device to contain 2 groups
       of video nodes and 2 subdevs
    2. Extend current css to support 2 pipeline and make
       CSS APIs to support 2 pipe
    3. Add a v4l2 ctrl to allow user to specify the mode
       of the pipe
    4. Check media pipeline link status to get enabled
       pipes

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Tian Shu Qiu <tian.shu.qiu@intel.com>
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/ipu3/include/intel-ipu3.h
drivers/staging/media/ipu3/ipu3-css-fw.c
drivers/staging/media/ipu3/ipu3-css-fw.h
drivers/staging/media/ipu3/ipu3-css-params.c
drivers/staging/media/ipu3/ipu3-css-params.h
drivers/staging/media/ipu3/ipu3-css.c
drivers/staging/media/ipu3/ipu3-css.h
drivers/staging/media/ipu3/ipu3-v4l2.c
drivers/staging/media/ipu3/ipu3.c
drivers/staging/media/ipu3/ipu3.h