]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
added radioberry support
authorc vw <dl1ycf@darc.de>
Wed, 21 Jul 2021 07:55:54 +0000 (09:55 +0200)
committerc vw <dl1ycf@darc.de>
Wed, 21 Jul 2021 07:55:54 +0000 (09:55 +0200)
soapy_discovery.c

index c459ac0fedb85130274a99959bdd8dc9afa3786d..f571f5b1c5d8beafbc2a333ae803ed9b31497141 100644 (file)
@@ -126,8 +126,10 @@ static void get_info(char *driver) {
   }
   if(strcmp(driver,"rtlsdr")==0) {
     sample_rate=1536000;
+  } else if(strcmp(driver,"radioberry")==0) {
+    sample_rate=48000;
   }
-  
+
   fprintf(stderr,"\n");
   free(rx_rates);
   fprintf(stderr,"sample_rate selected %d\n",sample_rate);
@@ -244,6 +246,8 @@ static void get_info(char *driver) {
     }
     if(strcmp(driver,"lime")==0) {
       sprintf(discovered[devices].info.soapy.version,"fw=%s gw=%s hw=%s p=%s", fw_version, gw_version, hw_version, p_version);
+    } else if (strcmp(driver,"radioberry")==0) {
+      sprintf(discovered[devices].info.soapy.version,"fw=%s gw=%s", fw_version, gw_version);
     } else {
       strcpy(discovered[devices].info.soapy.version,"");
     }