aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Salonen <olli.salonen@iki.fi>2015-01-16 07:35:20 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-03 15:13:12 -0500
commit17d4d6ae09f7b556eb13d4f708f810a1ef99733e (patch)
tree0f01107277192c27cfe53cac02d0aa42017d132b
parent683e98b6029155949d7373ba854283770b4a16ef (diff)
[media] si2168: add support for 1.7MHz bandwidth
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>
-rw-r--r--drivers/media/dvb-frontends/si2168.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index 5b5fd5db7b2c..5db588ebfc24 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -183,7 +183,9 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
183 if (c->bandwidth_hz == 0) { 183 if (c->bandwidth_hz == 0) {
184 ret = -EINVAL; 184 ret = -EINVAL;
185 goto err; 185 goto err;
186 } else if (c->bandwidth_hz <= 5000000) 186 } else if (c->bandwidth_hz <= 2000000)
187 bandwidth = 0x02;
188 else if (c->bandwidth_hz <= 5000000)
187 bandwidth = 0x05; 189 bandwidth = 0x05;
188 else if (c->bandwidth_hz <= 6000000) 190 else if (c->bandwidth_hz <= 6000000)
189 bandwidth = 0x06; 191 bandwidth = 0x06;