Commit 40eca140 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] mn88473: add DVB-T2 PLP support

Adds PLP ID filtering for DVB-T2.

It is untested as I don't have any signal having PLP ID other than 0.
There is only 2 extra registers, 0x32 and 0x36 on bank2, that are
programmed for DVB-T2 but not for DVB-T and all the rest are
programmed similarly - so it is likely PLP.

Pridvorov reported successfully testing it in Russia with m-PLP streams,
on both Vladivostok and Moskow.
Tested-by: default avatar"Придворов Андрей (Pridvorov  Andrey)" <ua0lnj@bk.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent bd361f5d
...@@ -223,6 +223,13 @@ static int mn88473_set_frontend(struct dvb_frontend *fe) ...@@ -223,6 +223,13 @@ static int mn88473_set_frontend(struct dvb_frontend *fe)
if (ret) if (ret)
goto err; goto err;
/* PLP */
if (c->delivery_system == SYS_DVBT2) {
ret = regmap_write(dev->regmap[2], 0x36, c->stream_id);
if (ret)
goto err;
}
/* Reset FSM */ /* Reset FSM */
ret = regmap_write(dev->regmap[2], 0xf8, 0x9f); ret = regmap_write(dev->regmap[2], 0xf8, 0x9f);
if (ret) if (ret)
...@@ -592,7 +599,8 @@ static const struct dvb_frontend_ops mn88473_ops = { ...@@ -592,7 +599,8 @@ static const struct dvb_frontend_ops mn88473_ops = {
FE_CAN_GUARD_INTERVAL_AUTO | FE_CAN_GUARD_INTERVAL_AUTO |
FE_CAN_HIERARCHY_AUTO | FE_CAN_HIERARCHY_AUTO |
FE_CAN_MUTE_TS | FE_CAN_MUTE_TS |
FE_CAN_2G_MODULATION FE_CAN_2G_MODULATION |
FE_CAN_MULTISTREAM
}, },
.get_tune_settings = mn88473_get_tune_settings, .get_tune_settings = mn88473_get_tune_settings,
......
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