[PATCH] dvb: microtune mt7202dtf: Fix charge pump setting
authorMichael Krufky <mkrufky@m1k.net>
Wed, 9 Nov 2005 05:35:16 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:02 +0000 (07:56 -0800)
Fix charge pump setting in microtune_mt7202dtf_pll_set().  Thanks to Jyrki
Niskala for reporting.

Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/bt8xx/dvb-bt8xx.c

index 96ef35ecab491cf9c8f418db40e6d6866468a11a..1c5f1ec8535269bcb314ce8cfa3fe55c147ce4ff 100644 (file)
@@ -280,7 +280,7 @@ static int microtune_mt7202dtf_pll_set(struct dvb_frontend* fe, struct dvb_front
        data[0] = (div >> 8) & 0x7f;
        data[1] = div & 0xff;
        data[2] = ((div >> 10) & 0x60) | cfg;
-       data[3] = cpump | band_select;
+       data[3] = (cpump << 6) | band_select;
 
        i2c_transfer(card->i2c_adapter, &msg, 1);
        return (div * 166666 - 36000000);