Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0c102efa authored by Steve Kondik's avatar Steve Kondik Committed by Daniel Hillenbrand
Browse files

camera: Workaround for GCC-compiled HAL3 drivers



 * When starting HAL3 using an older camera library (blob),
   the internal structure is aligned differently when compiled
   with GCC vs. LLVM. This could cause the "mLocked" field to
   be overwritten unintentionally, resulting in all update()
   calls from the HAL failing with "CameraMetadata is locked"
   even though nothing actually locked it! This would cause
   the service to kick out the HAL, and nobody gets a camera.
 * Cheap fix is to add a padding byte between mBuffer and
   mLocked, and we are back in business.

Change-Id: I3306e14867007a90885aca13e238dee5b49d8da2
Signed-off-by: default avatarCorey Edwards <ensabahnur16@gmail.com>
parent 151fcb01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment