summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-11-18 14:35:25 +0100
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-11-29 20:41:37 +0100
commit90da3af347d59c9d32431835ddcaa7363ba663ed (patch)
treec1679aa06e9573781187b591cda8e663a1e416e1 /src/ipa/rkisp1
parentaad674c54445e98e27da262ed805518701c57d6c (diff)
ipa: rkisp1: Pass IPASettings at init call
When the IPA is initialized,#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Update the kernel headers copy from a kernel source tree if [ $# != 1 ] ; then echo "Usage: $0 <kernel dir>" exit 1 fi header_dir="$(dirname "$(realpath "$0")")/../include/linux" kernel_dir="$1" # Bail out if the directory doesn't contain kernel sources line=diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
index bf2c13b6..7ecbf8ae 100644
--- a/src/ipa/rkisp1/rkisp1.cpp
+++ b/src/ipa/rkisp1/rkisp1.cpp
@@ -34,7 +34,7 @@ namespace ipa::rkisp1 {
class IPARkISP1 : public IPARkISP1Interface
{
public:
- int init(unsigned int hwRevision) override;
+ int init(const IPASettings &settings, unsigned int hwRevision) override;
int start() override;
void stop() override {}
@@ -75,7 +75,8 @@ private:
unsigned int hwHistogramWeightGridsSize_;
};
-int IPARkISP1::init(unsigned int hwRevision)
+int IPARkISP1::init([[maybe_unused]] const IPASettings &settings,
+ unsigned int hwRevision)
{
/* \todo Add support for other revisions */
switch (hwRevision) {