Skip to contentSkip to conversation

18271_calc_main_pll small bugfix

PATCH In review [email protected] 2 participants 2 messages Sep 22, 2009 – Sep 24, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 18271_calc_main_pll small bugfix

Removed code fragment that is not part of the (C2) specs. Possibly an early remnant of an attempted if_notch filter configuration. It is already handled correctly in the tda18271_set_if_notch function.

Signed-off-by [email protected]
linux/drivers/media/common/tuners/tda18271-common.c +0 -9
diff -r 29e4ba1a09bc linux/drivers/media/common/tuners/tda18271-common.c
@@ -582,15 +582,6 @@
 
 	regs[R_MPD]   = (0x77 & pd);
 
-	switch (priv->mode) {
-	case TDA18271_ANALOG:
-		regs[R_MPD]  &= ~0x08;
-		break;
-	case TDA18271_DIGITAL:
-		regs[R_MPD]  |=  0x08;
-		break;
-	}
-
 	div =  ((d * (freq / 1000)) << 7) / 125;
 
 	regs[R_MD1]   = 0x7f & (div >> 16);
#1 lore raw
Quoted 17 lines · On Tue, Sep 22, 2009 at 5:06 PM, <[email protected]> wrote:

Removed code fragment that is not part of the (C2) specs. Possibly an early remnant of an attempted if_notch filter configuration. It is already handled correctly in the tda18271_set_if_notch function.

Signed-off-by [email protected]

diff -r 29e4ba1a09bc linux/drivers/media/common/tuners/tda18271-common.c

linux/drivers/media/common/tuners/tda18271-common.c       Tue Sep 22 22:06:31 2009 +0200 renamed from linux/drivers/media/common/tuners/tda18271-common.c       Sat Sep 19 09:45:22 2009 -0300 +0 -2
@@ -582,15 +582,6 @@
 
        regs[R_MPD]   = (0x77 & pd);
 
-       switch (priv->mode) {
-       case TDA18271_ANALOG:

linux/drivers/media/common/tuners/tda18271-common.c       Tue Sep 22 22:06:31 2009 +0200 line 587

Quoted 10 lines
linux/drivers/media/common/tuners/tda18271-common.c       Tue Sep 22 22:06:31 2009 +0200 renamed from linux/drivers/media/common/tuners/tda18271-common.c       Sat Sep 19 09:45:22 2009 -0300 +0 -7
-               regs[R_MPD]  &= ~0x08;
-               break;
-       case TDA18271_DIGITAL:
-               regs[R_MPD]  |=  0x08;
-               break;
-       }
-
        div =  ((d * (freq / 1000)) << 7) / 125;
 
        regs[R_MD1]   = 0x7f & (div >> 16);

NACK. This bit needs to remain -- do not merge this.

Regards,

Mike Krufky