diff mbox series

[FFmpeg-devel,5/6] avradio/sdrinradio: apply R820T correction only for non direct mode

Message ID 20230724183535.2677937-5-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/6] avradio/sdrinradio: Check tuner before applying rtlsdr frequency correction | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Michael Niedermayer July 24, 2023, 6:35 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavradio/sdrinradio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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