diff options
author | eb | 2007-05-07 21:36:54 +0000 |
---|---|---|
committer | eb | 2007-05-07 21:36:54 +0000 |
commit | b06cd32d19dffe3b3fea0abb5a44d8cb57e7dfda (patch) | |
tree | b63be90975f1798cf0a0127731f8cab48c55d32c /usrp/host/lib/legacy/fusb_sysconfig_generic.cc | |
parent | b10b4d157f059773d0dd665d040c44453b14501e (diff) | |
download | gnuradio-b06cd32d19dffe3b3fea0abb5a44d8cb57e7dfda.tar.gz gnuradio-b06cd32d19dffe3b3fea0abb5a44d8cb57e7dfda.tar.bz2 gnuradio-b06cd32d19dffe3b3fea0abb5a44d8cb57e7dfda.zip |
Added fusb_sysconfig::default_block_size (<= max_block_size).
Changed Linux default_block_size to 4KB, and default buffersize to 1MB.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5253 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp/host/lib/legacy/fusb_sysconfig_generic.cc')
-rw-r--r-- | usrp/host/lib/legacy/fusb_sysconfig_generic.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usrp/host/lib/legacy/fusb_sysconfig_generic.cc b/usrp/host/lib/legacy/fusb_sysconfig_generic.cc index d336cb946..31022c14f 100644 --- a/usrp/host/lib/legacy/fusb_sysconfig_generic.cc +++ b/usrp/host/lib/legacy/fusb_sysconfig_generic.cc @@ -24,7 +24,7 @@ #include <fusb_generic.h> static const int MAX_BLOCK_SIZE = 16 * 1024; // hard limit -static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB (was 8 MB) +static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB fusb_devhandle * fusb_sysconfig::make_devhandle (usb_dev_handle *udh) @@ -37,6 +37,11 @@ int fusb_sysconfig::max_block_size () return MAX_BLOCK_SIZE; } +int fusb_sysconfig::default_block_size () +{ + return fusb_sysconfig::max_block_size (); +} + int fusb_sysconfig::default_buffer_size () { return FUSB_BUFFER_SIZE; |