Commit graph

28 commits

Author SHA1 Message Date
Sampath Vangaveti
dc89a99bdd QCamera2: HAL/HAL3: Convert Boottime from ISP to MONOTONIC
Issue:
Diplay freeze observed sometimes, if there is any
suspend/resume of the device.
The issue found to be with differences in the timesources
used by display and camera for timestamp calculation.

Fix:
Measure the clock offset between BOOTTIME and MONOTONIC.
The clock domain source for ISP is BOOTTIME and
for display, it is MONOTONIC.
The offset is used to convert from clock domain of
camera to display.
Added following set prop to switch between camera time sources.

	persist.camera.time.monotonic <value>
Default value is 1.
value 0 indicates Boot time from camera.
value 1 indicates Monotonic time from camera.

Change-Id: I733aa17e89ccaa7f5ea6d2eae5e1cd6428c81a85
CRs-Fixed: 1005906
2018-07-15 06:58:15 +02:00
Santhosh Kumar Thimmanna Bhattar
8c7b1d2502 QCamera2: Disable QCameraDisplay temporarily
Camera launch is failing due to QCameraDisplay crash.
Disabling temporarily for AOSP upgrade to avoid the crash.
This will be reverted once proper fix is found.

Change-Id: I6ed87edcfbb07410899dcde13341b7ddd404960e
2018-07-07 07:47:01 +02:00
Sauhard Pande
15d619dd29 QCamera2: For supporting VNDK and Treble rules.
Issue: In accordance to treble rules libcamera_client.so cannot be
       used or included. For HAL1 needed support for values of
       Cameraparameters for HAL1 QCameraParameters

Solution: Included Cameraparameters.h and .cpp files to this location
          as well.

Change-Id: If04d8a342d1552d2f0ba665b08b312e98bf8b9f5
2018-07-07 07:47:01 +02:00
Santhosh Kumar Thimmanna Bhattar
d383bd95ab QCamera2: Increase camera daemon start timeout
Issue:
Camera is not launching for the first time as camera
daemon is not up.

Fix:
Increase camera daemon start timeout

Change-Id: I2dd8ae904145ad5c067b27014cdb95c28084accf
2018-07-07 07:47:01 +02:00
Suman Mukherjee
2a96f575f2 QCamera2: mm-camera-interface: Camera Daemon late start issue fix
In Android O, Cameraporvider service is introduced newly and its
starting before main service which results in getnumofcameras failure.
Added re-try count to fix this issue.

Change-Id: I3a3ee1cbe6ad983d5ad7266f154b33b93d303804
2018-07-07 07:47:01 +02:00
Suman Mukherjee
afb2b8c829 QCamera2: Added LOCAL_VENDOR_MODULE to set output path of the binaries
Replaced LOCAL_PROPRIETARY_MODULE with LOCAL_VENDOR_MODULE to set the
output vendor path for hal binaries and libraries

Change-Id: Ib04d80eabc0e17f3863e956db5f2378e426c0687
2018-07-07 07:47:01 +02:00
Sauhard Pande
4c498e03c7 QCamera2: Vendor Seperation
Moving camera hal and mm-interface binaries to /system/vendor/lib

Change-Id: Ic639b698a8bf4418d51409342ab8f1187362a99b
2018-07-07 07:47:01 +02:00
Abhinav Sohane
f34640b607 QCamera2:mm-camera-channel:Added check for max value of cur_capture_idx.
Issue: In FLASH mode, while requesting superBuffers for 100 snapshots
      cur_capture_idx is increasing to more that MAX_CAPTURE_BATCH_NUM,
      so by derefrencing frameConfig.config to cur_capture_idx, stack
      memory is getting corrupted.

Solution: Checking for max value of cur_capture_idx before derefrencing
          frameConfig.config array to avoid writing in outOfBound index
          memory.

Change-Id: Icaea62be483b3ee97304441f7c9287b73496f09d
2018-07-07 07:46:41 +02:00
Lida Wang
26165a08a7 Camera2:HAL1:fix HAL1 callback cookie
1. fix HAL1 memory callback cookie for Treble change
2. remove checking for VANILLA_HAL definition for O upgrade now
   for initial bring up, until the removal of the TARGET_USE_AOSP
   flag in devie mkfile.

Change-Id: Iedf5a97e9890bc7216a3008373ddef5005836a01
2018-07-07 07:45:27 +02:00
Suman Mukherjee
83d447f155 QCamera2: Fixed compilation error for AOSP upgrade
* Fixed compilation error for O
2018-07-07 07:44:41 +02:00
Michael Bestas
c86a6b0c32 camera: Remove executable bit from source files
Change-Id: I64f8a26a8dcbc5a73c32a274f389cf8e62f4d003
2018-02-13 09:05:37 +01:00
Michael Bestas
a969bdbef9 camera: Cleanup Obsolete LOCAL_PRELINK_MODULE.
Change-Id: I2b48ea97aef4dcce31f1354c021d409f68d8dc65
2018-02-13 09:05:37 +01:00
Michael Bestas
57947754da camera: Remove tests
Change-Id: I28c7acf0c8a33ff82d40d6019ed3e32de8f9593e
2018-02-13 09:05:37 +01:00
Ranjith Kagathi Ananda
2792329531 QCamera2: Resolve CLANG compilation errors
Resolve CLANG compilation errors

