From 09b0801fdb1716c809b1b442015a237974bf6fc5 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Thu, 25 Feb 2021 19:38:26 +0900 Subject: cros: Support the new cros camera API with set_up and tear_down Implement and expose the symbol and functions that the new cros camera API requires. Since we don't actually need them, leave them empty. Update meson accordingly. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/android/cros/camera3_hal.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/android/cros/camera3_hal.cpp (limited to 'src/android/cros/camera3_hal.cpp') diff --git a/src/android/cros/camera3_hal.cpp b/src/android/cros/camera3_hal.cpp new file mode 100644 index 00000000..31ad36ac --- /dev/null +++ b/src/android/cros/camera3_hal.cpp @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2021, Google Inc. + * + * camera3_hal.cpp - cros-specific components of Android Camera HALv3 module + */ + +#include + +static void set_up(cros::CameraMojoChannelManagerToken *token) +{ +} + +static void tear_down() +{ +} + +cros::cros_camera_hal_t CROS_CAMERA_EXPORT CROS_CAMERA_HAL_INFO_SYM = { + .set_up = set_up, + .tear_down = tear_down +}; -- cgit v1.2.1