aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/device3/device3_impl.hpp11
-rw-r--r--host/lib/usrp/device3/device3_io_impl.cpp4
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp6
3 files changed, 12 insertions, 9 deletions
diff --git a/host/lib/usrp/device3/device3_impl.hpp b/host/lib/usrp/device3/device3_impl.hpp
index 62fd399ac..17f6a3f6f 100644
--- a/host/lib/usrp/device3/device3_impl.hpp
+++ b/host/lib/usrp/device3/device3_impl.hpp
@@ -170,10 +170,15 @@ protected:
/***********************************************************************
* Streaming-related
**********************************************************************/
- // The 'rate' argument is so we can use these as subscribers to rate changes
public: // TODO make these protected again
- void update_rx_streamers(double rate = -1.0);
- void update_tx_streamers(double rate = -1.0);
+ /*! Update tick rate, samp rate, and scaling on the streamers by querying
+ * the graph.
+ */
+ void update_rx_streamers();
+ /*! Update tick rate, samp rate, and scaling on the streamers by querying
+ * the graph.
+ */
+ void update_tx_streamers();
protected:
/***********************************************************************
diff --git a/host/lib/usrp/device3/device3_io_impl.cpp b/host/lib/usrp/device3/device3_io_impl.cpp
index 188deb89c..06415dd91 100644
--- a/host/lib/usrp/device3/device3_io_impl.cpp
+++ b/host/lib/usrp/device3/device3_io_impl.cpp
@@ -256,7 +256,7 @@ bool device3_impl::recv_async_msg(async_metadata_t& async_metadata, double timeo
/***********************************************************************
* Receive streamer
**********************************************************************/
-void device3_impl::update_rx_streamers(double /* rate */)
+void device3_impl::update_rx_streamers()
{
for (const std::string& block_id : _rx_streamers.keys()) {
UHD_RX_STREAMER_LOG() << "updating RX streamer to " << block_id;
@@ -523,7 +523,7 @@ rx_streamer::sptr device3_impl::get_rx_stream(const stream_args_t& args_)
/***********************************************************************
* Transmit streamer
**********************************************************************/
-void device3_impl::update_tx_streamers(double /* rate */)
+void device3_impl::update_tx_streamers()
{
for (const std::string& block_id : _tx_streamers.keys()) {
UHD_TX_STREAMER_LOG() << "updating TX streamer: " << block_id;
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index ac5b66442..76759acb3 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -1162,10 +1162,8 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t& dev_addr)
}
return master_clock_rate;
})
- .add_coerced_subscriber(
- [this](const double rate) { this->update_tx_streamers(rate); })
- .add_coerced_subscriber(
- [this](const double rate) { this->update_rx_streamers(rate); })
+ .add_coerced_subscriber([this](const double) { this->update_tx_streamers(); })
+ .add_coerced_subscriber([this](const double) { this->update_rx_streamers(); })
.set(master_clock_rate);
////////////////////////////////////////////////////////////////////