V4L/DVB (4998): [PATCH] DIB3000MC and NOVA T USB2 #2
authorMario Rossi <mariofutire@googlemail.com>
Wed, 20 Dec 2006 13:54:30 +0000 (10:54 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:14 +0000 (13:34 -0200)
Second part of the patch to make the autosearch work again with DiB3000P/MC.

Signed-off-by: Mario Rossi <mariofutire@googlemail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/dib3000mc.c

index 23aa75a..054d7e6 100644 (file)
@@ -475,7 +475,7 @@ static void dib3000mc_set_channel_cfg(struct dib3000mc_state *state, struct dibx
        tmp = ((chan->nfft & 0x1) << 7) | (chan->guard << 5) | (chan->nqam << 3) | chan->vit_alpha;
        dib3000mc_write_word(state, 0, tmp);
 
-       dib3000mc_write_word(state, 5, seq);
+       dib3000mc_write_word(state, 5, (1 << 8) | ((seq & 0xf) << 4));
 
        tmp = (chan->vit_hrch << 4) | (chan->vit_select_hp);
        if (!chan->vit_hrch || (chan->vit_hrch && chan->vit_select_hp))