aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-09-26 16:24:02 -0700
committerMartin Braun <martin.braun@ettus.com>2016-09-29 10:08:53 -0700
commit60920644aa33d1a6f7a4dac30bdb890b9bc4301f (patch)
treeec8dae38acfdaa2e546209a42fa5469e228b4b61 /host
parent6c91d74d5c4808342f03599cf65344dc5fb973f2 (diff)
downloaduhd-60920644aa33d1a6f7a4dac30bdb890b9bc4301f.tar.gz
uhd-60920644aa33d1a6f7a4dac30bdb890b9bc4301f.tar.bz2
uhd-60920644aa33d1a6f7a4dac30bdb890b9bc4301f.zip
xcvr: Query ref clock, not ADC/DAC clock
On the USRP2 and N2x0, these values are the same, but on the X3x0, they might differ.
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/dboard/db_xcvr2450.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_xcvr2450.cpp b/host/lib/usrp/dboard/db_xcvr2450.cpp
index 4a3f69f69..aa0bae8b8 100644
--- a/host/lib/usrp/dboard/db_xcvr2450.cpp
+++ b/host/lib/usrp/dboard/db_xcvr2450.cpp
@@ -371,7 +371,7 @@ double xcvr2450::set_lo_freq_core(double target_freq){
//variables used in the calculation below
double scaler = xcvr2450::is_highband(target_freq)? (4.0/5.0) : (4.0/3.0);
- double ref_freq = this->get_iface()->get_codec_rate(dboard_iface::UNIT_TX);
+ double ref_freq = this->get_iface()->get_clock_rate(dboard_iface::UNIT_TX);
int R, intdiv, fracdiv;
//loop through values until we get a match