mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Camera: support torch control on external camera"
am: f8007c2000
Change-Id: I876d92c646f3c0cb189dfd6be4881f4706d991cf
This commit is contained in:
@@ -90,7 +90,7 @@ Return<void> ExternalCameraDevice::getCameraCharacteristics(
|
||||
}
|
||||
|
||||
Return<Status> ExternalCameraDevice::setTorchMode(TorchMode) {
|
||||
return Status::METHOD_NOT_SUPPORTED;
|
||||
return Status::OPERATION_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
Return<void> ExternalCameraDevice::open(
|
||||
|
||||
@@ -105,8 +105,9 @@ Return<void> ExternalCameraProvider::getCameraIdList(getCameraIdList_cb _hidl_cb
|
||||
|
||||
Return<void> ExternalCameraProvider::isSetTorchModeSupported(
|
||||
isSetTorchModeSupported_cb _hidl_cb) {
|
||||
// No torch mode support for USB camera
|
||||
_hidl_cb (Status::OK, false);
|
||||
// setTorchMode API is supported, though right now no external camera device
|
||||
// has a flash unit.
|
||||
_hidl_cb (Status::OK, true);
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user