Steve Markgraf
6ee5573606
rtl_tcp: make all global variables static
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
89f73b183f
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>
11 years ago
Steve Markgraf
5b0137abaf
lib: handle events after canceling transfers
...
Otherwise the new transfer status does not propagate
into the xfer->status and we try to cancel all transfers
twice.
Also replace the ifdefs with a single macro for backwards
compatibility.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
929beafc6e
lib: only print to stderr in tuner_r82xx_set_pll()
...
Found by keenerd.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
50743b1ccb
remove unused variables, type fixes
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
0a90c7d417
rtl_test: update copyright header
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
f2be2f945b
rtl_sdr: clean up getopt-string
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Michael Tatarinov
1cc9d64d98
rtl_test: refactoring and optimization for PPM error
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Denys Berkovskyy
2c171630fa
lib: add missing 'goto' in tuner detection code
...
Add missing ‘goto’ to avoid checks for other tuners when
R828D tuner is found.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
bf92121aff
unbreak 'make distcheck' with automake
...
Thanks to zecke for pointing this out.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
c25f9cbc38
rtl_tcp: fix warning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
4f31e5f560
rtl_fm/rtl_test: fix build with MSVC after recent changes
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
a2bc5b5117
lib/cmake: check for libusb_handle_events_timeout_completed()
...
libusb < 1.0.9 doesn't have libusb_handle_events_timeout_completed(),
but libusb <= 1.0.8 doesn't have version.h, so we need to check
for the function.
The cmake-code was borrowed from UHD, which also checks
for libusb_error_name(), we add that as well since it might come
handy later on.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
929972f835
lib: add SVEON STV27, sort device list
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
3409c0315f
lib: speed up exiting from async handler
...
Now we're using libusb_handle_events_timeout_completed()
instead of the deprecated libusb_handle_events_timeout(),
and notify our async state machine when rtlsdr_cancel_async()
is called. This speeds up exiting from any program that uses the
device asynchronously.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
e90cd17d36
rtl_fm: overhaul
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
f459214894
rtl_power: fix dBm math
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
835bd23542
rtl_test: useful ppm
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
8520c7c3d7
rtl_adsb: fix threading
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
27c0929939
utils: convenience functions
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
003bd51167
lib: check for validity of sample rates
...
Thanks to Joris van Rantwijk for finding what seems to be
a hardware limitation/bug (bit 28 of the rsamp register being
forced to the value of bit 27).
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
d683b128f9
lib: abort if submitting transfer fails, don't deadlock when cancelling fails
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
3ab6fffbdd
rtl_power: MSVC 2010 doesn't have log2()
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Hoernchen
7855c7c876
rtl_tcp: clean up error handling
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
67302f4665
lib: add yet another Terratec OEM stick
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
fca2b7d52f
rtl_power: apply first series of patches
...
* fix typos
* droop compensation
* improve sample rates, peak hold
* direct sampling
* offset tuning
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
1050b96b47
lib: add OEM versions of Terratec NOXON sticks
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
5f38c0519d
change device name of OEM dongles
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
e1bf239a6d
lib: add KWorld KW-UB450-T to device list
...
The TUA9001 tuner it uses is unsupported
at the moment, though.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Jiri Pinkava
a42659602d
lib: use FIR coefficients instead of magic + documentation
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
f17818f737
rtl_test: use static instead of global var
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
33427f7f31
rtl_eeprom: add note regarding necessary replug of device
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
aced2dbd0e
rtl_fm/power: unbreak MinGW build
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
fbfa127889
tuner_r82xx: enable multi-byte I2C transfers
...
This should speed some multi register reads up a bit.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
360dd369bd
add Sveon STV21 stick to device list
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
c5b8a21300
rtl_power: more lowpass options
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
8f1d108122
rtl_power: nicer errors, low pass, low bw
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
968b6fbfdc
rtl_power: clean ^C, cropped bins, +32k bins
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
1cdc3a02fd
tuner_r82xx: set init_done after init
...
This broke r82xx_standby().
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
a1e55db1fe
r82xx: make new driver build with MSVC
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
86be727e52
lib: declare fir coefficients as constant
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
015c78a4ca
remove e4k-specific I2C functions from library
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
aefd8b7d58
add Astrometa DVB-T/DVB-T2 stick
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
e61731d230
add support for R828D tuner
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
230930e975
use new driver for R8XX tuners
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Hoernchen
dbede4e3c0
tools: play nice with mingw/cygwin
11 years ago
Hoernchen
7614a4d684
tools: minor win fix
11 years ago
Kyle Keen
dbc49549a0
add new tool: rtl_power
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Howard Su
53775a2ebf
rtl_adsb: remove floats for more speed
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Kyle Keen
b70720b9b6
rtl_fm: set nearest gain
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago