--rx-gain option works now only with sound card

This commit is contained in:
Andreas Eversberg 2017-01-29 08:16:10 +01:00
parent 2b4f5bb228
commit f5e9a97c31
2 changed files with 5 additions and 1 deletions

View File

@ -102,7 +102,7 @@ void print_help_common(const char *arg0, const char *ext_usage)
printf(" -g --rx-gain <dB>\n");
printf(" Raise receiver RX level by given gain in dB. This is useful if input\n");
printf(" level of the sound device is too low, even after setting maximum level\n");
printf(" with the mixer settings.\n");
printf(" with the mixer settings. (Works with sound card only.)\n");
printf(" -m --mncc-sock\n");
printf(" Disable built-in call contol and offer socket (to LCR)\n");
printf(" -c --call-device hw:<card>,<device>\n");

View File

@ -53,6 +53,10 @@ int sender_create(sender_t *sender, int kanal, double sendefrequenz, double empf
sender->write_tx_wave = write_tx_wave;
sender->read_rx_wave = read_rx_wave;
/* no gain with SDR */
if (!strcmp(audiodev, "sdr"))
sender->rx_gain = 1.0;
PDEBUG_CHAN(DSENDER, DEBUG_DEBUG, "Creating 'Sender' instance\n");
/* if we find a channel that uses the same device as we do,