camera: control FD in HAL
Camera apk issues command to start FD, but doesn't issue one to stop FD, so HAL
tries to cover to stop FD when exit preview status.
Even though the HAL defaults FD to off, the first thing that the camera app
does, when launched in camera mode, is to enable it. However, because it never
explicitly disables it on stopping preview, it will continue to be enabled
afterwards, even if you switch to camcorder mode. Since camcorder mode does
not care about FD, and ignores the callbacks, there's no visual feedback, but
the algorithm still works.
Aside from ensuring correctness, this patch will lower power consumption when
you switch from camera to camcorder mode.
Bug: 7311999
Change-Id: Ifd70542a3b5bf3e257ccc7213d94893fabcb9535
Signed-off-by: Iliyan Malchev <malchev@google.com>
2 files changed