[libcamera-devel] [PATCH 0/2] Fix camera location

Paul Elder paul.elder at ideasonboard.com
Fri Feb 19 11:45:42 CET 2021


libcamera defaults the location of cameras with no V4L2 camera
orientation control to external.

Our android HAL implementation currently doesn't support external
cameras, so the CTS test
"android.hardware.camera2.cts.CameraManagerTest#testCameraManagerGetDeviceIdList"
will fail when cameras have a location of external.

The long-term solution is to make sure that the orientation is declared
in the firmware. In the meantime, this patch series makes libcamera
print a warning when the location is defaulted to external, and makes
the HAL implementation change it to front.

Paul Elder (2):
  libcamera: camera_sensor: Print warning when orientation is unknown
  android: camera_device: Set the camera location to Front if External

 src/android/camera_device.cpp   | 6 +++++-
 src/libcamera/camera_sensor.cpp | 2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
2.27.0



More information about the libcamera-devel mailing list