Commit Graph

6 Commits

Author SHA1 Message Date
Demon000 22b76720e4 msm8976-common: camera: 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
2019-01-19 13:18:27 +01:00
LuK1337 04f4dfb4cd msm8976-common: camera: Add missing Fence destructor
* Our camera HAL depends on it.

Change-Id: Iedf3dae40e3f2beb284549f486b8721c69837cd0
2018-08-16 12:15:43 +02:00
Luca Stefani 9fe4b83c29 msm8976-common: Add libcamera_client shim
Change-Id: I4cc4eb52bc41e5174342e5571f096edb0e5a5c75
2018-01-19 00:15:57 +01:00
LuK1337 3299edeaa1 msm8976-common: camera: Always set KEY_PREVIEW_FPS_RANGE to 7500,30000
* Camera2 sets it to 30000,30000 and that makes the images really dark.

Change-Id: Icc0eeccdfd16c21ac97d095066b7b14f9bb1a916
2017-01-27 12:24:49 +01:00
Gabriele M fa96152a8c msm8976-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
2017-01-27 12:24:49 +01:00
Luca Stefani ffe2d49318 msm8976-common: Add and build camera wrapper
Change-Id: I8fe4654da53306e981dc6a2884194f6f4d38c144
2017-01-27 12:24:49 +01:00