public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Christophe Thommeret <hftom@free.fr>
To: Darron Broad <darron@kewl.org>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] [PATCH] cx24116 DVB-S modulation fix
Date: Wed, 15 Oct 2008 20:59:26 +0200	[thread overview]
Message-ID: <200810152059.27034.hftom@free.fr> (raw)
In-Reply-To: <13726.1224091355@kewl.org>

Le Wednesday 15 October 2008 19:22:35 Darron Broad, vous avez écrit :
> In message <200810151846.59042.hftom@free.fr>, Christophe Thommeret wrote:
>
> hi.
>
> <snip>
>
> >Other subject:
> >Would you accept some patch to enhance cx24116 pilot_auto emulation?
>
> If you present your patch and it enhances or fixes something
> then I am sure people will support it.

I don't know to which tree to apply, so i give the code as is (it's pretty 
simple):

Since 8PSK (and higher mod) signals are very likely to have pilot symbols, 
pilot_auto should start with pilot_on for 8PSK.
And since QPSK signals are unlikely to have pilot, pilot_auto should start 
with pilot_off for QPSK.

Without the patch:
QPSK tuning delay: ~100ms
8PSK tuning delay: ~900ms
with patch:
QPSK tuning delay: ~100ms
8PSK tuning delay: ~100ms


static int cx24116_set_frontend(struct dvb_frontend* fe, struct 
dvb_frontend_parameters *p)
....
....
case SYS_DVBS2:
...
...
switch(c->pilot) {
				case PILOT_AUTO:	/* Not supported but emulated */
					retune = 2;	/* Fall-through */
					if ( c->modulation==QPSK )
						state->dnxt.pilot_val = CX24116_PILOT_OFF;
					else
						state->dnxt.pilot_val = CX24116_PILOT_ON;
					break;
...
...
/* Toggle pilot bit when in auto-pilot */
		if(state->dcur.pilot == PILOT_AUTO) {
			if ( state->dnxt.pilot_val== CX24116_PILOT_OFF )
				cmd.args[0x07] ^= CX24116_PILOT_ON;
			else
				cmd.args[0x07] ^= CX24116_PILOT_OFF;
		}

....
...




-- 
Christophe Thommeret


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

  reply	other threads:[~2008-10-15 19:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14  9:33 [linux-dvb] [PATCH] cx24116 DVB-S modulation fix Christophe Thommeret
2008-10-14 10:29 ` Darron Broad
2008-10-14 12:51   ` Christophe Thommeret
2008-10-14 15:10     ` Steven Toth
2008-10-14 17:02     ` Darron Broad
2008-10-15 16:46       ` Christophe Thommeret
2008-10-15 17:22         ` Darron Broad
2008-10-15 18:59           ` Christophe Thommeret [this message]
2008-10-14 21:05     ` Andreas Oberritter

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=200810152059.27034.hftom@free.fr \
    --to=hftom@free.fr \
    --cc=darron@kewl.org \
    --cc=linux-dvb@linuxtv.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