From b32e0ab6025a025850dc0079fa6596a96d7295a6 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 9 Oct 2017 20:49:14 +0200 Subject: Implementation of RX level squelch (for A-Netz and B-Netz) Use -S for setting RF level or use -S auto for auto level. When squelch closes, audio is muted. If squelch is closed for some seconds (depending on network), call is released. (RF loss condition) The previous loss detection has been removed --- src/amps/amps.c | 2 +- src/amps/dsp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/amps') diff --git a/src/amps/amps.c b/src/amps/amps.c index 3bc22b6..9fe0c4e 100644 --- a/src/amps/amps.c +++ b/src/amps/amps.c @@ -566,7 +566,7 @@ int amps_create(int channel, enum amps_chan_type chan_type, const char *audiodev PDEBUG(DAMPS, DEBUG_DEBUG, "Creating 'AMPS' instance for channel = %d of band %s (sample rate %d).\n", channel, band, samplerate); /* init general part of transceiver */ - rc = sender_create(&s->sender, channel, amps_channel2freq(channel, 0), amps_channel2freq(channel, 1), audiodev, use_sdr, samplerate, rx_gain, 0, 0, write_rx_wave, write_tx_wave, read_rx_wave, read_tx_wave, loopback, 0, PAGING_SIGNAL_NONE); + rc = sender_create(&s->sender, channel, amps_channel2freq(channel, 0), amps_channel2freq(channel, 1), audiodev, use_sdr, samplerate, rx_gain, 0, 0, write_rx_wave, write_tx_wave, read_rx_wave, read_tx_wave, loopback, PAGING_SIGNAL_NONE); if (rc < 0) { PDEBUG(DAMPS, DEBUG_ERROR, "Failed to init transceiver process!\n"); goto error; diff --git a/src/amps/dsp.c b/src/amps/dsp.c index 2415f0a..f3eb35b 100644 --- a/src/amps/dsp.c +++ b/src/amps/dsp.c @@ -851,7 +851,7 @@ static void sender_receive_audio(amps_t *amps, sample_t *samples, int length) } /* Process received audio stream from radio unit. */ -void sender_receive(sender_t *sender, sample_t *samples, int length) +void sender_receive(sender_t *sender, sample_t *samples, int length, double __attribute__((unused)) rf_level_db) { amps_t *amps = (amps_t *) sender; -- cgit v1.2.3