summaryrefslogtreecommitdiff
path: root/light/utils/main.cpp
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <guennadi.liakhovetski@intel.com>2017-11-28 09:28:56 +0100
committerGuennadi Liakhovetski <guennadi.liakhovetski@intel.com>2018-01-04 11:42:27 +0100
commit7b7ede7ebde2698472276e2962a0f77c9d07f3e7 (patch)
tree475789b993d86128f9f539e434f53e3ccb623e31 /light/utils/main.cpp
parent12517de51d66605fbd010f8c82f41c3a1ca99942 (diff)
Camera: Fix hotplug
According to the camera_module_t::get_number_of_cameras() description in camera_common.h, it should only return the number of "fixed" cameras, i.e. cameras, facing to the front and to the back. Any cameras, with the facing value of "external," i.e. externally connected cameras, should not be reported by it, instead they should later be reported, using the camera_module_callbacks_t::camera_device_status_change() callback. However, this doesn't work. When a camera is reported this way, it is ignored as unknown. Fix this by adding a new camera, when its status change is reported. Change-Id: I18874ed005f477e32fb723c00c16b67a81cde6ce Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Diffstat (limited to 'light/utils/main.cpp')
0 files changed, 0 insertions, 0 deletions