diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-10-18 13:35:16 +0200 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2006-10-18 13:35:16 +0200 |
commit | ae62c320fe11be6e35fec09abfc00ae17eefab43 (patch) | |
tree | 0910008a73d2849985046a0bc7189e6b223b095c /linux/drivers/media/dvb/frontends/dib3000mc.c | |
parent | ea229227da56a0b59a03e0b25757944e66e9405f (diff) | |
download | mediapointer-dvb-s2-ae62c320fe11be6e35fec09abfc00ae17eefab43.tar.gz mediapointer-dvb-s2-ae62c320fe11be6e35fec09abfc00ae17eefab43.tar.bz2 |
Misc fixes for DiB3000 and DiB7000
From: Patrick Boettcher <pb@linuxtv.org>
This patch contains several fixes for the autosearch algorithm and other small ones.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib3000mc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.c b/linux/drivers/media/dvb/frontends/dib3000mc.c index ca4158abc..399204103 100644 --- a/linux/drivers/media/dvb/frontends/dib3000mc.c +++ b/linux/drivers/media/dvb/frontends/dib3000mc.c @@ -544,16 +544,11 @@ static int dib3000mc_autosearch_start(struct dvb_frontend *demod, struct dibx000 #endif /* a channel for autosearch */ - reg = 0; - if (chan->nfft == -1 && chan->guard == -1) reg = 7; - if (chan->nfft == -1 && chan->guard != -1) reg = 2; - if (chan->nfft != -1 && chan->guard == -1) reg = 3; - fchan.nfft = 1; fchan.guard = 0; fchan.nqam = 2; fchan.vit_alpha = 1; fchan.vit_code_rate_hp = 2; fchan.vit_code_rate_lp = 2; fchan.vit_hrch = 0; fchan.vit_select_hp = 1; - dib3000mc_set_channel_cfg(state, &fchan, reg); + dib3000mc_set_channel_cfg(state, &fchan, 7); reg = dib3000mc_read_word(state, 0); dib3000mc_write_word(state, 0, reg | (1 << 8)); |