|
@@ -1886,17 +1886,19 @@ static struct dvb_frontend_ops stb0899_ops = {
|
|
|
struct dvb_frontend *stb0899_attach(struct stb0899_config *config, struct i2c_adapter *i2c)
|
|
|
{
|
|
|
struct stb0899_state *state = NULL;
|
|
|
+ enum stb0899_inversion inversion;
|
|
|
|
|
|
state = kzalloc(sizeof (struct stb0899_state), GFP_KERNEL);
|
|
|
if (state == NULL)
|
|
|
goto error;
|
|
|
|
|
|
+ inversion = config->inversion;
|
|
|
state->verbose = verbose;
|
|
|
state->config = config;
|
|
|
state->i2c = i2c;
|
|
|
state->frontend.ops = stb0899_ops;
|
|
|
state->frontend.demodulator_priv = state;
|
|
|
- state->internal.inversion = IQ_SWAP_AUTO;
|
|
|
+ state->internal.inversion = inversion;
|
|
|
|
|
|
stb0899_wakeup(&state->frontend);
|
|
|
if (stb0899_get_dev_id(state) == -ENODEV) {
|