diff options
-rw-r--r-- | src/common/main_common.c | 2 | ||||
-rw-r--r-- | src/common/sender.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/common/main_common.c b/src/common/main_common.c index 1ea10d9..c644996 100644 --- a/src/common/main_common.c +++ b/src/common/main_common.c @@ -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"); diff --git a/src/common/sender.c b/src/common/sender.c index f59ad94..2a0744f 100644 --- a/src/common/sender.c +++ b/src/common/sender.c @@ -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, |