aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/call.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-08-19 12:27:05 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-09-01 18:42:46 +0200
commit743d147d1672837595ae1d6aa024522f4a011614 (patch)
tree50c44e565e00700d90338835e681cbb1dccf8e9b /src/common/call.c
parent1c2e9180a2db989f26c5cff01eaa6ef12bb45011 (diff)
SDR: Turn TX power off if requested by network
The power level is ramped smoothly within 1 ms up or down. R2000, AMPS and C-Netz turn off power when voice channel is not i use. C-Netz turns off power between OgK timeslots.
Diffstat (limited to 'src/common/call.c')
-rw-r--r--src/common/call.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/call.c b/src/common/call.c
index b7294ab..54e52d5 100644
--- a/src/common/call.c
+++ b/src/common/call.c
@@ -690,6 +690,7 @@ void process_call(int c)
/* handle audio, if sound device is used */
sample_t samples[call.latspl + 10], *samples_list[1];
+ uint8_t *power_list[1];
int count;
int rc;
@@ -725,7 +726,8 @@ void process_call(int c)
jitter_load(&call.dejitter, samples, count);
}
samples_list[0] = samples;
- rc = sound_write(call.sound, samples_list, count, NULL, NULL, 1);
+ power_list[0] = NULL;
+ rc = sound_write(call.sound, samples_list, power_list, count, NULL, NULL, 1);
if (rc < 0) {
PDEBUG(DSENDER, DEBUG_ERROR, "Failed to write TX data to sound device (rc = %d)\n", rc);
if (rc == -EPIPE)