aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-26 11:34:27 -0800
committerJosh Blum <josh@joshknows.com>2011-01-26 11:34:27 -0800
commit2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d (patch)
tree17637bc9418d607babdd98c555d2e130f457052a /host/lib/usrp/usrp2/usrp2_impl.cpp
parent789cca28e8f920be56840b29e6e8cf0db1ba61aa (diff)
parentdb1fd30da6def1269eae62b5ccd3c81c28ae000f (diff)
downloaduhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.tar.gz
uhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.tar.bz2
uhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.zip
Merge branch 'macos'
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