aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-29 08:16:10 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:01:16 +0100
commitf5e9a97c313b88ec7b4485adf941f1106ef67b6a (patch)
treeb2459734771871ef0868aa6c7e67d708a3d76880 /src
parent2b4f5bb228bd5416f8bf7d8f9cd9cd49716e7e4a (diff)
--rx-gain option works now only with sound card
Diffstat (limited to 'src')
-rw-r--r--src/common/main_common.c2
-rw-r--r--src/common/sender.c4
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,