aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-07 16:53:28 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:00:52 +0100
commitfee4846c3f505081c37094c29cd21a483c030500 (patch)
tree99123cbfd5558dd61011660a8034a5a404e499f4 /src/amps
parent8b9277615dce4fdbcb70df5280f4fcb4e8ac274f (diff)
SDR forces default settings: emphasis and FSK polarity
Diffstat (limited to 'src/amps')
-rw-r--r--src/amps/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amps/main.c b/src/amps/main.c
index e97c5d4..da4a37f 100644
--- a/src/amps/main.c
+++ b/src/amps/main.c
@@ -325,6 +325,12 @@ int main(int argc, char *argv[])
if (i == num_kanal)
fprintf(stderr, "You did not define any VC (voice) channel. You will not be able to make any call.\n");
+ /* SDR always requires emphasis */
+ if (!strcmp(audiodev[0], "sdr")) {
+ do_pre_emphasis = 1;
+ do_de_emphasis = 1;
+ }
+
if (!do_pre_emphasis || !do_de_emphasis) {
fprintf(stderr, "*******************************************************************************\n");
fprintf(stderr, "I strongly suggest to let me do pre- and de-emphasis (options -p -d)!\n");
@@ -338,6 +344,8 @@ int main(int argc, char *argv[])
polarity = 1; /* positive */
else if (!strcmp(flip_polarity, "yes"))
polarity = -1; /* negative */
+ if (!strcmp(audiodev[0], "sdr"))
+ polarity = 1; /* SDR is always positive */
else {
fprintf(stderr, "You must define, if the the TX deviation polarity has to be flipped. (-F yes | no) See help.\n");
exit(0);