media: tegra_camera: introduce 2 kthreads for capture
authorBryan Wu <pengw@nvidia.com>
Thu, 15 Oct 2015 20:10:29 +0000 (13:10 -0700)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 29 Oct 2015 17:52:36 +0000 (10:52 -0700)
commitff5bccb61c1f8da1f63451fda88bd1f65dbee5b2
tree4f3494c090cc004caec0c96a7028c19b40c05264
parentb15d976c0a2e6a3c512001a3be3feaf057655b8b
media: tegra_camera: introduce 2 kthreads for capture

Use one kthread to start capture a frame and wait for next frame start.
Before waiting, it will move the current buffer to another queue which
will be handled another kthread.

The second kthread (capture_done) will wait for memory output done sync
point event and handle the buffer to videobuffer2 framework as capture
done.

Bug 1686911

Change-Id: Ia092c708ecca3b2e7cbc657a96fd247ea4a00d2f
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/819177
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/media/platform/soc_camera/tegra_camera/common.c
drivers/media/platform/soc_camera/tegra_camera/common.h
drivers/media/platform/soc_camera/tegra_camera/vi.c
drivers/media/platform/soc_camera/tegra_camera/vi2.c