Christian Vogel
73f54be2ed
#include <math.h> was not needed.
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Christian Vogel
589e96e8d8
Using a #define for constant 2^22 (not pow())
...
pow() might require the math library to be linked with
rtl-sdl (e.g. when compiling with clang), even though
it's actually constant.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
c426e94093
rename rtl-sdr.c to librtlsdr.c
...
Having rtl_sdr.c for the application and rtl-sdr.c for the lib
caused a bit of confusion...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
b345963947
add api version information to the library when building with cmake
13 years ago
Dimitri Stolnikov
3198f14f44
fix a typo in Makefile.am
13 years ago
Hoernchen
f7d9e578a0
tuner_e4k: use empty entry instead of offset for if_stage_gain_regs[]
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
8dda694101
rtl_tcp: convert command parameters from network to host byteorder
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
cdfd1cf775
fix a memory leak by unreferencing libusb devices
13 years ago
Steve Markgraf
2ed8375f39
tuner_e4k: allow frequencies above INT_MAX
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
8402124e6f
enable i2c repeater mode before applying filter bandwidth
13 years ago
Dimitri Stolnikov
e042c36cb5
rtl_sdr, rtl_tcp: cleaned up gain handling
13 years ago
Dimitri Stolnikov
b290116ac7
rtl_tcp: add handler for freq correction command
13 years ago
Dimitri Stolnikov
e5adc9a3ad
rtl_tcp: add handlers for sample rate and gain mode commands
13 years ago
Dimitri Stolnikov
9167a01248
consolidate program arguments
13 years ago
Dimitri Stolnikov
e9251da6e2
reset internally cached gain/freq values on setter failure
13 years ago
Dimitri Stolnikov
eded5bf5c3
tuner_e4k: fix a typo in choose_rf_filter function
13 years ago
Steve Markgraf
7931aa76c5
tuner_e4k: replace remaining printfs with fprintf to stderr
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Hoernchen
b6652f33df
uhf appears to work better for ads-b
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
59198d6342
tuner_e4k: fix off-by-one error in e4k_if_gain_set()
...
Thanks to patchvonbraun for providing debug logs
that helped to track this beast down.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
86c34428aa
use new E4000 tuner driver, allow manual gain
...
Many thanks to Hoernchen for making the driver work properly
and adding manual gain!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
0af094070f
add Compro Videomate U680F
...
Thanks to Marek Kroemeke for submitting the patch.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
cec93754a2
use default xtal freq when 0 is given
13 years ago
Steve Markgraf
721085e1ab
fix a -Wuninitialized warning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
bad6fb080b
introduce api to configure crystal oscillator frequency
...
Usually both, the RTL and the tuner ICs use the same clock. Changing the
clock may make sense if you are applying an external clock to the tuner
or to compensate the frequency (and samplerate) error caused by the
original cheap crystal.
This commit covers all tuner drivers except of the Fitipower FC2580
13 years ago
Steve Markgraf
8a1d6d69bd
add Terratec T Stick PLUS
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
5f70efd8d1
return frequency and sample rate as unsigned integers
13 years ago
Hoernchen
eb9a437de7
rtl_tcp: proper linux support
...
as well as some cosmetic fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
e4fef23874
rtlsdr_read_async: buffer length must be multiple of 512
13 years ago
Dimitri Stolnikov
7ba990981b
add a note with patch submission information
13 years ago
Steve Markgraf
35729e7ee4
e4k: disable DC offset correction
...
This was causing the 'pulsing' of the DC offset spike.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
dd68eb2d22
use fixed (smallest possible) bandwidth for FCI tuners
...
also fixes c&p error pointed out by j-pi@seznam.cz
13 years ago
Hoernchen
d55b491c43
add initial version of tcp server
13 years ago
Hoernchen
6b99aedc4d
fix off-by-one in argument handling
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
e07189cea1
add Compro Videomate U650F
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
f182717b76
add Terratec Cinergy T Stick RC (Rev.3)
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
84158553ee
add Compro Videomate U620F (E4K tuner)
...
Thanks to Simeon Miteff for reporting this device.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
7651ff1940
change async cancellation mechnism to make it more reliable
...
- fixes crashes on windows platform while calling rtlsdr_close()
- makes it possible to restart async reads after cancellation
13 years ago
Hoernchen
24a12a44d1
reorder calls to prevent a crash
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Hoernchen
03f3504b41
tell windows that ctrl-c was handled
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Hoernchen
0bc846c34c
make win32 build actually work
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
65ac467941
correct LPF coefficient
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
3ded206470
reset demod after setting samplerate
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
f5f92ae3fa
exit gracefully on SIGPIPE
...
this will properly free all the used memory when working with a pipe and
closing the other end (think of GRC)
13 years ago
Steve Markgraf
3738a6730c
allow user to send data to stdout
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
a58def7f58
allow user to select sync mode
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
7e6d2f55ee
allow user to select block size
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
6eeceba397
use fprintf instead of printf
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
20313516cc
disable bulk read timeouts
...
ideally, we should calculate them depending on the configured sample
rate
13 years ago
Dimitri Stolnikov
1eb1c3e191
new api: rtlsdr_read_async function allows to specify buffer size
...
this commit deprecates rtlsdr_wait_async function
various small fixes are included in this commit
13 years ago
Steve Markgraf
a9900e2b7a
add DIKOM pid/vid
...
Source:
http://forum.ubuntu-it.org/index.php/topic,413840.0.html
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago