Revision 8bb81824 host/lib/usrp/usrp2/io_impl.cpp
| b/host/lib/usrp/usrp2/io_impl.cpp | ||
|---|---|---|
| 372 | 372 |
//setup defaults for unspecified values |
| 373 | 373 |
args.otw_format = args.otw_format.empty()? "sc16" : args.otw_format; |
| 374 | 374 |
args.channels = args.channels.empty()? std::vector<size_t>(1, 0) : args.channels; |
| 375 |
const unsigned sc8_scalar = unsigned(args.args.cast<double>("scalar", 0x400));
|
|
| 375 | 376 |
|
| 376 | 377 |
//calculate packet size |
| 377 | 378 |
static const size_t hdr_size = 0 |
| ... | ... | |
| 406 | 407 |
if (chan < num_chan_so_far){
|
| 407 | 408 |
const size_t dsp = num_chan_so_far - chan - 1; |
| 408 | 409 |
_mbc[mb].rx_dsps[dsp]->set_nsamps_per_packet(spp); //seems to be a good place to set this |
| 409 |
_mbc[mb].rx_dsps[dsp]->set_format(args.otw_format, 0x400);
|
|
| 410 |
_mbc[mb].rx_dsps[dsp]->set_format(args.otw_format, sc8_scalar);
|
|
| 410 | 411 |
my_streamer->set_xport_chan_get_buff(chan_i, boost::bind( |
| 411 | 412 |
&zero_copy_if::get_recv_buff, _mbc[mb].rx_dsp_xports[dsp], _1 |
| 412 | 413 |
)); |
Also available in: Unified diff