CRs-Fixed: 981949
Change-Id: Ibeaac796b5e5f0defae76a8ab9bd88d3d1e4c164
2018-01-31 05:35:55 +00:00
Ranjith Kagathi Ananda
c5e87c4791 QCamera2: Remove LOCAL_CLANG := disable flags
Remove LOCAL_CLANG disable flags so that the default
compiler is used.

CRs-Fixed: 981949

Change-Id: Ia5a935bc8d0371c09c25daac32cf0c35ede79a39
2018-01-31 05:35:41 +00:00
Prateek Chaubey
844c2dee54 land: camera: use Xiaomi headers 2017-12-12 11:17:05 +05:30
Mridul Singh
12cbba2ee3 QCamera2:HAL: Fix for Sensor HDR.
Incase when sensor-hdr is enabled, need to disable the normal
HDR enabled flag.

Change-Id: Ibd7418d8abaabc03625a65fc228d0bac5528fd5e
2017-12-12 11:17:05 +05:30
Guruprasad Gaonkar
a93a2741fc QCamera2: Changes to release video duped FD's.
Issue:
Android camera framework expects camera HAL modules
to release video duped FD's. Framework can trigger this event
after stopRecording() call.
Fix:
Change to avoid state machine check to release video FD's.

CRs-Fixed: 1077211
Change-Id: I6dcc31b335679e4885f56ae1e4e02ee33d193b08
2017-12-12 11:17:05 +05:30
Guruprasad Gaonkar
c93f5696c8 QCamera2: Add buffer identity for video native handle.
Issue: Release_recording() can be called with any Imemory pointer
sent earlier. HAL cannot use this pointer to recognize video frame
to match before release this buffer to kernel.

Fix: Buffer identity is introduced to every video buffer and released
buffer can be found by comparing identity.

CRs-Fixed: 1026840
Change-Id: I287d1276fbf2241a2fc6d470e887a91e1daeca4d
2017-12-12 11:16:34 +05:30
Guruprasad Gaonkar
665ea6feed QCamera2: HAL: Changes to fix batch mode recording issue.
Batch mode video processing was broken on latest builds. Batch mode
enabled and verified with media extension now.

CRs-Fixed: 1013704
Change-Id: Ifb34a9c201f39591ab5d6a8aa70125ca7cad3f4f
2017-12-12 11:04:31 +05:30
Rajaram Gudivada
6fb4d87d52 QCamera2: Max Fps updated as per typeof(MetaData_t::refreshrate)
Issue:
Type of refreshrate is different in different android versions
and if same camera code is used across the versions then
dereferencing the hardcoded int pointer to float resulting a zero.

Fix:
Update Max fps as per the type of(MetaData_t->refreshrate)

Change-Id: Ifced28cdc56252151be4f41e3e652be41af510a0
CRs-Fixed: 1018231
2017-12-12 11:04:13 +05:30
Guruprasad Gaonkar
bacb43c44d QCamera2:HAL1: Close duplicated FD's for media extension.
In video metadata mode, framework allocates native handle
resource and needs to be freed in release recording.
This change is to free framework resources in case of media
extension use cases.

Change-Id: I1bac10740130d506d71ec1275dd7d75f66c263c8
2017-12-12 11:02:38 +05:30
Guruprasad Gaonkar
3dd1d4cba8 QCamera2:HAL1: Update native handle for every timestamp callback
Incase framework updates camera native_handle pointer, we need
to use cached native_handle to update for every timestamp
callback. This change is excecuted only if media extension flag
is enabled for the target.

Issue:
Use case introduced in video to overwrites camera native handle
pointer.

Fix:
Change is to cache camera native handle and restore when video
release camera buffer.

Change-Id: I0bdc01b3f2b51d7bba66320cc8ef1ab019136d4e
2017-12-12 10:58:27 +05:30
Vitaliy Tomin
1099d62999 land: camera: Fixes to OSS camera hal to build in LineageOS tree
Change-Id: I9ce7744a23c059cef5221a506173f88099a30bb7
2017-12-11 20:14:37 +05:30
Vitaliy Tomin
880b26ccee land: import oss camera LA.UM.5.1-03810-8x37.0
additional cherry-picks:
 * b706b064b QCamera2: Fix compilation errors for unused variables.
 * 1e2ea589e HAL: Fixed compilation error for AOSP upgrade
2017-12-11 20:14:21 +05:30
karthick111
555ad6d36f land: Switch to prebuilt camera hal, blobs
Signed-off-by: karthick111 <karthickrko61@gmail.com>
2017-03-19 14:31:38 +01:00
Zhao Wei Liew
beeb8314a2 land: camera: Use project pathmap
Change-Id: I90c00fa50deed656e21391b9d39a4821049359dd
2017-02-12 07:26:24 +08:00
Zhao Wei Liew
669d233045 land: Import OSS camera HAL
CAF revision: AU_LINUX_ANDROID_LA.UM.5.1_RB1.06.00.01.192.038

Change-Id: I87589fea5e9c00c3bdc9c79cc6b2d6453c3d09b3
2017-02-12 07:26:24 +08:00