summaryrefslogtreecommitdiff
path: root/drivers/media/platform/soc_camera/tegra_camera/vi.c
AgeCommit message (Collapse)Author
2017-04-04Reapply "media: tegra_camera: introduce 2 kthreads for capture"Mariusz Glebocki
This reverts commit b2f6b2abc791802631ff1c85488cdf3c1f0a97e2. Signed-off-by: Mariusz Glebocki <mglebocki@antmicro.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-11-21Revert "media: tegra_camera: introduce 2 kthreads for capture"Marcel Ziswiler
This reverts commit ff5bccb61c1f8da1f63451fda88bd1f65dbee5b2. This makes Antmicro's OV5640 camera module work again as described on their blog here: http://antmicro.com/Blog/2015/09/jetson-tk1-cameras/ Further investigation pending. Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2015-10-29media: tegra_camera: introduce 2 kthreads for captureBryan Wu
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>
2015-01-07media: tegra_v4l2_camera: use port num to init clkBryan Wu
Change clks_init() internal API to use CSI port number to enable clks instead of using dev_id which is incorrect sometime, since vi.0 might also assigned to CSI_B/CSI_C port. Bug 1560636 Change-Id: I0e26308ec885e2e34fe8faa63fca404c911912c4 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/539002 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> (cherry picked from commit c66d8e5880589b0d95dba63d10daff53e47e8628) Reviewed-on: http://git-master/r/665995 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-03-31media: tegra_camera: free syncpts at driver removeDeepak Nibade
Use nvhost_free_syncpts() to free the syncpts during driver unload This is required to fix syncpts leak Bug 1489488 Bug 1305024 Change-Id: Ic02771e2078ddead4c9b54826a669bb7c3653ba2 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/388116 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Bryan Wu <pengw@nvidia.com> Tested-by: Bryan Wu <pengw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2014-03-19media: tegra_camera: use dynamic syncptsDeepak Nibade
- use API nvhost_get_syncpt_client_managed() to get syncpts dynamically - add new function pointers .init_syncpts() to initialize the syncpts at probe() time only Bug 1305024 Change-Id: I6bdaace034b966d8409308fd52f5d2b1507314c1 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/381958 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2014-03-17media: tegra_camera: update syncpt val on successShridhar Rasal
Update camera syncpoint value returned by nvhost on success. Bug 1469913 Change-Id: Ic450631bda94f2bdd6d1d352dbd5ec8aa97d7e63 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/375434 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2014-02-25video: tegra: host: Revert dynamic syncpt patchesShridhar Rasal
With dynamic syncpoint allocation ap_systemsw fails intermittently for TN8. so reverting series of dynamic syncpoint patches. Bug 1305024 Bug 1467163 Revert "video: tegra: host: add pbdma syncpoint headers" commit 62efc18329c5da0e6dc90f088c145e1099213f20. Revert "video: tegra: host: print syncpt id in debug spew" commit c918cc4494008fe764e746142060d896436a1d3c. Revert "video: tegra: host: remove static from get_syncpt_name()" commit c098ce933738d892bbeba003ab35505c4b7d7951. Revert "video: tegra: host: remove unused variable" commit a4dad0592c95165e8366ebe939367a1ece2cb9b9. Revert "video: tegra: host: Hardcode AVP sync point" commit 8da84e56de66f20806cb706ee005f263ca5e213f. Revert "video: tegra: host: hard-code syncpts for t114" commit 410536f668a62d94603bc3287efaef3dcffb1226. Revert "video: tegra: host: remove static syncpt mappings" commit 4cee1d17b01019cc122acf21604d4f01ac6f7474. Revert "media: tegra_camera: use dynamic syncpts" commit eae55c8e4cbb65e3ed1a8c8ef8150d8a6ba938bf. Revert "video: tegra: dc: use dynamic syncpt" commit 03d7c261ceb62bf1eb93cae48aaa84881d6de5b9. Revert "video: tegra: host: use dynamic syncpt for hwctx" commit 03136f549f54a26d77987f3751bf12d202614372. Revert "video: tegra: host: implement dynamic synpt" commit 6c2d1b43e51f2e0424b793c9da1c25adf63ea569. Change-Id: I19a63e812680b7521bed3c1188858b2165a88c89 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/374169 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
2014-02-13media: tegra_camera: use dynamic syncptsDeepak Nibade
- use API nvhost_get_syncpt_client_managed() to get syncpts dynamically - add new function pointers .init_syncpts() to initialize the syncpts at probe() time only Bug 1305024 Change-Id: Ib751b0a23d556444ba9d86fedc978439b4212b90 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/364854 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Bryan Wu <pengw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2013-11-01media: tegra v4l2 camera: refactor driver codeBryan Wu
Reconstruct the driver for Tegra V4L2 camera driver: - remove old driver file tegra_v4l2_camera.c - create driver file vi.c for VI/CSI (T20/T30/T114/T148) - create driver file vi2.c for VI2/CSI2 (T124) Bug 1377330 Change-Id: If030cf98e700b9201caa60328be822bc10610e74 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/289329 GVS: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>