mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
android: camera_device: Do not default External to Front
Now that the camera location is not defaulted anymore in the library but doesn't get registered if the firmware interface does not provide the information, do not default it to FRONT if LocationExternal is reported. To maintain compatibility with CTS requirements, default location to FRONT only if the camera property is not available. Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
285d365186
commit
5154e14b3e
1 changed files with 7 additions and 5 deletions
|
@ -376,13 +376,15 @@ int CameraDevice::initialize()
|
|||
facing_ = CAMERA_FACING_BACK;
|
||||
break;
|
||||
case properties::CameraLocationExternal:
|
||||
/*
|
||||
* \todo Set this to EXTERNAL once we support
|
||||
* HARDWARE_LEVEL_EXTERNAL
|
||||
*/
|
||||
facing_ = CAMERA_FACING_FRONT;
|
||||
facing_ = CAMERA_FACING_EXTERNAL;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
* \todo Retrieve the camera location from configuration file
|
||||
* if not available from the library.
|
||||
*/
|
||||
facing_ = CAMERA_FACING_FRONT;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue