]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/tda9887.c
V4L/DVB (5366): Pvrusb2: Fix compilation warning for amd64 builds (use %zu instead...
[linux-2.6-omap-h63xx.git] / drivers / media / video / tda9887.c
index 8dab481d384aa58b292de4dd26fd6155c8fda1ac..fde576f1101cb3f980c9cb616aa3ae7ee1be48c3 100644 (file)
@@ -480,6 +480,14 @@ static int tda9887_set_config(struct tuner *t, char *buf)
        }
        if ((t->tda9887_config & TDA9887_INTERCARRIER_NTSC) && (t->std & V4L2_STD_NTSC))
                buf[1] &= ~cQSS;
+       if (t->tda9887_config & TDA9887_GATING_18)
+               buf[3] &= ~cGating_36;
+
+       if (t->tda9887_config & TDA9887_GAIN_NORMAL) {
+               radio_stereo.e &= ~cTunerGainLow;
+               radio_mono.e &= ~cTunerGainLow;
+       }
+
        return 0;
 }