CameraHal: Workaround for delayed AF events
Addresses a corner case with b/5534973
- If the OMX Camera component delays ( for whatever reason )
the AF status notification during cancelAF, then there is
a chance that the AF callback timeout inside 'doAutoFocus()'
might expire and an incorrect failed AF callback might be
generated to the client. What this change does is to
immediately unblock the thread waiting for AF status after
the configuration for stopping AF. This way we are
effectively skipping the wait on the OMX component.
Change-Id: Ieda419b3ceee20eee80b543a00cd59b8f51d1cbe
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
1 file changed