Commit 6ebbe22d authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] mn88473: implement DVB-T mode

Implement DVB-T mode.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent c00a6b9f
...@@ -132,6 +132,13 @@ static int mn88473_set_frontend(struct dvb_frontend *fe) ...@@ -132,6 +132,13 @@ static int mn88473_set_frontend(struct dvb_frontend *fe)
} }
switch (c->delivery_system) { switch (c->delivery_system) {
case SYS_DVBT:
delivery_system = 0x02;
if (c->bandwidth_hz <= 7000000)
memcpy(params, "\x2e\xcb\xfb\xc8\x00\x00\x17\x0a\x17\x0a", 10);
else if (c->bandwidth_hz <= 8000000)
memcpy(params, "\x2e\xcb\xfb\xaf\x00\x00\x11\xec\x11\xec", 10);
break;
case SYS_DVBT2: case SYS_DVBT2:
delivery_system = 0x03; delivery_system = 0x03;
if (c->bandwidth_hz <= 7000000) if (c->bandwidth_hz <= 7000000)
...@@ -194,10 +201,12 @@ static int mn88473_set_frontend(struct dvb_frontend *fe) ...@@ -194,10 +201,12 @@ static int mn88473_set_frontend(struct dvb_frontend *fe)
ret = mn88473_wregs(dev, 0x1c2d, "\x3b", 1); ret = mn88473_wregs(dev, 0x1c2d, "\x3b", 1);
ret = mn88473_wregs(dev, 0x1c2e, "\x00", 1); ret = mn88473_wregs(dev, 0x1c2e, "\x00", 1);
ret = mn88473_wregs(dev, 0x1c56, "\x0d", 1); ret = mn88473_wregs(dev, 0x1c56, "\x0d", 1);
ret = mn88473_wregs(dev, 0x1801, "\xba", 1);
ret = mn88473_wregs(dev, 0x1802, "\x13", 1); ret = mn88473_wregs(dev, 0x1802, "\x13", 1);
ret = mn88473_wregs(dev, 0x1803, "\x80", 1); ret = mn88473_wregs(dev, 0x1803, "\x80", 1);
ret = mn88473_wregs(dev, 0x1804, "\xba", 1); ret = mn88473_wregs(dev, 0x1804, "\xba", 1);
ret = mn88473_wregs(dev, 0x1805, "\x91", 1); ret = mn88473_wregs(dev, 0x1805, "\x91", 1);
ret = mn88473_wregs(dev, 0x1807, "\xe7", 1);
ret = mn88473_wregs(dev, 0x1808, "\x28", 1); ret = mn88473_wregs(dev, 0x1808, "\x28", 1);
ret = mn88473_wregs(dev, 0x180a, "\x1a", 1); ret = mn88473_wregs(dev, 0x180a, "\x1a", 1);
ret = mn88473_wregs(dev, 0x1813, "\x1f", 1); ret = mn88473_wregs(dev, 0x1813, "\x1f", 1);
...@@ -382,7 +391,7 @@ struct dvb_frontend *mn88473_attach(const struct mn88473_config *cfg, ...@@ -382,7 +391,7 @@ struct dvb_frontend *mn88473_attach(const struct mn88473_config *cfg,
EXPORT_SYMBOL(mn88473_attach); EXPORT_SYMBOL(mn88473_attach);
static struct dvb_frontend_ops mn88473_ops = { static struct dvb_frontend_ops mn88473_ops = {
.delsys = {SYS_DVBT2, SYS_DVBC_ANNEX_AC}, .delsys = {SYS_DVBT, SYS_DVBT2, SYS_DVBC_ANNEX_AC},
.info = { .info = {
.name = "Panasonic MN88473", .name = "Panasonic MN88473",
.caps = FE_CAN_FEC_1_2 | .caps = FE_CAN_FEC_1_2 |
......
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