mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-01 14:52:32 +00:00
[media] stb0899: enable auto inversion handling unconditionally
It seems that current inversion handling addresses only the signal routing on the PCB, i. e. IQ signals are either swapped or not. But when the device is operated in a Satellite Channel Router (SCR) environment, an additional inversion is required due to the way how the SCR works. Therefore it makes sense to me to always enable auto inversion handling and drop the enum value IQ_SWAP_AUTO. Signed-off-by: Reinhard Nißl <rnissl@gmx.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
2eeed77fd1
commit
fa64cfd2fc
@ -1373,9 +1373,6 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state)
|
||||
case IQ_SWAP_ON:
|
||||
STB0899_SETFIELD_VAL(SPECTRUM_INVERT, reg, 1);
|
||||
break;
|
||||
case IQ_SWAP_AUTO: /* use last successful search first */
|
||||
STB0899_SETFIELD_VAL(SPECTRUM_INVERT, reg, 1);
|
||||
break;
|
||||
}
|
||||
stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_DMD_CNTRL2, STB0899_OFF0_DMD_CNTRL2, reg);
|
||||
stb0899_dvbs2_reacquire(state);
|
||||
@ -1405,7 +1402,6 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state)
|
||||
}
|
||||
|
||||
if (internal->status != DVBS2_FEC_LOCK) {
|
||||
if (internal->inversion == IQ_SWAP_AUTO) {
|
||||
reg = STB0899_READ_S2REG(STB0899_S2DEMOD, DMD_CNTRL2);
|
||||
iqSpectrum = STB0899_GETFIELD(SPECTRUM_INVERT, reg);
|
||||
/* IQ Spectrum Inversion */
|
||||
@ -1440,7 +1436,6 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state)
|
||||
pParams->IQLocked = !iqSpectrum;
|
||||
*/
|
||||
}
|
||||
}
|
||||
if (internal->status == DVBS2_FEC_LOCK) {
|
||||
dprintk(state->verbose, FE_DEBUG, 1, "----------------> DVB-S2 FEC Lock !");
|
||||
reg = STB0899_READ_S2REG(STB0899_S2DEMOD, UWP_STAT2);
|
||||
|
@ -47,7 +47,6 @@ struct stb0899_s2_reg {
|
||||
enum stb0899_inversion {
|
||||
IQ_SWAP_OFF = 0,
|
||||
IQ_SWAP_ON,
|
||||
IQ_SWAP_AUTO
|
||||
};
|
||||
|
||||
#define STB0899_GPIO00 0xf140
|
||||
|
Loading…
Reference in New Issue
Block a user