Merge pull request #369 from DSheirer/320-mixer-gain-r820t-tuner

360 R820T Mixer Gain Labels
This commit is contained in:
Denny Sheirer
2018-07-15 05:30:45 -04:00
committed by GitHub

View File

@@ -773,26 +773,29 @@ public class R820TTunerController extends RTL2832TunerController
/** /**
* R820T mixer gain settings * R820T mixer gain settings
*
* Note: gain labels were changed from measured dB values to simple 1-16 value labels to conform
* with the ICD listing the values from 0-15 as minimum to maximum.
*/ */
public enum R820TMixerGain public enum R820TMixerGain
{ {
AUTOMATIC("Automatic", 0x10), AUTOMATIC("Automatic", 0x10),
GAIN_0("0", 0x00), GAIN_0("1", 0x00),
GAIN_5("5", 0x01), GAIN_5("2", 0x01),
GAIN_15("15", 0x02), GAIN_15("3", 0x02),
GAIN_25("25", 0x03), GAIN_25("4", 0x03),
GAIN_44("44", 0x04), GAIN_44("5", 0x04),
GAIN_53("53", 0x05), GAIN_53("6", 0x05),
GAIN_63("63", 0x06), GAIN_63("7", 0x06),
GAIN_88("88", 0x07), GAIN_88("8", 0x07),
GAIN_105("105", 0x08), GAIN_105("9", 0x08),
GAIN_115("115", 0x09), GAIN_115("10", 0x09),
GAIN_123("123", 0x0A), GAIN_123("11", 0x0A),
GAIN_139("139", 0x0B), GAIN_139("12", 0x0B),
GAIN_152("152", 0x0C), GAIN_152("13", 0x0C),
GAIN_158("158", 0x0D), GAIN_158("14", 0x0D),
GAIN_161("161", 0x0E), GAIN_161("15", 0x0E),
GAIN_153("153", 0x0F); GAIN_153("16", 0x0F);
private String mLabel; private String mLabel;
private int mSetting; private int mSetting;