V4L/DVB (9452): Fix invalid GCT mode
authorManu Abraham <abraham.manu@gmail.com>
Fri, 25 Jan 2008 21:35:21 +0000 (18:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:22 +0000 (17:53 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb6100.c

index 5c6d06775dd5a545ccd2d9424c22132a6e1054ea..c8fdc1e99df11fe2afa851889e987c90fc7f42fa 100644 (file)
@@ -360,7 +360,10 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency)
                g = 12;
        else
                g = 14;
+
        regs[STB6100_G] = (regs[STB6100_G] & ~STB6100_G_G) | g;
+       regs[STB6100_G] &= ~STB6100_G_GCT; /* mask GCT */
+       regs[STB6100_G] |= (1 << 5); /* 2Vp-p Mode */
 
        /* VCO divide ratio (LO divide ratio, VCO prescaler enable).    */
        if (frequency <= 1075000)