Skip to content

Commit

Permalink
hooks for sdrplay if they ever get their act together and release an …
Browse files Browse the repository at this point in the history
…open source library
  • Loading branch information
ka9q committed Aug 15, 2023
1 parent a3e893d commit 155ffbc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ static int loadconfig(char const *file);
static int setup_hardware(char const *sname);
static void *rtcp_send(void *);

// In sdrplay.c
int sdrplay_setup(struct frontend *,dictionary *,char const *);
int sdrplay_startup(struct frontend *);
double sdrplay_tune(struct frontend *,double);

// In rx888.c
int rx888_setup(struct frontend *,dictionary *,char const *);
int rx888_startup(struct frontend *);
Expand Down Expand Up @@ -476,6 +481,15 @@ static int setup_hardware(char const *sname){
Frontend.setup = rtlsdr_setup;
Frontend.start = rtlsdr_startup;
Frontend.tune = rtlsdr_tune;
#if 0
// The sdrplay library is still proprietary and object-only, so I can't bundle it in ka9q-radio
// Everything else either has a standard Debian package or I have information to program them directly.
// To hell with vendors who deliberately make their products hard to use when they have plenty of competition.
} else if(strcasecmp(device,"sdrplay") == 0){
Frontend.setup = sdrplay_setup;
Frontend.start = sdrplay_startup;
Frontend.tune = sdrplay_tune;
#endif
} else {
fprintf(stdout,"device %s unrecognized\n",device);
return -1;
Expand Down

0 comments on commit 155ffbc

Please sign in to comment.