Steve Markgraf
50743b1ccb
remove unused variables, type fixes
...
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
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
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
Steve Markgraf
67302f4665
lib: add yet another Terratec OEM stick
...
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
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
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
Steve Markgraf
cb8907dd4e
add DigitalNow Quad DVB-T PCI-E card
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Steve Markgraf
8c3a99c8f7
lib: add ASUS U3100MINI_PLUS_V2 to device list
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
3e17ef2b55
lib: don't detach kernel driver by default
...
Since this feature also disconnects running instances
of librtlsdr that claimed the device, it is now disabled
by default and can only be enabled at compile time.
To enable it when building with cmake:
cmake . -DDETACH_KERNEL_DRIVER=ON
To enable it when building with automake:
./configure --enable-driver-detach
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
e202d0f92a
lib: add WinFast DTV Dongle mini D
...
Thanks to Alan Beard for reporting.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
3c4aa46f5a
lib: detach and reattach kernel driver if needed
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
f1803fe10f
lib: special handling of dongle disconnect for OS != win32
...
libusb reacts differently to a device loss during runtime,
and sporadic errors can happen when starting a second
instance interfacing another dongle, thus we need to wait
for all transfers to fail before assuming the dongle has
been removed.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b656896f66
lib: remove "e.g. hama nano" from the default device description
...
This caused some confusion...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Hoernchen
3cbf139261
exit if our usb device disappears
12 years ago
Steve Markgraf
84f0a9084b
lib: enable standby mode of e4k and r820t on exit
...
Since the R820T is a power hog and gets quite hot,
this makes sense, especially when being battery-
powered.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Hoernchen
c338e5a8c1
let's not depend on libusb >= 1.0.9, avoid libusb_error_name()
12 years ago
Hoernchen
5d2d5a4ae4
more verbose error message if opening the usb device fails
12 years ago
Hoernchen
f1ac20c371
disable force canceling for now to prevent crashes
12 years ago
Steve Markgraf
7840ec21d3
lib: reset device if needed
...
This improves the situation on hosts with flaky host
controllers like the Raspberry Pi and the WR703N.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
4b057fea0f
rtlsdr_set_sample_rate(): don't access dev structure before checking for NULL
...
Thanks to Derek Lieber for reporting this bug.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Dimitri Stolnikov
314683a51e
librtlsdr: remove unneeded casting
...
Signed-off-by: Hoernchen <la@tfc-server.de>
12 years ago
Steve Markgraf
d3c9015d26
lib: add rtlsdr_get_index_by_serial()
...
This allows to open a device by a name (serial number string)
that has been programmed with rtl_eeprom -s.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b85ffcfea5
add library support for EEPROM access and tool for modification
...
rtl_eeprom can be used to modify the USB descriptor
strings etc.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
ac05f9084c
make sure offset tuning works with gr-osmosdr
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
105e77c5d9
add vid/pid of PixelView PV-DT235U(RN)
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
ed449bc04d
add PID of MSI DigiVox Micro HD
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
25789493c6
tuner_r820t: add manual RF gain setting
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
c5d47b7f04
e4000_init(): use corrected xtal frequency
...
Otherwise the tuner would use the uncorrected xtal value
after enabling and disabling the direct sampling mode
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
9b8b0e53f6
add getters for direct sampling and offset tuning mode
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
22549e0da0
rtlsdr_set_direct_sampling(): fix issue when switching between inputs
...
Switching back from input 2 to 1 didn't work.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b70c7d99f1
add function for offset tuning with zero-IF tuners
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
1e67d2a9a3
rtlsdr_demod_write_reg(): return 0 on success
...
Thanks to DreamNik for reporting this issue.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
28ea914422
add new product ID
...
thanks to Andrew Harrison for reporting it.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b4e48d9555
rtlsdr_init_baseband: initialize possibly uninitialized registers
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
a48f48e3b1
correct sample frequency with ppm offset
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
35263d0df3
rtlsdr_set_direct_sampling: reset IF freq to 0 on zero-IF tuners
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
143b103061
tuner_fc0013: fix and improve manual LNA gain
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago