diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-30 05:18:32 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-30 05:18:32 -0800 |
commit | 4f4032573b4ac1c7f9a0cff2ecdd49bf51c4b4d8 (patch) | |
tree | dde98e891007e74e755de651ab067db0acaf7cdb /host | |
parent | 6b46d2ce6e2038e57b1ea23df4d37edee6f58ccc (diff) | |
download | uhd-4f4032573b4ac1c7f9a0cff2ecdd49bf51c4b4d8.tar.gz uhd-4f4032573b4ac1c7f9a0cff2ecdd49bf51c4b4d8.tar.bz2 uhd-4f4032573b4ac1c7f9a0cff2ecdd49bf51c4b4d8.zip |
usrp1: set scale factor after setting converter
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/usrp1/io_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp1/io_impl.cpp b/host/lib/usrp/usrp1/io_impl.cpp index 937706fdd..ff89b2e18 100644 --- a/host/lib/usrp/usrp1/io_impl.cpp +++ b/host/lib/usrp/usrp1/io_impl.cpp @@ -603,10 +603,6 @@ rx_streamer::sptr usrp1_impl::get_rx_stream(const uhd::stream_args_t &args_){ boost::shared_ptr<usrp1_recv_packet_streamer> my_streamer = boost::make_shared<usrp1_recv_packet_streamer>(spp, _soft_time_ctrl); - //special scale factor change for sc8 - if (args.otw_format == "sc8") - my_streamer->set_scale_factor(1.0/127); - //init some streamer stuff my_streamer->set_tick_rate(_master_clock_rate); my_streamer->set_vrt_unpacker(&usrp1_bs_vrt_unpacker); @@ -622,6 +618,10 @@ rx_streamer::sptr usrp1_impl::get_rx_stream(const uhd::stream_args_t &args_){ id.num_outputs = args.channels.size(); my_streamer->set_converter(id); + //special scale factor change for sc8 + if (args.otw_format == "sc8") + my_streamer->set_scale_factor(1.0/127); + //save as weak ptr for update access _rx_streamer = my_streamer; |