diff options
author | David Plowman <david.plowman@raspberrypi.com> | 2020-08-01 09:01:48 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-08-05 17:48:55 +0300 |
commit | 3a680a667fc98cefdaeba9b55751c8725a35aa36 (patch) | |
tree | a90d292301e10b4a5a42774cdef4fc93f8093479 /src/ipa/raspberrypi/controller/rpi | |
parent | 09b1d0fced97a6591e50c5727b3a705cebbbaa1a (diff) |
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>
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi')
-rw-r--r-- | src/ipa/raspberrypi/controller/rpi/alsc.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/raspberrypi/controller/rpi/alsc.hpp b/src/ipa/raspberrypi/controller/rpi/alsc.hpp index 38062577..e895913b 100644 --- a/src/ipa/raspberrypi/controller/rpi/alsc.hpp +++ b/src/ipa/raspberrypi/controller/rpi/alsc.hpp @@ -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_; |