forked from pool/rtl-sdr
28 lines
843 B
Diff
28 lines
843 B
Diff
|
From 1dff8e0b4c5681cf2cbc6d4ab0aa0bee30c5ed09 Mon Sep 17 00:00:00 2001
|
||
|
From: Benjamin Larsson <banan@ludd.ltu.se>
|
||
|
Date: Mon, 17 Feb 2020 01:20:24 +0100
|
||
|
Subject: [PATCH] lib: enable better UHF reception (>862MHz) for FC0013
|
||
|
|
||
|
---
|
||
|
src/tuner_fc0013.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/src/tuner_fc0013.c b/src/tuner_fc0013.c
|
||
|
index 78b696e..5984dfb 100644
|
||
|
--- a/src/tuner_fc0013.c
|
||
|
+++ b/src/tuner_fc0013.c
|
||
|
@@ -248,11 +248,11 @@ int fc0013_set_params(void *dev, uint32_t freq, uint32_t bandwidth)
|
||
|
if (ret)
|
||
|
goto exit;
|
||
|
|
||
|
- /* disable UHF & enable GPS */
|
||
|
+ /* enable UHF & disable GPS */
|
||
|
ret = fc0013_readreg(dev, 0x14, &tmp);
|
||
|
if (ret)
|
||
|
goto exit;
|
||
|
- ret = fc0013_writereg(dev, 0x14, (tmp & 0x1f) | 0x20);
|
||
|
+ ret = fc0013_writereg(dev, 0x14, (tmp & 0x1f) | 0x40);
|
||
|
if (ret)
|
||
|
goto exit;
|
||
|
}
|