[libcamera-devel] [PATCH 0/2] android: Handle internal UVC cameras

Umang Jain umang.jain at ideasonboard.com
Tue Jul 27 15:54:38 CEST 2021


libcamera defaults all UVC cameras as 'external' (which makes sense
as there is not much information to accurately determine location).
However, in the HAL layer, we can probably determine accurately
by looking at HAL config file camera entries.

This series addresses the handling of such cameras, where the libcamera
reports properties::CameraLocationExternal, but we know one of the UVC
is internal/integrated to the system. It should be treated as internal.

Testing:
With nautilus, it has one UVC and one IPU3 cameras. With these patches
applied, both these cameras have id as '0' & '1' (i.e. internal).

With camera service still running, I hotplugged a external UVC camera,
and it got the camera numerical id as '1000'.

Umang Jain (2):
  android: Override camera is "Internal" provided if found on HAL config
  android: nautilus: Add camera HAL configuration

 src/android/camera_device.cpp             | 10 +++++++++-
 src/android/camera_hal_manager.cpp        | 14 ++++++++++++++
 src/android/data/nautilus/camera_hal.yaml |  8 ++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 src/android/data/nautilus/camera_hal.yaml

-- 
2.31.0



More information about the libcamera-devel mailing list