diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2021-07-30 16:31:51 +0530 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-08-04 09:03:23 +0530 |
commit | cc0a50cddf8a45cc1402b0739275bf619e9c46d3 (patch) | |
tree | 609bb3fe2211d6eda43dfec44d1112f7df4c14ae /test/media_device | |
parent | c615807bc420d3ce8fe2091ae99789077cb094a1 (diff) |
android: Instantiate CameraDevice after checking HAL config validity
Currently CameraDevice wrapper is created first and then HAL config
validity is checked. If the validity checks fail, the code path will
simply return, in which case, creating CameraDevice seems a futile
exercise.
This patch defers the creation of CameraDevice wrapper until the HAL
config validity is checked for internal cameras. This will also enable
us to infer a few things beforehand, by reading the config file before
creating the CameraDevice wrapper.
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'test/media_device')
0 files changed, 0 insertions, 0 deletions