[media] dib8000: Fix ADC OFF settings
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 4 Jul 2014 17:15:28 +0000 (14:15 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 7 Jul 2014 12:55:16 +0000 (09:55 -0300)
The ADC OFF values are wrong. This causes troubles on detecting
weak signals.

Acked-By: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/dib8000.c

index 78ccbe13d189f7b95044770b78b4220099a9bcec..8dd34e0194fea1fec8b9830de60e676434a7db56 100644 (file)
@@ -588,8 +588,8 @@ static int dib8000_set_adc_state(struct dib8000_state *state, enum dibx000_adc_s
                break;
 
        case DIBX000_ADC_OFF:   // leave the VBG voltage on
-               reg_907 |= (1 << 14) | (1 << 13) | (1 << 12);
-               reg_908 |= (1 << 5) | (1 << 4) | (1 << 3) | (1 << 2);
+               reg_907 = (1 << 13) | (1 << 12);
+               reg_908 = (1 << 6) | (1 << 5) | (1 << 4) | (1 << 3) | (1 << 1);
                break;
 
        case DIBX000_VBG_ENABLE: