[libcamera-devel,0/2] android: Handle internal UVC cameras
mbox series

Message ID 20210727135440.53640-1-umang.jain@ideasonboard.com
Headers show
Series
  • android: Handle internal UVC cameras
Related show

Message

Umang Jain July 27, 2021, 1:54 p.m. UTC
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