summaryrefslogtreecommitdiffstats
path: root/include/hardware/camera_common.h
diff options
context:
space:
mode:
authorChien-Yu Chen <cychen@google.com>2015-02-11 11:31:12 -0800
committerChien-Yu Chen <cychen@google.com>2015-02-12 17:52:27 -0800
commit273def398c21328ce095b01c29d7ac93b3bbf1b8 (patch)
tree50b3ce436545ab8e2956bc725a4834729902a038 /include/hardware/camera_common.h
parent8c0e65b45d8aad43e6530094496af9962ee50ec3 (diff)
downloadhardware_libhardware-273def398c21328ce095b01c29d7ac93b3bbf1b8.zip
hardware_libhardware-273def398c21328ce095b01c29d7ac93b3bbf1b8.tar.gz
hardware_libhardware-273def398c21328ce095b01c29d7ac93b3bbf1b8.tar.bz2
camera_common: add -EUSERS to set_torch_mode
To match the public API, seperate camera device in use and other resources in use errors. Bug: 2682206 Change-Id: Ie0451931f0c84fc65f3f6294a9f44bec10627afe
Diffstat (limited to 'include/hardware/camera_common.h')
-rw-r--r--include/hardware/camera_common.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/hardware/camera_common.h b/include/hardware/camera_common.h
index 7d5dce5..0a907b9 100644
--- a/include/hardware/camera_common.h
+++ b/include/hardware/camera_common.h
@@ -748,10 +748,12 @@ typedef struct camera_module {
* returned if and only if android.flash.info.available is
* false.
*
- * -EBUSY: The flash unit or the resource needed to turn on the torch
- * mode is busy, typically because the camera device is already
- * in use, or some other camera device is using enough
- * resources to make using the flash unit not possible.
+ * -EBUSY: The camera device is already in use.
+ *
+ * -EUSERS: The resources needed to turn on the torch mode are not
+ * available, typically because other camera devices are
+ * holding the resources to make using the flash unit not
+ * possible.
*
* -EINVAL: camera_id is invalid.
*