Just realized my patch attachments are getting scrubbed by the list.
Hopefully this plain text paste works.

diff --git a/lib/rtl/rtl_source_c.cc b/lib/rtl/rtl_source_c.cc
index 5e3306b..644bf7a 100644
--- a/lib/rtl/rtl_source_c.cc
+++ b/lib/rtl/rtl_source_c.cc
@@ -455,6 +455,8 @@ double rtl_source_c::get_sample_rate()
 osmosdr::freq_range_t rtl_source_c::get_freq_range( size_t chan )
 {
   osmosdr::freq_range_t range;
+  char manufact[256];
+  char product[256];

   if (_dev) {
     if (_no_tuner) {
@@ -464,6 +466,8 @@ osmosdr::freq_range_t
rtl_source_c::get_freq_range( size_t chan )
       return range;
     }

+    rtlsdr_get_usb_strings( _dev, manufact, product, NULL );
+
     enum rtlsdr_tuner tuner = rtlsdr_get_tuner_type(_dev);

     if ( tuner == RTLSDR_TUNER_E4000 ) {
@@ -478,6 +482,8 @@ osmosdr::freq_range_t
rtl_source_c::get_freq_range( size_t chan )
       range += osmosdr::range_t( 438e6, 924e6 );
     } else if ( tuner == RTLSDR_TUNER_R820T ) {
       range += osmosdr::range_t( 24e6, 1766e6 );
+    } else if ( tuner == RTLSDR_TUNER_R828D && strcmp(manufact,
"RTLSDRBlog") == 0 && strcmp(product, "Blog V4") == 0 ) {
+      range += osmosdr::range_t( 0e6, 1766e6 );
     } else if ( tuner == RTLSDR_TUNER_R828D ) {
       range += osmosdr::range_t( 24e6, 1766e6 );
     }


Regards,
Carl



On Thu, Aug 31, 2023 at 12:06 AM <[email protected]> wrote:
>
> Send osmocom-sdr mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via email, send a message with subject or
> body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of osmocom-sdr digest..."
>
> Today's Topics:
>
>    1. [PATCH] Adjust gr-osmosdr lower tuning limit for the RTL-SDR Blog V4
>       (Carl Laufer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 30 Aug 2023 23:55:57 +1200
> From: Carl Laufer <[email protected]>
> Subject: [PATCH] Adjust gr-osmosdr lower tuning limit for the RTL-SDR
>         Blog V4
> To: [email protected]
> Message-ID:
>         <CAP8SZq0i9JGFpBgvgHLfBeoTUoec0+XGoVh3Vr=_gqyqije...@mail.gmail.com>
> Content-Type: multipart/mixed; boundary="00000000000077e36a0604229e75"
>
> Patch to detect the RTL-SDR Blog V4 in gr-osmosdr, and set the lower limit
> to 0 MHz.
>
> Regards,
> Carl
> -------------- next part --------------
> A message part incompatible with plain text digests has been removed ...
> Name: not available
> Type: text/html
> Size: 294 bytes
> Desc: not available
> -------------- next part --------------
> A message part incompatible with plain text digests has been removed ...
> Name: blog_v4_lower_range.patch
> Type: text/x-patch
> Size: 1195 bytes
> Desc: not available
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> osmocom-sdr mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
>
> ------------------------------
>
> End of osmocom-sdr Digest, Vol 92, Issue 4
> ******************************************

Reply via email to