diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-02-11 20:06:24 +0100 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-02-11 20:52:56 +0100 |
commit | eb76e356893d17de6b883096087332be25e40318 (patch) | |
tree | fcb2532ec1ec3903acc70d2ae7cb0bdba07ed0f7 /lib/hackrf/hackrf_source_c.cc | |
parent | 154c4ddd5f7726730c606feaea7272310a535007 (diff) |
osmosdr/rtl/miri/hackrf: use 15 buffers by default
folowing rtl-sdr commit 89f73b183f2dac9c0dd75beca4cf2f77f20c4a36
So far we had 32 * 256KB which was a bit overkill, 15 are more than
enough.
15 was chosen instead of 16 because at least on Linux there seems to be
a system-wide limit of 63 transfers (when they are 256KB large), so 4
dongles can be used on a single machine without lowering the default
transfer number.
Diffstat (limited to 'lib/hackrf/hackrf_source_c.cc')
-rw-r--r-- | lib/hackrf/hackrf_source_c.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hackrf/hackrf_source_c.cc b/lib/hackrf/hackrf_source_c.cc index 795a3eb..022af7f 100644 --- a/lib/hackrf/hackrf_source_c.cc +++ b/lib/hackrf/hackrf_source_c.cc @@ -45,7 +45,7 @@ using namespace boost::assign; #define BUF_LEN (16 * 32 * 512) /* must be multiple of 512 */ -#define BUF_NUM 32 +#define BUF_NUM 15 #define BYTES_PER_SAMPLE 2 /* HackRF device produces 8 bit unsigned IQ data */ |