From: Antti Palosaari <crope@iki.fi>
To: Luis Alves <ljalvs@gmail.com>, linux-media@vger.kernel.org
Subject: Re: [PATCH 1/1] si2168: Set symbol_rate in set_frontend for DVB-C delivery system.
Date: Fri, 18 Jul 2014 00:32:06 +0300 [thread overview]
Message-ID: <53C840D6.8040208@iki.fi> (raw)
In-Reply-To: <1405618288-28317-1-git-send-email-ljalvs@gmail.com>
Looks sane, I will apply that.
regards
Antti
On 07/17/2014 08:31 PM, Luis Alves wrote:
> This patch adds symbol rate setting to the driver.
>
> Signed-off-by: Luis Alves <ljalvs@gmail.com>
> ---
> drivers/media/dvb-frontends/si2168.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
> index 0422925..7980741 100644
> --- a/drivers/media/dvb-frontends/si2168.c
> +++ b/drivers/media/dvb-frontends/si2168.c
> @@ -278,6 +278,18 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
> if (ret)
> goto err;
>
> + /* set DVB-C symbol rate */
> + if (c->delivery_system == SYS_DVBC_ANNEX_A) {
> + memcpy(cmd.args, "\x14\x00\x02\x11", 4);
> + cmd.args[4] = (c->symbol_rate / 1000) & 0xff;
> + cmd.args[5] = ((c->symbol_rate / 1000) >> 8) & 0xff;
> + cmd.wlen = 6;
> + cmd.rlen = 4;
> + ret = si2168_cmd_execute(s, &cmd);
> + if (ret)
> + goto err;
> + }
> +
> memcpy(cmd.args, "\x14\x00\x0f\x10\x10\x00", 6);
> cmd.wlen = 6;
> cmd.rlen = 4;
>
--
http://palosaari.fi/
prev parent reply other threads:[~2014-07-17 21:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 17:31 [PATCH 1/1] si2168: Set symbol_rate in set_frontend for DVB-C delivery system Luis Alves
2014-07-17 21:32 ` 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=53C840D6.8040208@iki.fi \
--to=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
--cc=ljalvs@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.