Skip to content

Commit

Permalink
[media] si2168: add support for 1.7MHz bandwidth
Browse files Browse the repository at this point in the history
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.

[[email protected]: Fix CodingStyle]
Signed-off-by: Olli Salonen <[email protected]>
Reviewed-by: Antti Palosaari <[email protected]>

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
trsqr authored and mchehab committed Feb 3, 2015
1 parent 683e98b commit 17d4d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/dvb-frontends/si2168.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 17d4d6a

Please sign in to comment.