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 <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
d8d6a78f22
commit
09b0801fdb
5 changed files with 43 additions and 0 deletions
21
src/android/cros/camera3_hal.cpp
Normal file
21
src/android/cros/camera3_hal.cpp
Normal file
|
@ -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 <cros-camera/cros_camera_hal.h>
|
||||
|
||||
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
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue