From 6b50a6bcd93bde8bced6adb9b09c6fe247bcde92 Mon Sep 17 00:00:00 2001 From: Ian Buckley Date: Fri, 2 Jan 2015 10:33:14 -0800 Subject: B200: Bug #656. Added FIR coeffs for filters with Fs/4 stop band. AD9361 driver can now select coeffs for different interpolation ratios. --- host/lib/usrp/common/ad9361_ctrl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib/usrp/common/ad9361_ctrl.cpp') diff --git a/host/lib/usrp/common/ad9361_ctrl.cpp b/host/lib/usrp/common/ad9361_ctrl.cpp index f94536ed9..85510530d 100644 --- a/host/lib/usrp/common/ad9361_ctrl.cpp +++ b/host/lib/usrp/common/ad9361_ctrl.cpp @@ -123,6 +123,13 @@ public: const meta_range_t clock_rate_range = ad9361_ctrl::get_clock_rate_range(); const double clipped_rate = clock_rate_range.clip(rate); + if (clipped_rate != rate) { + UHD_MSG(warning) << boost::format( + "The requested master_clock_rate %f MHz exceeds bounds imposed by UHD.\n" + "The master_clock_rate has been forced to %f MHz.\n" + ) % (rate/1e6) % (clipped_rate/1e6) << std::endl; + } + return _device.set_clock_rate(clipped_rate); } -- cgit v1.2.3