aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/dsp_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-19 10:30:50 -0800
committerJosh Blum <josh@joshknows.com>2011-02-19 10:30:50 -0800
commite558283f9ff2550d164d868c8e66a5561c781474 (patch)
treebb18d025134e772dff40e459dd6a5a41c0b23b8f /host/lib/usrp/usrp2/dsp_impl.cpp
parentb1313c9f65ea89c3aa9707538af027da337dcba8 (diff)
downloaduhd-e558283f9ff2550d164d868c8e66a5561c781474.tar.gz
uhd-e558283f9ff2550d164d868c8e66a5561c781474.tar.bz2
uhd-e558283f9ff2550d164d868c8e66a5561c781474.zip
usrp2: lot of work on dual dsp, grep for TODOs before continuing
Diffstat (limited to 'host/lib/usrp/usrp2/dsp_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/dsp_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/dsp_impl.cpp b/host/lib/usrp/usrp2/dsp_impl.cpp
index ef9b5064c..cdd559e94 100644
--- a/host/lib/usrp/usrp2/dsp_impl.cpp
+++ b/host/lib/usrp/usrp2/dsp_impl.cpp
@@ -40,7 +40,7 @@ struct usrp2_mboard_impl::dsp_impl{
uhd::dict<size_t, bool> continuous_streaming;
};
-void usrp2_mboard_impl::dsp_init(size_t recv_samps_per_packet){
+void usrp2_mboard_impl::dsp_init(void){
//create new dsp impl
_dsp_impl = UHD_PIMPL_MAKE(dsp_impl, ());
@@ -69,7 +69,7 @@ void usrp2_mboard_impl::dsp_init(size_t recv_samps_per_packet){
//setup the rx control registers
_iface->poke32(_iface->regs.rx_ctrl[i].clear_overrun, 1); //reset
- _iface->poke32(_iface->regs.rx_ctrl[i].nsamps_per_pkt, recv_samps_per_packet);
+ _iface->poke32(_iface->regs.rx_ctrl[i].nsamps_per_pkt, _device.get_max_recv_samps_per_packet());
_iface->poke32(_iface->regs.rx_ctrl[i].nchannels, 1);
_iface->poke32(_iface->regs.rx_ctrl[i].vrt_header, 0
| (0x1 << 28) //if data with stream id