diff options
author | Trung N Tran <trung.tran@ettus.com> | 2017-12-07 10:13:57 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:57 -0800 |
commit | 2db171798efc2e16cf2c5d85bfbfe7b032a38ead (patch) | |
tree | 87e4d46f0dd2d9d6d5be9d8a7f46db37b260c4d8 /host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp | |
parent | b4d8ef709c6c44b04a15bb88bd8caeb0ddf06736 (diff) | |
download | uhd-2db171798efc2e16cf2c5d85bfbfe7b032a38ead.tar.gz uhd-2db171798efc2e16cf2c5d85bfbfe7b032a38ead.tar.bz2 uhd-2db171798efc2e16cf2c5d85bfbfe7b032a38ead.zip |
mg: Update gain immediately after setting frequency
We want to have set frequency and set gain atomic. i.e if user set gain and
tune to different frequency, they expect the gain won't change.
Reviewed-By: Martin Braun <martin.braun@ettus.com>
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp index ce96eb200..c4c07cf97 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp @@ -169,6 +169,8 @@ private: const direction_t dir ); + void _update_gain(const size_t chan, direction_t dir); + /************************************************************************** * CPLD Controls (implemented in magnesium_radio_ctrl_cpld.cpp) *************************************************************************/ |