media: tegra_camera: optimize single shot mode
Current single shot mode, pixel parser is disabled after capture one
frame and software waits for memory write ack done syncpoint, which
only gives us half the frame rate.
Optimized single shot mode:
- during capture setup, set single shot mode
- for each frame, wait for FRAME_START syncpoint
- arm single shot bit to start capture
- for the last frame, wait for MWA_DONE syncpoint to make sure capture
finished.
With optimized single shot mode, frame rate is about 4208x3120 @ 24fps
for IMX135 and 1920x1080 @ 30fps for AR0261.
Bug
1639982
Change-Id: I0b15d02c2853647d03f5b2d38a7fe5c145174bd5
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/754709
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>