Use an enumeration for I/Q Swap rather than an int,
easier to spot the nasty ones
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
u32 data;
};
+enum stb0899_inversion {
+ IQ_SWAP_OFF = 0,
+ IQ_SWAP_ON,
+ IQ_SWAP_AUTO
+};
+
struct stb0899_config {
const struct stb0899_s1_reg *init_dev;
const struct stb0899_s2_reg *init_s2_demod;
const struct stb0899_s2_reg *init_s2_fec;
const struct stb0899_s1_reg *init_tst;
+ enum stb0899_inversion inversion;
+
u32 xtal_freq;
u8 demod_address;
u8 data_fifo_mode;
u8 out_rate_comp;
u8 i2c_repeater;
- int inversion;
+// int inversion;
u32 esno_ave;
u32 esno_quant;
STB0899_SHORT_FRAME
};
-enum stb0899_inversion {
- IQ_SWAP_OFF = 0,
- IQ_SWAP_ON,
- IQ_SWAP_AUTO
-};
-
enum stb0899_alpha {
RRC_20,
RRC_25,
// .ts_pfbit_toggle = STB0899_MPEG_NORMAL, /* DirecTV, MPEG toggling seq */
.xtal_freq = 27000000,
- .inversion = 1,
+ .inversion = IQ_SWAP_ON, /* 1 */
.esno_ave = KNC1_DVBS2_ESNO_AVE,
.esno_quant = KNC1_DVBS2_ESNO_QUANT,
.demod_address = 0x68,
.xtal_freq = 27000000,
- .inversion = 1,
+ .inversion = IQ_SWAP_ON, /* 1 */
.esno_ave = TT3200_DVBS2_ESNO_AVE,
.esno_quant = TT3200_DVBS2_ESNO_QUANT,