mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-15 01:57:39 -05:00
Merge pull request #162 from DSheirer/161-e4000-tuner-error
Resolves #161 - E4000 tuner error.
This commit is contained in:
@@ -78,14 +78,9 @@ public abstract class RTL2832TunerController extends TunerController
|
|||||||
|
|
||||||
private SampleRate mSampleRate = DEFAULT_SAMPLE_RATE;
|
private SampleRate mSampleRate = DEFAULT_SAMPLE_RATE;
|
||||||
|
|
||||||
private ByteSampleAdapter mSampleAdapter = new ByteSampleAdapter();
|
protected ByteSampleAdapter mSampleAdapter = new ByteSampleAdapter();
|
||||||
|
|
||||||
private Broadcaster<ComplexBuffer> mComplexBufferBroadcaster = new Broadcaster<>();
|
|
||||||
|
|
||||||
protected int mOscillatorFrequency = 28800000; //28.8 MHz
|
protected int mOscillatorFrequency = 28800000; //28.8 MHz
|
||||||
|
protected USBTransferProcessor mUSBTransferProcessor;
|
||||||
private USBTransferProcessor mUSBTransferProcessor;
|
|
||||||
|
|
||||||
protected Descriptor mDescriptor;
|
protected Descriptor mDescriptor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -249,6 +249,11 @@ public class E4KTunerController extends RTL2832TunerController
|
|||||||
throw new SourceException("E4K Tuner Controller - error during "
|
throw new SourceException("E4K Tuner Controller - error during "
|
||||||
+ "init()", e);
|
+ "init()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String deviceName = getTunerType().getLabel() + " " + getUniqueID();
|
||||||
|
|
||||||
|
mUSBTransferProcessor = new RTL2832USBTransferProcessor(deviceName, mDeviceHandle, mSampleAdapter,
|
||||||
|
USB_TRANSFER_BUFFER_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ public class USBTransferProcessor implements TransferCallback
|
|||||||
|
|
||||||
//Start transferred buffer dispatcher
|
//Start transferred buffer dispatcher
|
||||||
mBufferDispatcherFuture = ThreadPool.SCHEDULED.scheduleAtFixedRate(mBufferDispatcher,
|
mBufferDispatcherFuture = ThreadPool.SCHEDULED.scheduleAtFixedRate(mBufferDispatcher,
|
||||||
20, 20, TimeUnit.MILLISECONDS);
|
0, 11, TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
//Register with LibUSB processor so that it auto-starts LibUSB processing
|
//Register with LibUSB processor so that it auto-starts LibUSB processing
|
||||||
TunerManager.LIBUSB_TRANSFER_PROCESSOR.registerTransferProcessor(this);
|
TunerManager.LIBUSB_TRANSFER_PROCESSOR.registerTransferProcessor(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user