Commit graph

2 commits

Author SHA1 Message Date
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