[FFmpeg-cvslog] [ffmpeg-radio] 05/06: avradio/sdrinradio: apply R820T correction only for non direct mode

Michael Niedermayer ffmpeg-git at ffmpeg.org
Thu Jul 27 23:29:28 EEST 2023


This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository libavradio.

commit 5e1c5cbe499f55211c08b53ad58374148ce501ef
Author:     Michael Niedermayer <michael at niedermayer.cc>
AuthorDate: Mon Jul 24 20:22:47 2023 +0200
Commit:     Michael Niedermayer <michael at niedermayer.cc>
CommitDate: Mon Jul 24 20:22:47 2023 +0200

    avradio/sdrinradio: apply R820T correction only for non direct mode
    
    Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavradio/sdrinradio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavradio/sdrinradio.c b/libavradio/sdrinradio.c
index 2865b6a9a6..ab7e786744 100644
--- a/libavradio/sdrinradio.c
+++ b/libavradio/sdrinradio.c
@@ -113,7 +113,7 @@ static int64_t sdrindev_set_frequency_callback(SDRContext *sdr, int64_t freq)
                 } else
                     sdr->current_direct_samp = value;
             }
-            if (e && strstr(e->value, "R820T")) {
+            if (e && strstr(e->value, "R820T") && !strcmp(value, "0")) {
                 //The R820T has a 16 bit fractional PLL which can do only multiplies of 439.45
                 //Its more complex but this approximation works
                 //It has to be noted that SOAPY does not tell us about this, instead saopy



More information about the ffmpeg-cvslog mailing list