Dimitri Stolnikov
88cd4b33cf
return RTLSDR_TUNER_UNKNOWN (0) on failure of rtlsdr_get_tuner_type
12 years ago
Steve Markgraf
54fe3eca01
don't print i2c read/write errors for now
...
During autodetection of the tuner they are
normal and may cause confusion.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
3dff6f3c26
add pid of MyGica TD312 stick
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
9d0232385b
add debug messages to rtlsdr_read/write_array
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
42a6592e63
disable sample rate correction until we find a proper solution
13 years ago
Steve Markgraf
2ad7b39e2d
rtlsdr_set_tuner_if_gain(): enable i2c repeater
...
Thanks to Stefan Sydow for noticing this bug.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
f9b5d7b0a6
apply frequency correction value on the xtal clock directly
...
by using this approach both, the tuning frequency and the sample rate
should be corrected at the same time.
13 years ago
Steve Markgraf
7dc15d9fd7
add PIDs for 2 variants of the Terratex NOXON dongle
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
f3cf83e3d7
disable DAGC by default, add control function
...
This adds rtlsdr_set_agc_mode() to enable/disable it.
Thanks to Leif Asbrink for finding this setting.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
98d1b864b6
have *_write_reg() functions pass through the return value
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
6ea029d92c
add api function to control the IF gain for E4000 tuners
13 years ago
Steve Markgraf
fc736ae67f
init: disable 4 MHz clock output
...
The pin where this clock is outputted is quite close to the
ADC inputs, so better disable it.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
b09628b3e8
fix symbol visibility for automake builds
13 years ago
Steve Markgraf
e5afd9894d
tuner_fc0012: add manual gain support
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
1686a0f905
add another PID for Noxon v1 stick
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
9d58aec8cf
correctly clear DDC shift and if_freq registers
...
This fixes the 2 kHz LO shift.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
7bd3933c41
introduce getters for tuner parameters (gain, type)
13 years ago
Steve Markgraf
352e50df43
add PID for Zaapa ZT-MINDVBZP
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
4031d6ed04
tuner_fc0012: use new cleaned-up driver
...
The driver was taken from http://git.linuxtv.org/ and adapted
for librtlsdr. Manual gain will be added in a follow-up commit.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
bcb8f2b28a
cache real sample rate with 1Hz resolution instead of the desired rate
13 years ago
Steve Markgraf
6d34b04b42
tuner_fc0013: use new cleaned-up driver
...
The driver was taken from http://git.linuxtv.org/ and adapted
for librtlsdr. Also, fc0013_set_gain() was added.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
David J. Fiddes
cf8e78646a
Add support for PROlectrix dongle
...
Incorporate support for the PROlectrix DV107669 which appears to
be another variant of G-Tek RTL2832U device. This has a FC0012
tuner.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
505f40d9a0
introduce api function to read usb string descriptors
...
This API allows to read manufacturer and product names as well as the
serial number advertized by the device on the bus.
13 years ago
Steve Markgraf
fdc7bc978b
add an initial version of rtl_test
...
This tool allows to check for lost samples (and thus check the USB
connection), as well as benchmark the Elonics E4000 tunable range.
(-t switch)
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
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
cdfd1cf775
fix a memory leak by unreferencing libusb devices
13 years ago
Dimitri Stolnikov
8402124e6f
enable i2c repeater mode before applying filter bandwidth
13 years ago
Dimitri Stolnikov
e9251da6e2
reset internally cached gain/freq values on setter failure
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
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
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
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
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
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
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
Steve Markgraf
3051aa4eef
use uint32_t instead of int for frequency
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago