--rx-gain option works now only with sound card
This commit is contained in:
parent
2b4f5bb228
commit
f5e9a97c31
|
@ -102,7 +102,7 @@ void print_help_common(const char *arg0, const char *ext_usage)
|
||||||
printf(" -g --rx-gain <dB>\n");
|
printf(" -g --rx-gain <dB>\n");
|
||||||
printf(" Raise receiver RX level by given gain in dB. This is useful if input\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(" 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(" -m --mncc-sock\n");
|
||||||
printf(" Disable built-in call contol and offer socket (to LCR)\n");
|
printf(" Disable built-in call contol and offer socket (to LCR)\n");
|
||||||
printf(" -c --call-device hw:<card>,<device>\n");
|
printf(" -c --call-device hw:<card>,<device>\n");
|
||||||
|
|
|
@ -53,6 +53,10 @@ int sender_create(sender_t *sender, int kanal, double sendefrequenz, double empf
|
||||||
sender->write_tx_wave = write_tx_wave;
|
sender->write_tx_wave = write_tx_wave;
|
||||||
sender->read_rx_wave = read_rx_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");
|
PDEBUG_CHAN(DSENDER, DEBUG_DEBUG, "Creating 'Sender' instance\n");
|
||||||
|
|
||||||
/* if we find a channel that uses the same device as we do,
|
/* if we find a channel that uses the same device as we do,
|
||||||
|
|
Loading…
Reference in New Issue