mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
android: camera_device: Set the camera location to Front if External
Our android HAL implementation currently does not support external cameras, so if the camera location property is external, set it to front. This allows the following CTS test to pass: - android.hardware.camera2.cts.CameraManagerTest#testCameraManagerGetDeviceIdList Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
edc771ef2f
commit
3d39df27a7
1 changed files with 5 additions and 1 deletions
|
@ -405,7 +405,11 @@ int CameraDevice::initialize()
|
|||
facing_ = CAMERA_FACING_BACK;
|
||||
break;
|
||||
case properties::CameraLocationExternal:
|
||||
facing_ = CAMERA_FACING_EXTERNAL;
|
||||
/*
|
||||
* \todo Set this to EXTERNAL once we support
|
||||
* HARDWARE_LEVEL_EXTERNAL
|
||||
*/
|
||||
facing_ = CAMERA_FACING_FRONT;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue