From: Antti Palosaari <crope@iki.fi>
To: CrazyCat <crazycat69@narod.ru>,
linux-media <linux-media@vger.kernel.org>
Subject: Re: [PATCH] si2168: DVB-T2 PLP selection implemented
Date: Thu, 21 Aug 2014 11:52:17 +0300 [thread overview]
Message-ID: <53F5B341.1090401@iki.fi> (raw)
In-Reply-To: <7423442.VCBAbZjIjj@computer>
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
On 08/17/2014 12:33 AM, CrazyCat wrote:
> DVB-T2 PLP selection implemented for Si2168 demod.
> Tested with PCTV 292e.
>
> Signed-off-by: Evgeny Plehov <EvgenyPlehov@ukr.net>
> ---
> drivers/media/dvb-frontends/si2168.c | 16 ++++++++++++++--
> 1 file changed, 14 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
> index 37f3f92..9c41281 100644
> --- a/drivers/media/dvb-frontends/si2168.c
> +++ b/drivers/media/dvb-frontends/si2168.c
> @@ -168,10 +168,10 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
> u8 bandwidth, delivery_system;
>
> dev_dbg(&s->client->dev,
> - "%s: delivery_system=%u modulation=%u frequency=%u bandwidth_hz=%u symbol_rate=%u inversion=%u\n",
> + "%s: delivery_system=%u modulation=%u frequency=%u bandwidth_hz=%u symbol_rate=%u inversion=%u, stream_id=%d\n",
> __func__, c->delivery_system, c->modulation,
> c->frequency, c->bandwidth_hz, c->symbol_rate,
> - c->inversion);
> + c->inversion, c->stream_id);
>
> if (!s->active) {
> ret = -EAGAIN;
> @@ -235,6 +235,18 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
> if (ret)
> 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);
> cmd.wlen = 2;
> cmd.rlen = 12;
>
--
http://palosaari.fi/
prev parent reply other threads:[~2014-08-21 8:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-16 21:33 [PATCH] si2168: DVB-T2 PLP selection implemented CrazyCat
2014-08-21 8:52 ` Antti Palosaari [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F5B341.1090401@iki.fi \
--to=crope@iki.fi \
--cc=crazycat69@narod.ru \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).