提交 17d4d6ae 编写于 作者: O Olli Salonen 提交者: Mauro Carvalho Chehab

[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: NOlli Salonen <olli.salonen@iki.fi>
Reviewed-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 683e98b6
...@@ -183,7 +183,9 @@ static int si2168_set_frontend(struct dvb_frontend *fe) ...@@ -183,7 +183,9 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
if (c->bandwidth_hz == 0) { if (c->bandwidth_hz == 0) {
ret = -EINVAL; ret = -EINVAL;
goto err; goto err;
} else if (c->bandwidth_hz <= 5000000) } else if (c->bandwidth_hz <= 2000000)
bandwidth = 0x02;
else if (c->bandwidth_hz <= 5000000)
bandwidth = 0x05; bandwidth = 0x05;
else if (c->bandwidth_hz <= 6000000) else if (c->bandwidth_hz <= 6000000)
bandwidth = 0x06; bandwidth = 0x06;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册