Commit e395e573 authored by CrazyCat's avatar CrazyCat Committed by Mauro Carvalho Chehab

[media] si2168: DVB-T2 PLP selection implemented

DVB-T2 PLP selection implemented for Si2168 demod.
Tested with PCTV 292e.
Signed-off-by: default avatarEvgeny Plehov <EvgenyPlehov@ukr.net>
Reviewed-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent a45c2994
...@@ -167,10 +167,10 @@ static int si2168_set_frontend(struct dvb_frontend *fe) ...@@ -167,10 +167,10 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
u8 bandwidth, delivery_system; u8 bandwidth, delivery_system;
dev_dbg(&s->client->dev, dev_dbg(&s->client->dev,
"delivery_system=%u modulation=%u frequency=%u bandwidth_hz=%u symbol_rate=%u inversion=%u\n", "delivery_system=%u modulation=%u frequency=%u bandwidth_hz=%u symbol_rate=%u inversion=%u, stream_id=%d\n",
c->delivery_system, c->modulation, c->delivery_system, c->modulation,
c->frequency, c->bandwidth_hz, c->symbol_rate, c->frequency, c->bandwidth_hz, c->symbol_rate,
c->inversion); c->inversion, c->stream_id);
if (!s->active) { if (!s->active) {
ret = -EAGAIN; ret = -EAGAIN;
...@@ -234,6 +234,18 @@ static int si2168_set_frontend(struct dvb_frontend *fe) ...@@ -234,6 +234,18 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
if (ret) if (ret)
goto err; goto err;
if (c->delivery_system == SYS_DVBT2) {
/* select PLP */
cmd.args[0] = 0x52;
cmd.args[1] = c->stream_id & 0xff;
cmd.args[2] = c->stream_id == NO_STREAM_ID_FILTER ? 0 : 1;
cmd.wlen = 3;
cmd.rlen = 1;
ret = si2168_cmd_execute(s, &cmd);
if (ret)
goto err;
}
memcpy(cmd.args, "\x51\x03", 2); memcpy(cmd.args, "\x51\x03", 2);
cmd.wlen = 2; cmd.wlen = 2;
cmd.rlen = 12; cmd.rlen = 12;
......
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