summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorChien-Yu Chen <cychen@google.com>2015-02-25 14:50:13 -0800
committerChien-Yu Chen <cychen@google.com>2015-02-27 15:13:00 -0800
commit8558510d59f659d83b44728331e88f106ff735c8 (patch)
tree1f24ed421292f24d13c0bdd3bbe502cd42363d22 /modules
parent3a6417d165861bd93fa1d07410c61995024a0e04 (diff)
downloadhardware_libhardware-8558510d59f659d83b44728331e88f106ff735c8.zip
hardware_libhardware-8558510d59f659d83b44728331e88f106ff735c8.tar.gz
hardware_libhardware-8558510d59f659d83b44728331e88f106ff735c8.tar.bz2
camera_common: change torch status callback API
Update the torch status callback API so that HAL must invoke the torch status callback whenever the torch status changes including changes by set_torch_mode(). The problem of the previous approach was camera service needed to invoke the callback after calling set_torch_mode() and two sources of the torch status changes (HAL and camera service) caused a race condition. Add STATUS_ON and remove STATUS_AVAILABLE which isn't useful because STATUS_OFF means torch is off and available. STATUS_ON means torch is on and available. Bug: 2682206 Change-Id: Ide5d289c5f485404a3ba46e6cb359fa8a52da0bb
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions