[media] si2168: add support for 1.7MHz bandwidth
authorOlli Salonen <olli.salonen@iki.fi>
Fri, 16 Jan 2015 12:35:20 +0000 (09:35 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Feb 2015 20:13:12 +0000 (18:13 -0200)
This patch is based on Antti's silabs branch.

Add support for 1.7 MHz bandwidth. Supported in all versions of Si2168 according to short data sheets.

[mchehab@osg.samsung.com: Fix CodingStyle]
Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/si2168.c

index 5b5fd5db7b2c42507a73f99c45d549cdc090e70a..5db588ebfc24eff68d21c2559d55cfe2f8483ab1 100644 (file)
@@ -183,7 +183,9 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
        if (c->bandwidth_hz == 0) {
                ret = -EINVAL;
                goto err;
-       } else if (c->bandwidth_hz <= 5000000)
+       } else if (c->bandwidth_hz <= 2000000)
+               bandwidth = 0x02;
+       else if (c->bandwidth_hz <= 5000000)
                bandwidth = 0x05;
        else if (c->bandwidth_hz <= 6000000)
                bandwidth = 0x06;