Commit Graph

14 Commits

Author SHA1 Message Date
Sultan Qasim Khan 2acb75cff3 r82xx: batch register writes for tuning
Batch six register writes into a single step to speed up retuning.
2024-03-07 17:46:00 -05:00
Sultan Qasim Khan 0b64f07fd5 r82xx: avoid redundant register writes for speed 2024-02-29 12:53:28 -05:00
Oliver Jowett f5978e8871 r82xx: improve tuner precision
Improve tuner precision by calculating the VCO divisor at full precision, not
at kHz resolution. Also replace the manual divison loop with a simpler
fixed-point calculation.
2024-02-29 12:53:27 -05:00
rtlsdrblog 138cd052f5 add blog v4 upconverter gpio switch
In future blog v4 production batches (out in several months time), it
will be possible to turn off the upconverter when tuned outside of the
HF bands. The code controls the GPIOs to turn off the upconverter
when it is not in use.
2023-11-02 12:28:34 +01:00
rtlsdrblog 1261fbb285 add rtl-sdr blog v4 support 2023-08-23 00:34:08 +02:00
Derrick Pallas d794155ba6 tuner_r82xx: fix short-write in r82xx_read
In r82xx_read, there is a 1-byte I2C write followed by the I2C read.  If
this I2C write fails, r82xx_read correctly bails out but may return 0.
Callers that check whether (rc < 0) will assume that the buffer was written
when it has not been, e.g. in r82xx_set_tv_standard where

	priv->fil_cal_code = data[4] & 0x0f;

consumes a garbage value for data[4].

This change resolves that issue by copying the error path from r82xx_write.
2020-03-18 23:51:46 +01:00
Steve Markgraf 5c3073f417 tuner_r82xx: turn off loop-through, remove dead code
As pointed out by Carl Laufer on the mailing list,
turning the loop-through output off reduces the
current consumption by 10-20mA which in turn reduces
the heat a bit. So far there seem to be no devices
that have anything connected to the loop-through output.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-25 00:16:38 +02:00
Jiří Pinkava d892279085 Allow setting bandwidth for R820T
This improves SDR performence for nearby channel interference.
As a sideeffect also improves dynamic range becase ADC is not overloaded
by onwanted singlas.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2015-05-16 00:37:17 +02:00
Steve Markgraf 929beafc6e lib: only print to stderr in tuner_r82xx_set_pll()
Found by keenerd.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-08 14:48:24 +01:00
Steve Markgraf 50743b1ccb remove unused variables, type fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:53:24 +01:00
Steve Markgraf 1cdc3a02fd tuner_r82xx: set init_done after init
This broke r82xx_standby().

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-05 20:12:25 +01:00
Steve Markgraf a1e55db1fe r82xx: make new driver build with MSVC
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-04 21:56:20 +01:00
Steve Markgraf e61731d230 add support for R828D tuner
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-04 21:51:35 +01:00
Steve Markgraf 230930e975 use new driver for R8XX tuners
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-04 21:50:02 +01:00