From 15352b921646a22d30a8921ef1262887e8364053 Mon Sep 17 00:00:00 2001 From: Dennis Sheirer Date: Fri, 10 Nov 2023 04:34:45 -0500 Subject: [PATCH] #1681 Resolves issue where audio recordings have incorrect system and site labels in metadata. Adds synchronized to channel processing manager's start channel request method to ensure that each channel is configured and started sequentially to avoid chance that simultaneous traffic channel grants occurring across two separate systems get inter-mingled on configuration and startup. --- .../dsheirer/controller/channel/ChannelProcessingManager.java | 2 +- .../github/dsheirer/source/tuner/rtl/r8x/R8xEmbeddedTuner.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/io/github/dsheirer/controller/channel/ChannelProcessingManager.java b/src/main/java/io/github/dsheirer/controller/channel/ChannelProcessingManager.java index 449548e6d..c090b36ec 100644 --- a/src/main/java/io/github/dsheirer/controller/channel/ChannelProcessingManager.java +++ b/src/main/java/io/github/dsheirer/controller/channel/ChannelProcessingManager.java @@ -365,7 +365,7 @@ public void stop(Channel channel) throws ChannelException * @param request containing channel and other details * @throws ChannelException if a source is not available for the channel */ - private void startProcessing(ChannelStartProcessingRequest request) throws ChannelException + private synchronized void startProcessing(ChannelStartProcessingRequest request) throws ChannelException { Channel channel = request.getChannel(); diff --git a/src/main/java/io/github/dsheirer/source/tuner/rtl/r8x/R8xEmbeddedTuner.java b/src/main/java/io/github/dsheirer/source/tuner/rtl/r8x/R8xEmbeddedTuner.java index b13a4e824..2ff44cf73 100644 --- a/src/main/java/io/github/dsheirer/source/tuner/rtl/r8x/R8xEmbeddedTuner.java +++ b/src/main/java/io/github/dsheirer/source/tuner/rtl/r8x/R8xEmbeddedTuner.java @@ -236,7 +236,6 @@ protected void setPLL(long frequency, boolean controlI2C) throws UsbException writeRegister(Register.DIVIDER, (byte) (div_num << 5), controlI2C); /* Get the integral number for this divider and frequency */ Integral integral = divider.getIntegral(frequency); - System.out.println("Using divider [" + divider + "] integral [" + integral + "] for [" + frequency + "]"); writeRegister(Register.PLL, integral.getRegisterValue(), controlI2C); /* Calculate the sigma-delta modulator fractional setting. If it's non-zero, power up the sdm and apply the fractional setting, otherwise turn it off */