aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_fm.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2014-02-10 23:57:19 +0100
committerSteve Markgraf <steve@steve-m.de>2014-02-10 23:57:19 +0100
commit89f73b183f2dac9c0dd75beca4cf2f77f20c4a36 (patch)
treee523cf4e70cc1cc2637535caf79ccfc9afeb27bd /src/rtl_fm.c
parent5b0137abaf179e6ca4e90a6ea987a61823a09bb1 (diff)
lib: change default number of transfers to 15
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. Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_fm.c')
-rw-r--r--src/rtl_fm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rtl_fm.c b/src/rtl_fm.c
index 9831431..0f7ac38 100644
--- a/src/rtl_fm.c
+++ b/src/rtl_fm.c
@@ -76,7 +76,6 @@
#include "convenience/convenience.h"
#define DEFAULT_SAMPLE_RATE 24000
-#define DEFAULT_ASYNC_BUF_NUMBER 32
#define DEFAULT_BUF_LENGTH (1 * 16384)
#define MAXIMUM_OVERSAMPLE 16
#define MAXIMUM_BUF_LENGTH (MAXIMUM_OVERSAMPLE * DEFAULT_BUF_LENGTH)
@@ -807,8 +806,7 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
static void *dongle_thread_fn(void *arg)
{
struct dongle_state *s = arg;
- rtlsdr_read_async(s->dev, rtlsdr_callback, s,
- DEFAULT_ASYNC_BUF_NUMBER, s->buf_len);
+ rtlsdr_read_async(s->dev, rtlsdr_callback, s, 0, s->buf_len);
return 0;
}