Merged -r3596:3600 of eb/ra_wb into trunk. This contains the
[debian/gnuradio] / usrp / host / lib / fusb_sysconfig_linux.cc
index f7fc5d63126b08c89c039a8bb8abbcd864d1f25c..468fa9f829d0cf2469ed50a009225145eec8ab20 100644 (file)
  * 
  * You should have received a copy of the GNU General Public License
  * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
  */
 
 #include <fusb.h>
 #include <fusb_linux.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)
 
 fusb_devhandle *
 fusb_sysconfig::make_devhandle (usb_dev_handle *udh)
@@ -35,3 +36,8 @@ int fusb_sysconfig::max_block_size ()
 {
   return MAX_BLOCK_SIZE;
 }
+
+int fusb_sysconfig::default_buffer_size ()
+{
+  return FUSB_BUFFER_SIZE;
+}