aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_impl.cpp
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2011-02-01 05:42:36 -0800
committerPhilip Balister <philip@opensdr.com>2011-02-01 05:42:36 -0800
commit781cddee31078e461202c2cf16f3de2f1f236a27 (patch)
treedcd8e1ff8e696dc00b91b425928a3367f05c9a25 /host/lib/usrp/usrp2/usrp2_impl.cpp
parentcd45fb6be615a6f133e2c62a46f7c5eba76f72c1 (diff)
parent52e9c8f8027d0bbe1e6b0f57e30f985613e48be2 (diff)
downloaduhd-781cddee31078e461202c2cf16f3de2f1f236a27.tar.gz
uhd-781cddee31078e461202c2cf16f3de2f1f236a27.tar.bz2
uhd-781cddee31078e461202c2cf16f3de2f1f236a27.zip
Merge branch 'usrp_e100_devel' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e100_devel
Conflicts: host/lib/usrp/usrp_e100/clock_ctrl.cpp
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index 059ddf65f..9ce0f7359 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -202,8 +202,11 @@ static device::sptr usrp2_make(const device_addr_t &device_addr){
//setup the dsp transport hints (default to a large recv buff)
device_addr_t dsp_xport_hints = device_addr;
if (not dsp_xport_hints.has_key("recv_buff_size")){
- //set to half-a-second of buffering at max rate
- dsp_xport_hints["recv_buff_size"] = "50e6";
+ //only enable on platforms that are happy with the large buffer resize
+ #if defined(UHD_PLATFORM_LINUX) || defined(UHD_PLATFORM_WIN32)
+ //set to half-a-second of buffering at max rate
+ dsp_xport_hints["recv_buff_size"] = "50e6";
+ #endif /*defined(UHD_PLATFORM_LINUX) || defined(UHD_PLATFORM_WIN32)*/
}
//create a ctrl and data transport for each address