diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-29 11:16:42 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-29 11:16:42 -0700 |
commit | 7396b53e1bdd1aa5f9dcba760c8993a0cf620b6a (patch) | |
tree | 064f8d3f077ac4b16c8d35dbdfdf9ea7e4b842d3 /host/lib/tune_helper.cpp | |
parent | 86fffe7f9ed78a682879dd56c26628256f89e6ae (diff) | |
download | uhd-7396b53e1bdd1aa5f9dcba760c8993a0cf620b6a.tar.gz uhd-7396b53e1bdd1aa5f9dcba760c8993a0cf620b6a.tar.bz2 uhd-7396b53e1bdd1aa5f9dcba760c8993a0cf620b6a.zip |
use bb_rate and if_rate to handle dxc io rates
Diffstat (limited to 'host/lib/tune_helper.cpp')
-rw-r--r-- | host/lib/tune_helper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/tune_helper.cpp b/host/lib/tune_helper.cpp index eeda0b6be..1e5c4cd0d 100644 --- a/host/lib/tune_helper.cpp +++ b/host/lib/tune_helper.cpp @@ -34,7 +34,7 @@ static tune_result_t tune_xx_subdev_and_dxc( bool subdev_quadrature = subdev[SUBDEV_PROP_QUADRATURE].as<bool>(); bool subdev_spectrum_inverted = subdev[SUBDEV_PROP_SPECTRUM_INVERTED].as<bool>(); wax::obj dxc_freq_proxy = dxc[std::string("freq")]; - double dxc_sample_rate = dxc[std::string("rate")].as<double>(); + double dxc_sample_rate = dxc[std::string("if_rate")].as<double>(); // Ask the d'board to tune as closely as it can to target_freq+lo_offset double target_inter_freq = target_freq + lo_offset; @@ -96,7 +96,7 @@ tune_result_t uhd::tune_rx_subdev_and_ddc( double lo_offset = 0.0; //if the local oscillator will be in the passband, use an offset if (subdev[SUBDEV_PROP_LO_INTERFERES].as<bool>()){ - lo_offset = 2.0*ddc[std::string("rate")].as<double>()/ddc[std::string("decim")].as<size_t>(); + lo_offset = 2.0*ddc[std::string("bb_rate")].as<double>(); } return tune_rx_subdev_and_ddc(subdev, ddc, target_freq, lo_offset); } @@ -119,7 +119,7 @@ tune_result_t uhd::tune_tx_subdev_and_duc( double lo_offset = 0.0; //if the local oscillator will be in the passband, use an offset if (subdev[SUBDEV_PROP_LO_INTERFERES].as<bool>()){ - lo_offset = 2.0*duc[std::string("rate")].as<double>()/duc[std::string("interp")].as<size_t>(); + lo_offset = 2.0*duc[std::string("bb_rate")].as<double>(); } return tune_tx_subdev_and_duc(subdev, duc, target_freq, lo_offset); } |