[media] FM1216ME_MK3 AUX byte for FM mode
authorDmitri Belimov <d.belimov@gmail.com>
Thu, 23 Apr 2009 04:40:46 +0000 (01:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Nov 2011 14:39:17 +0000 (12:39 -0200)
Write AUX byte to FM1216ME_MK3 when FM mode, better sensitivity. It can be
usefull for other tuners.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-simple.c

index f8ee29e6059c982e8e8ddce5cd0cbe28d78b58ed..4092200c148eb92b26c020c88ac596ef4d1d0493 100644 (file)
@@ -751,6 +751,17 @@ static int simple_set_radio_freq(struct dvb_frontend *fe,
        if (4 != rc)
                tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc);
 
+       /* Write AUX byte */
+       switch (priv->type) {
+       case TUNER_PHILIPS_FM1216ME_MK3:
+               buffer[2] = 0x98;
+               buffer[3] = 0x20; /* set TOP AGC */
+               rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 4);
+               if (4 != rc)
+                       tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc);
+               break;
+       }
+
        return 0;
 }