diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-09-24 18:51:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:16 -0500 |
commit | b48e2de3b2b05fd360a07704eb39bf44298c74d0 (patch) | |
tree | 314747c8ed96e2b5f04e6770d3c3b26f5ac64607 | |
parent | ecdec311806220d6e88e3ac52936cc30e1580810 (diff) |
V4L/DVB (9402): TT S2 3200 shouldn't need Inversion ON and Inversion AUTO at the same time
This is a racy situation.
Inversion is default OFF on the TT S2 3200 hardware,
unlike the KNC1 where it is default Inverted
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index db620f02eda9..ce1016eed808 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -1886,17 +1886,19 @@ static struct dvb_frontend_ops stb0899_ops = { | |||
1886 | struct dvb_frontend *stb0899_attach(struct stb0899_config *config, struct i2c_adapter *i2c) | 1886 | struct dvb_frontend *stb0899_attach(struct stb0899_config *config, struct i2c_adapter *i2c) |
1887 | { | 1887 | { |
1888 | struct stb0899_state *state = NULL; | 1888 | struct stb0899_state *state = NULL; |
1889 | enum stb0899_inversion inversion; | ||
1889 | 1890 | ||
1890 | state = kzalloc(sizeof (struct stb0899_state), GFP_KERNEL); | 1891 | state = kzalloc(sizeof (struct stb0899_state), GFP_KERNEL); |
1891 | if (state == NULL) | 1892 | if (state == NULL) |
1892 | goto error; | 1893 | goto error; |
1893 | 1894 | ||
1895 | inversion = config->inversion; | ||
1894 | state->verbose = verbose; | 1896 | state->verbose = verbose; |
1895 | state->config = config; | 1897 | state->config = config; |
1896 | state->i2c = i2c; | 1898 | state->i2c = i2c; |
1897 | state->frontend.ops = stb0899_ops; | 1899 | state->frontend.ops = stb0899_ops; |
1898 | state->frontend.demodulator_priv = state; | 1900 | state->frontend.demodulator_priv = state; |
1899 | state->internal.inversion = IQ_SWAP_AUTO; | 1901 | state->internal.inversion = inversion; |
1900 | 1902 | ||
1901 | stb0899_wakeup(&state->frontend); | 1903 | stb0899_wakeup(&state->frontend); |
1902 | if (stb0899_get_dev_id(state) == -ENODEV) { | 1904 | if (stb0899_get_dev_id(state) == -ENODEV) { |
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index fc4cc491ab59..3e1128cf6dd0 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -1658,7 +1658,7 @@ static struct stb0899_config tt3200_config = { | |||
1658 | .demod_address = 0x68, | 1658 | .demod_address = 0x68, |
1659 | 1659 | ||
1660 | .xtal_freq = 27000000, | 1660 | .xtal_freq = 27000000, |
1661 | .inversion = IQ_SWAP_ON, /* 1 */ | 1661 | .inversion = IQ_SWAP_OFF, /* 1 */ |
1662 | 1662 | ||
1663 | .esno_ave = TT3200_DVBS2_ESNO_AVE, | 1663 | .esno_ave = TT3200_DVBS2_ESNO_AVE, |
1664 | .esno_quant = TT3200_DVBS2_ESNO_QUANT, | 1664 | .esno_quant = TT3200_DVBS2_ESNO_QUANT, |