Commit 5ee803a2 authored by Benjamin Larsson's avatar Benjamin Larsson Committed by Mauro Carvalho Chehab

[media] mn88472: simplify bandwidth registers setting code

Signed-off-by: default avatarBenjamin Larsson <benjamin@southpole.se>
Reviewed-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent e6010442
......@@ -58,9 +58,6 @@ static int mn88472_set_frontend(struct dvb_frontend *fe)
goto err;
}
switch (c->delivery_system) {
case SYS_DVBT:
case SYS_DVBT2:
if (c->bandwidth_hz <= 5000000) {
memcpy(bw_val, "\xe5\x99\x9a\x1b\xa9\x1b\xa9", 7);
bw_val2 = 0x03;
......@@ -80,16 +77,6 @@ static int mn88472_set_frontend(struct dvb_frontend *fe)
ret = -EINVAL;
goto err;
}
break;
case SYS_DVBC_ANNEX_A:
/* IF 5070000 Hz, BW 8000000 Hz */
memcpy(bw_val, "\x8f\x80\x00\x08\xee\x08\xee", 7);
bw_val2 = 0x00;
break;
default:
ret = -EINVAL;
goto err;
}
/* program tuner */
if (fe->ops.tuner_ops.set_params) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment