libcamera: ipa: raspberrypi: ALSC: Camera mode does not need to be atomic

In the libcamera framework, SwitchMode (which overwrites the
camera_mode) cannot run concurrently with Prepare (which uses it).

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman 2020-08-01 09:01:48 +01:00 committed by Laurent Pinchart
parent 09b1d0fced
commit 3a680a667f

View file

@ -59,7 +59,7 @@ private:
// configuration is read-only, and available to both threads
AlscConfig config_;
bool first_time_;
std::atomic<CameraMode> camera_mode_;
CameraMode camera_mode_;
std::thread async_thread_;
void asyncFunc(); // asynchronous thread function
std::mutex mutex_;