Commit graph

19 commits

Author SHA1 Message Date
Bruno Martins
7f5c29d34e msm8226-common: CameraWrapper: Move module to vendor
* Use LOCAL_MODULE_RELATIVE_PATH as well
 * Also use TARGET_BOARD_PLATFORM

Change-Id: I20c7f8b772ade2466dcb2ea7a8b23a07e8d60568
2019-08-16 10:18:54 +02:00
Simon Shields
7b3f90caa4 msm8226-common: CameraWrapper: Add missing libs for headers
* Also clean this up a bit

Change-Id: Ifdaf82855e9ccc3b9d8e13f4124e3670b803109d
2019-08-16 10:18:54 +02:00
Rashed Abdel-Tawab
fd817148ea msm8226-common: CameraWrapper: Include nativebase headers
* This is required as of android-8.0.0_r23

Change-Id: Ic76cfff3a5bfe46c0ea6974e1ffce9fb7ed069c6
2019-08-16 10:18:54 +02:00
Adrian DC
f8590e77ed msm8226-common: camera: update library dependencies for O 2019-08-16 10:18:54 +02:00
Francescodario Cuzzocrea
ae7a4e05e7 msm8226-common: camerawrapper: set flash properties only for back cam 2019-08-16 10:18:54 +02:00
Christopher R. Palmer
01069bb59d msm8226-common: camera: How about doing our NULL checks before crashing?
Current we cleverly deference "device" as part of a log message
and then immediately afterward we bother to check whether or not "device"
was NULL and whether or not it was safe to have just dereferenced it...

Change-Id: Ifcc38fbac54654fd2c6eca894af9a2a794a95f2a
2019-08-16 10:18:54 +02:00
Demon000
b4e8c06e31 CameraWrapper: Store user pointer and pass it when needed
The new camera interface calls set_callbacks with a pointer
to it's internal CameraDevice and expects following calls to
the callbacks to use that pointer.

Store the pointer in the camera wraper and intercept the
callbacks calls to pass it along.

Change-Id: I99f02484e12a3f72cf1be13f1c724f474a452d7f
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-08-16 10:18:54 +02:00
Adrian DC
86b5c87418 camera: Implement release before close safeguard
* Since the modules to HIDL 1.0 transition,
    the camera stack was unable to boot properly
    through camera open(...) -> close(...) -> open(...)
    due to the missing release() call before close(...)

 * As the newer HAL 1.0 specifications imply an internal
    release(...) of the camera stack on close(...),
    replicate this new behaviour by releasing the camera
    resources upon close(...) if it was not performed

Change-Id: I97e1f13b7280d35df2fb17c6644b8eb203cb45ed
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-08-16 10:18:54 +02:00
Adrian DC
2cc2cfc5bf msm8226-common: camera: Use wrapper parameters instead of CameraParameters
* Get inline with the lack of CameraParametersExtra.h
    support in AOSP, avoid using device header to inject
    additional parameters, especially with the introduction
    of Android.bp compilation for libcamera_client
    which ignores the device headers override

Change-Id: I754116f55ed32d54d1b1ad44407993137a07fb69
2019-08-16 10:18:54 +02:00
Gabriele M
8e93ac183f msm8226-common: Increase camera open retries
Cameras can be opened only after the camera server has configured
them. Since Android N the framework usually tries to access the
cameras to determine whether they have a flashlight too early,
causing the flashlight tile not to work. Try to open the camera
a few times before giving up to prevent this.

Note that mm-qcamera-daemon already tries to open the camera twice
with 20ms of delay, so the total number of attempts is two times
the one defined here.

Change-Id: I664fdfdafe0829719fcd0a6a31057d761e4f07d9
2019-08-16 10:18:54 +02:00
Francescodario Cuzzocrea
2edceb929a msm8226-common: CameraWrapper: use android namespace instead of writing android:: 2019-08-16 10:18:54 +02:00
PythonLimited
cd9a7a0751 msm8226-common: revert back to old camera wrapper 2019-08-16 10:18:54 +02:00
Apavayan Sinha
02a2bf9d58 msm8226: CameraWrapper: Update camera wrapper for M
Change-Id: Idc77c8722f8362718716b42cd74404c19e5371f0
2015-10-18 13:28:00 +05:30
Rox-
4e61fb48f2 msm8226-common: CameraWrapper: Update 2015-05-17 14:20:35 +02:00
Rox-
6093e77fd3 msm8226-common: Update CameraWrapper
*Enable video snapshoot
*Remove cancel_auto_focus hack ( not needed )
2015-02-07 17:51:36 +01:00
Robert Rozic
6ad973d8ff CameraWrapper: Fix build error 2015-01-02 19:23:23 +01:00
Rox-
aa5b6ce106 CameraWrapper: Update 2014-12-28 18:53:51 +01:00
Rox-
82caf2fe7e camera: Update camera for lollipop
TODO: Clean unused camera parameters in CameraParametersExtra.h
2014-12-22 13:38:10 +01:00
Robert Rozic
b2ca1464c3 msm8226: Initial commit
Split s3ve3g device tree
2014-12-20 01:57:55 +01:00