ipa: Add start() and stop() operations

Add two new operations to the IPA interface to start and stop it. The
intention is that these functions shall be used by the IPA to perform
actions when the camera is started and stopped.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund 2020-03-26 14:28:56 +01:00
parent 72278369b3
commit 0e577cee9d
12 changed files with 156 additions and 3 deletions

View file

@ -109,6 +109,28 @@ protected:
return TestFail;
}
/* Test start of IPA module. */
ipa_->start();
timer.start(1000);
while (timer.isRunning() && trace_ != IPAOperationStart)
dispatcher->processEvents();
if (trace_ != IPAOperationStart) {
cerr << "Failed to test IPA start sequence" << endl;
return TestFail;
}
/* Test stop of IPA module. */
ipa_->stop();
timer.start(1000);
while (timer.isRunning() && trace_ != IPAOperationStop)
dispatcher->processEvents();
if (trace_ != IPAOperationStop) {
cerr << "Failed to test IPA stop sequence" << endl;
return TestFail;
}
return TestPass;
}