mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Resolves #382 - Adds additional sample rate options for the RTL2832
tuner and adjusts the low sample rate buffer size down to 16 kb.
This commit is contained in:
@@ -51,13 +51,11 @@ public abstract class RTL2832TunerController extends USBTunerController
|
||||
private final static Logger mLog = LoggerFactory.getLogger(RTL2832TunerController.class);
|
||||
|
||||
public final static int TWO_TO_22_POWER = 4194304;
|
||||
|
||||
public final static int USB_TRANSFER_BUFFER_SIZE_HIGH_SAMPLE_RATE = 131072;
|
||||
public final static int USB_TRANSFER_BUFFER_SIZE_LOW_SAMPLE_RATE = 32768;
|
||||
public final static int USB_TRANSFER_BUFFER_SIZE_LOW_SAMPLE_RATE = 16384;
|
||||
public final static byte USB_INTERFACE = (byte) 0x0;
|
||||
public final static byte CONTROL_ENDPOINT_IN = (byte) (LibUsb.ENDPOINT_IN | LibUsb.REQUEST_TYPE_VENDOR);
|
||||
public final static byte CONTROL_ENDPOINT_OUT = (byte) (LibUsb.ENDPOINT_OUT | LibUsb.REQUEST_TYPE_VENDOR);
|
||||
|
||||
public final static long TIMEOUT_US = 1000000l; //uSeconds
|
||||
public final static byte REQUEST_ZERO = (byte) 0;
|
||||
public final static byte EEPROM_ADDRESS = (byte) 0xA0;
|
||||
@@ -1247,9 +1245,7 @@ public abstract class RTL2832TunerController extends USBTunerController
|
||||
private int mRate;
|
||||
private String mLabel;
|
||||
|
||||
private SampleRate(int ratioHigh,
|
||||
int rate,
|
||||
String label)
|
||||
private SampleRate(int ratioHigh, int rate, String label)
|
||||
{
|
||||
mRatioHigh = ratioHigh;
|
||||
mRate = rate;
|
||||
@@ -1310,7 +1306,7 @@ public abstract class RTL2832TunerController extends USBTunerController
|
||||
private int mCheckAddress;
|
||||
private int mCheckValue;
|
||||
|
||||
private TunerTypeCheck(int i2c, int address, int value)
|
||||
TunerTypeCheck(int i2c, int address, int value)
|
||||
{
|
||||
mI2CAddress = i2c;
|
||||
mCheckAddress = address;
|
||||
|
||||
Reference in New Issue
Block a user