From: Dominik Kuhlen <dkuhlen@gmx.net>
To: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] Pinnacle PCTV Sat HDTV Pro USB (PCTV452e) and TT-Connect-S2-3600 final version
Date: Sat, 19 Apr 2008 11:54:20 +0200 [thread overview]
Message-ID: <200804191154.20445.dkuhlen@gmx.net> (raw)
In-Reply-To: <200804190101.14457.dkuhlen@gmx.net>
[-- Attachment #1.1.1: Type: text/plain, Size: 620 bytes --]
Hi,
Good news for all stb0899 owners :)
On Saturday 19 April 2008, Dominik Kuhlen wrote:
> Hi,
>
> Here is my current version after quite a while of testing and tuning:
> I stripped the stb0899 tuning/searching algo to speed up tuning a bit
> now I have very fast and reliable locks (no failures, no errors)
>
The frequency reported by DVBFE_GET_PARAMS when in DVB-S2 mode is not correct.
The attached patch fixes this:
Now i can request any frequency near the center (even more than 10MHz lower or higher)
and the reported frequency is within a few kHz of the actual center frequency.
Dominik
[-- Attachment #1.1.2: patch_multiproto_dvbs2_frequency.diff --]
[-- Type: text/x-diff, Size: 1178 bytes --]
diff -r 42a7b0fff69d linux/drivers/media/dvb/frontends/stb0899_algo.c
--- a/linux/drivers/media/dvb/frontends/stb0899_algo.c Sat Apr 19 11:27:44 2008 +0200
+++ b/linux/drivers/media/dvb/frontends/stb0899_algo.c Sat Apr 19 11:30:47 2008 +0200
@@ -1539,14 +1539,16 @@ enum stb0899_status stb0899_dvbs2_algo(s
/* Store signal parameters */
offsetfreq = STB0899_READ_S2REG(STB0899_S2DEMOD, CRL_FREQ);
+ if (offsetfreq & 0x20000000) {
+ /* sign extension */
+ offsetfreq |= 0xc0000000;
+ }
+ /* use 64-bit arithmetic to avoid overflow */
+ offsetfreq = (s32)((s64)offsetfreq *
+ ((s64)internal->master_clk / (s64)1000000) /
+ ((s64)((1 << 30) / (s64)1000)));
- offsetfreq = offsetfreq / ((1 << 30) / 1000);
- offsetfreq *= (internal->master_clk / 1000000);
- reg = STB0899_READ_S2REG(STB0899_S2DEMOD, DMD_CNTRL2);
- if (STB0899_GETFIELD(SPECTRUM_INVERT, reg))
- offsetfreq *= -1;
-
- internal->freq = internal->freq - offsetfreq;
+ internal->freq = internal->freq + offsetfreq;
internal->srate = stb0899_dvbs2_get_srate(state);
reg = STB0899_READ_S2REG(STB0899_S2DEMOD, UWP_STAT2);
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-04-19 9:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 23:01 [linux-dvb] Pinnacle PCTV Sat HDTV Pro USB (PCTV452e) and TT-Connect-S2-3600 final version Dominik Kuhlen
2008-04-19 9:54 ` Dominik Kuhlen [this message]
2008-04-19 19:45 ` Faruk A
2008-04-20 8:54 ` [linux-dvb] Pinnacle PCTV Sat HDTV Pro USB (PCTV452e) and TT-Connect-S2-3600 final version (RC-keymap) Dominik Kuhlen
2008-04-20 13:05 ` Faruk A
2008-04-20 15:39 ` Dominik Kuhlen
2008-04-20 19:48 ` Faruk A
2008-04-20 20:15 ` Dominik Kuhlen
2008-04-23 20:41 ` Faruk A
2008-04-20 20:31 ` Dominik Kuhlen
2008-04-28 22:00 ` Faruk A
2008-04-19 12:16 ` [linux-dvb] Re : Pinnacle PCTV Sat HDTV Pro USB (PCTV452e) and TT-Connect-S2-3600 final version manu
2008-04-20 9:03 ` Dominik Kuhlen
2008-04-20 12:51 ` [linux-dvb] Re : " manu
2008-04-19 17:48 ` [linux-dvb] " manu
2008-05-21 11:47 ` [linux-dvb] " Anssi Hannula
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=200804191154.20445.dkuhlen@gmx.net \
--to=dkuhlen@gmx.net \
--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