summaryrefslogtreecommitdiff
path: root/src/librtlsdr.c
AgeCommit message (Collapse)Author
2012-09-13add support for direct sampling modeSteve Markgraf
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>
2012-09-08add initial support for the R820T tunerSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-08-10rtlsdr_i2c_rad_reg: fix uninitialized variableSteve Markgraf
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>
2012-08-08implement a more robust cancelation mechanism of async readerDimitri Stolnikov
2012-08-05disable e4k enhanced mixer gain as it seems to have no effectDimitri Stolnikov
2012-08-02return RTLSDR_TUNER_UNKNOWN (0) on failure of rtlsdr_get_tuner_typeDimitri Stolnikov
2012-07-21don't print i2c read/write errors for nowSteve Markgraf
During autodetection of the tuner they are normal and may cause confusion. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-20add pid of MyGica TD312 stickSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-16add debug messages to rtlsdr_read/write_arraySteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-09disable sample rate correction until we find a proper solutionDimitri Stolnikov
2012-07-08rtlsdr_set_tuner_if_gain(): enable i2c repeaterSteve Markgraf
Thanks to Stefan Sydow for noticing this bug. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-08apply frequency correction value on the xtal clock directlyDimitri Stolnikov
by using this approach both, the tuning frequency and the sample rate should be corrected at the same time.
2012-07-07add PIDs for 2 variants of the Terratex NOXON dongleSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-07disable DAGC by default, add control functionSteve Markgraf
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>
2012-07-07have *_write_reg() functions pass through the return valueSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-05add api function to control the IF gain for E4000 tunersDimitri Stolnikov
2012-06-22init: disable 4 MHz clock outputSteve Markgraf
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>
2012-06-13fix symbol visibility for automake buildsDimitri Stolnikov
2012-06-09tuner_fc0012: add manual gain supportSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-06-07add another PID for Noxon v1 stickSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-06-03correctly clear DDC shift and if_freq registersSteve Markgraf
This fixes the 2 kHz LO shift. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-06-02introduce getters for tuner parameters (gain, type)Dimitri Stolnikov
2012-05-30add PID for Zaapa ZT-MINDVBZPSteve Markgraf
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-29tuner_fc0012: use new cleaned-up driverSteve Markgraf
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>
2012-05-26cache real sample rate with 1Hz resolution instead of the desired rateDimitri Stolnikov
2012-05-25tuner_fc0013: use new cleaned-up driverSteve Markgraf
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>
2012-05-21Add support for PROlectrix dongleDavid J. Fiddes
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>
2012-05-20introduce api function to read usb string descriptorsDimitri Stolnikov
This API allows to read manufacturer and product names as well as the serial number advertized by the device on the bus.
2012-05-17add an initial version of rtl_testSteve Markgraf
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>
2012-05-17#include <math.h> was not needed.Christian Vogel
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-17Using a #define for constant 2^22 (not pow())Christian Vogel
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>
2012-05-17rename rtl-sdr.c to librtlsdr.cSteve Markgraf
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>