diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-10-18 07:35:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 05:51:04 -0500 |
commit | d92532d9860663cb39828e18a3e6aed27821f2bf (patch) | |
tree | 95d994143ce89930b493b139a189598ef467c1f9 /drivers/media/dvb/frontends/dib3000mc.c | |
parent | a75763ffff4175bd8c115c217a39fbf445612aae (diff) |
V4L/DVB (4773): Misc fixes for DiB3000 and DiB7000
This patch contains several fixes for the autosearch algorithm and other small ones.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/dib3000mc.c b/drivers/media/dvb/frontends/dib3000mc.c index 3561a777568c..5da66178006c 100644 --- a/drivers/media/dvb/frontends/dib3000mc.c +++ b/drivers/media/dvb/frontends/dib3000mc.c | |||
@@ -511,16 +511,11 @@ static int dib3000mc_autosearch_start(struct dvb_frontend *demod, struct dibx000 | |||
511 | 511 | ||
512 | 512 | ||
513 | /* a channel for autosearch */ | 513 | /* a channel for autosearch */ |
514 | reg = 0; | ||
515 | if (chan->nfft == -1 && chan->guard == -1) reg = 7; | ||
516 | if (chan->nfft == -1 && chan->guard != -1) reg = 2; | ||
517 | if (chan->nfft != -1 && chan->guard == -1) reg = 3; | ||
518 | |||
519 | fchan.nfft = 1; fchan.guard = 0; fchan.nqam = 2; | 514 | fchan.nfft = 1; fchan.guard = 0; fchan.nqam = 2; |
520 | fchan.vit_alpha = 1; fchan.vit_code_rate_hp = 2; fchan.vit_code_rate_lp = 2; | 515 | fchan.vit_alpha = 1; fchan.vit_code_rate_hp = 2; fchan.vit_code_rate_lp = 2; |
521 | fchan.vit_hrch = 0; fchan.vit_select_hp = 1; | 516 | fchan.vit_hrch = 0; fchan.vit_select_hp = 1; |
522 | 517 | ||
523 | dib3000mc_set_channel_cfg(state, &fchan, reg); | 518 | dib3000mc_set_channel_cfg(state, &fchan, 7); |
524 | 519 | ||
525 | reg = dib3000mc_read_word(state, 0); | 520 | reg = dib3000mc_read_word(state, 0); |
526 | dib3000mc_write_word(state, 0, reg | (1 << 8)); | 521 | dib3000mc_write_word(state, 0, reg | (1 << 8)); |