From 6f9efc93436808a13bfcaefd2f6bc0b38cb339d3 Mon Sep 17 00:00:00 2001 From: rtlsdrblog Date: Fri, 18 Oct 2019 06:55:36 +0100 Subject: [PATCH] lband opts --- build/install_manifest.txt | 1 - build/src/librtlsdr.a | Bin 98130 -> 98126 bytes build/src/librtlsdr.so.0.6git | Bin 92272 -> 92272 bytes src/tuner_r82xx.c | 14 +++++++++++--- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/build/install_manifest.txt b/build/install_manifest.txt index d22899b..23b4dc6 100644 --- a/build/install_manifest.txt +++ b/build/install_manifest.txt @@ -1,4 +1,3 @@ -/etc/udev/rules.d/rtl-sdr.rules /usr/local/lib/pkgconfig/librtlsdr.pc /usr/local/include/rtl-sdr.h /usr/local/include/rtl-sdr_export.h diff --git a/build/src/librtlsdr.a b/build/src/librtlsdr.a index 145659595c766707530022fe173be37457945e86..b8dcfbe584e6cc4377fec3ff3c31325065fcf1f6 100644 GIT binary patch delta 2305 zcmZ9Mdu&uy5XR4JA1r0Dw}nDsfo@x1%R{+9BPa&8JS+x`OUk24g{7djQeaDcg!t(4 zP%w3cur&h|(yJt5s2cuIOHgB#8b}lah)+;=@8&292^b<0QPyv|m!z`E=6B}IH*@FA znR`#)$old|R^(lpR88fvW{;mdolC2!!&Nc+Fnc1~h7n`-3 zB36P-D`^;3QU$Dprz@)Gr&1SGIB0*T)R7^^86DutrBpQPOPCU#4S5kl^ARGUnaWDs z<%E33+n18RIhWL)j65shEv&GMM^xA@wIInFPW|LgKacgtQ+zRA!{on;qK zpM`u?2@iA;3sncLWSJ4QrHn=CGV<*<)T+!@?KWc?;^cU)tf8X5JCz!n+jF9IHRR2^ zb|ZbzEl}@yvnB4~wi>F+`(CLZ`WuVv9COZ09B@H^Q&7)2$IhiMkw%ljXu3C%a7y;iLrgb0az&561lQ8)cV zBelA~@$Yv0qa@3SlsF0QPm{DB<+W?iXRhNXib&d(2aaz}@R&Dt9=^JQK zh6$~2-%K1Kn5@QWmC@QGFn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O current */ - rc = r82xx_write_reg_mask(priv, 0x12, 0x00, 0xe0); + rc = r82xx_write_reg_mask(priv, 0x12, 0x06, 0xff); if (rc < 0) return rc; } @@ -663,6 +668,9 @@ static int r82xx_sysfreq_sel(struct r82xx_priv *priv, uint32_t freq, rc = r82xx_write_reg_mask(priv, 0x11, cp_cur, 0x38); if (rc < 0) return rc; + + // RTLSDRBLOG. Improve L-band performance by setting PLL drop out to 2.0v + div_buf_cur = 0xa0; rc = r82xx_write_reg_mask(priv, 0x17, div_buf_cur, 0x30); if (rc < 0) return rc; @@ -968,7 +976,7 @@ int r82xx_set_gain(struct r82xx_priv *priv, int set_manual_gain, int gain) return rc; /* set fixed VGA gain for now (16.3 dB) */ - rc = r82xx_write_reg_mask(priv, 0x0c, 0x08, 0x9f); + rc = r82xx_write_reg_mask(priv, 0x0c, 0x08, 0x9f); //init val 0x08 0x0c works well at 1.7 if (rc < 0) return rc;