From ca6b83c967a615e3008e29940afe37018f731cf8 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sun, 1 Mar 2026 11:22:15 +0100 Subject: [PATCH] [fix](trx-backend-soapysdr): raise wfm stereo matrix gain to unity Output gain clamp catches any peaks from full-deviation signals. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stan Grams --- src/trx-server/trx-backend/trx-backend-soapysdr/src/demod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod.rs b/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod.rs index 42b2278..c52b349 100644 --- a/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod.rs +++ b/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod.rs @@ -33,7 +33,7 @@ const STEREO_SEPARATION_PHASE_TRIM: f32 = 0.0; const STEREO_SEPARATION_GAIN: f32 = 1.000; /// Extra headroom in the stereo matrix to reduce stereo-only clipping/IMD on /// strong program material. This keeps bass excursions from flattening treble. -const STEREO_MATRIX_GAIN: f32 = 0.80; +const STEREO_MATRIX_GAIN: f32 = 1.00; /// Stereo detection runs every N composite samples to reduce CPU. const STEREO_DETECT_DECIMATION: u32 = 16; /// Gentle high-pass memory for the stereo L-R path.