mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
#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.
This commit is contained in:
@@ -365,7 +365,7 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
|
||||
* @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();
|
||||
|
||||
|
||||
@@ -236,7 +236,6 @@ public abstract class R8xEmbeddedTuner extends EmbeddedTuner
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user