From 72d9ed21b557edf114f0ee09cad96c4ddff73a8c Mon Sep 17 00:00:00 2001 From: c vw Date: Wed, 21 Jul 2021 09:55:54 +0200 Subject: [PATCH] added radioberry support --- soapy_discovery.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/soapy_discovery.c b/soapy_discovery.c index c459ac0..f571f5b 100644 --- a/soapy_discovery.c +++ b/soapy_discovery.c @@ -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,""); } -- 2.45.2