summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-02-04 09:34:55 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-07 16:08:06 +0200
commitef3ce74b261bca51088ba49dd5740e801905ab20 (patch)
treea98103d740ad128a2672bc0a85e49bbebf4935d6 /src/ipa
parent7a8150c5b9056d9f374e5edc28abd81bca40f988 (diff)
ipa: raspberrypi: noise: Remove unnecessary atomic variable
mode_factor_ does not need to be atomic - it is set by SwitchMode() which runs synchronously. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/raspberrypi/controller/rpi/noise.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/raspberrypi/controller/rpi/noise.hpp b/src/ipa/raspberrypi/controller/rpi/noise.hpp
index 6f6e0be9..1c9de5c8 100644
--- a/src/ipa/raspberrypi/controller/rpi/noise.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/noise.hpp
@@ -26,7 +26,7 @@ private:
// the noise profile for analogue gain of 1.0
double reference_constant_;
double reference_slope_;
- std::atomic<double> mode_factor_;
+ double mode_factor_;
};
} // namespace RPiController