Steve Markgraf
a943a2ed25
tuner_fc001x: check if PLL values are within boundaries
...
This fixes the issue of the FC0013 locking up at frequencies
between 928.0 and 950.0 MHz, which happened because
the numerator of the fraction exceeded its 5 bit limit.
For the tuner to behave normally again, the dongle needed
to be replugged.
For the FC0013 this now results in a small gap between
948.6 MHz and 950.0 MHz, where no valid PLL values
are existant.
For the FC0012 tuning is aborted when the maximum
frequency has been reached (948.6 MHz).
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
01d8d308fc
disable second ADC in IF mode, make input selectable in DS-mode
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
519406264c
make rtlsdr_close() build on win32 again
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
fc5881d4cd
add support for direct sampling mode
...
This commit adds the function rtlsdr_set_direct_sampling()
which can be used to enable/disable a mode where the
RTL2832 acts as a direct sampling receiver.
This mode disables the tuner, and by attaching a long
wire, or better, a 50Ω to 200Ω transformer and a lowpass-
filter to the In-phase ADC input (pin 1 or 2 of the RTL2832,
whereas pin 1 is at the molded dot) it is possible to listen to
shortwave radio stations. The coupling capacitors can be
left in place, but for better results they should be removed.
Tuning in this mode is done with the DDC, and since the
ADC samples with 28.8 MHz, tuning is possible from 0 to
28.8 MHz.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
1533422f98
rtl_fm: half the oversample bugs
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
a8e7c7b21e
rtl_fm: Axiomatic's automatic termination
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
f4a8a570c4
rtl_fm: fix auto/manual gain
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
c792c4aeac
rtl_fm: bugs found by Axiomatic, alkw0ia and cgommer
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
0c3c356d19
tuner_r820t: don't perform IMR calibration on init
...
This takes simply too much time (almost 3 seconds)
and doesn't really seem to make any difference for our
use case.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
5a26bd51e7
add initial support for the R820T tuner
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
5f88049c0c
rtlsdr_i2c_rad_reg: fix uninitialized variable
...
This could lead to a misdetection of the tuner on some
platforms (E4K instead of FC0013 on the raspberry pi).
Thanks to Christoph Gommel for reporting this issue.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Dimitri Stolnikov
22b9d82fb5
implement a more robust cancelation mechanism of async reader
12 years ago
Dimitri Stolnikov
b49a8336ee
disable e4k enhanced mixer gain as it seems to have no effect
12 years ago
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
Hoernchen
2b8dfe43f8
fix win32 build
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
ec925a64ad
rtl_fm: disable win build for now, install rtl_fm
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
de978c3b3a
rtl_fm: fix typo that caused warning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
f7f02836c4
rtl_fm: use getopt on win32 as well
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
374abaebb8
rtl_fm: add experimental options
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
d2f8faa204
rtl_fm: disabling fast_atan2() for now, too noisy
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
62cc815863
rtl_fm: crude integer atan2, around 40% faster
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
6e80117205
rtl_fm: missed a var init
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
d56267a42f
rtl_fm: tweaks for nicer scanning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
c3dde1db91
rtl_fm: multithreaded and frequency scanning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
defa7af74b
rtl_fm: broken multi freq scanning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
6a9f5c14c2
rtl_fm: add -E for optional lower edge tuning
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
37f5559d1c
rtl_fm: satisfactory squelch
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
fc390b3224
build rtl_fm
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Kyle Keen
6328e11da6
rtl_fm: prototype FM demod
...
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>
12 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
304c7c863d
rtl_test: tuner PLL benchmark only works with E4000
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
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
6aec27c6d0
tuner_e4k: relicense driver under GPLv2+
...
All authors have agreed to relicense the driver under
GPLv2+, for easing integration in other projects
(such as V4L).
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
3838df8669
rtl_tcp: ignore SIGPIPE
...
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
Dimitri Stolnikov
d5bfa3867f
print the frequency for which the PLL couldn't lock
13 years ago
Steve Markgraf
352e50df43
add PID for Zaapa ZT-MINDVBZP
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago