From: "Hans Werner" <HWerner4@gmx.de>
To: "Alex Betis" <alex.betis@gmail.com>, linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] [ANNOUNCE] scan-s2 is available, please test
Date: Tue, 04 Nov 2008 16:50:24 +0100 [thread overview]
Message-ID: <20081104155024.68280@gmx.net> (raw)
In-Reply-To: <c74595dc0811031212p1ebe023fm43e81861650fcd6d@mail.gmail.com>
I don't know if anyone mentioned it already, but scan-s2 does not work for DVB-T.
Here is a patch which fixes DVB-T support.
Signed-off-by: Hans Werner <hwerner4@gmx.de>
diff -r fff2d1f1fd4f scan.c
--- a/scan.c Fri Oct 31 14:07:06 2008 +0200
+++ b/scan.c Tue Nov 04 15:38:09 2008 +0000
@@ -1523,6 +1523,7 @@ static int __tune_to_transponder (int fr
int i;
fe_status_t s;
uint32_t if_freq;
+ uint32_t bandwidth_hz = 0;
current_tp = t;
struct dtv_property p_clear[] = {
@@ -1580,7 +1581,22 @@ static int __tune_to_transponder (int fr
if (verbosity >= 2)
dprintf(1,"DVB-S IF freq is %d\n", if_freq);
}
-
+ else if (t->delivery_system == SYS_DVBT) {
+ if_freq=t->frequency;
+ if (t->bandwidth == BANDWIDTH_6_MHZ)
+ bandwidth_hz = 6000000;
+ else if (t->bandwidth == BANDWIDTH_7_MHZ)
+ bandwidth_hz = 7000000;
+ else if (t->bandwidth == BANDWIDTH_8_MHZ)
+ bandwidth_hz = 8000000;
+ else
+ /* Including BANDWIDTH_AUTO */
+ bandwidth_hz = 0;
+ if (verbosity >= 2){
+ dprintf(1,"DVB-T frequency is %d\n", if_freq);
+ dprintf(1,"DVB-T bandwidth is %d\n", bandwidth_hz);
+ }
+ }
struct dvb_frontend_event ev;
struct dtv_property p_tune[] = {
@@ -1591,11 +1607,12 @@ static int __tune_to_transponder (int fr
{ .cmd = DTV_INNER_FEC, .u.data = t->fec },
{ .cmd = DTV_INVERSION, .u.data = t->inversion },
{ .cmd = DTV_ROLLOFF, .u.data = t->rolloff },
- { .cmd = DTV_PILOT, .u.data = PILOT_AUTO },
+ { .cmd = DTV_BANDWIDTH_HZ, .u.data = bandwidth_hz },
+ { .cmd = DTV_PILOT, .u.data = PILOT_AUTO },
{ .cmd = DTV_TUNE },
};
struct dtv_properties cmdseq_tune = {
- .num = 9,
+ .num = 10,
.props = p_tune
};
--
Release early, release often.
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
_______________________________________________
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-11-04 15:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-25 21:52 [linux-dvb] [ANNOUNCE] scan-s2 is available, please test Alex Betis
2008-10-28 9:27 ` oleg roitburd
2008-10-28 19:23 ` Alex Betis
2008-10-28 20:05 ` oleg roitburd
2008-10-28 20:20 ` Alex Betis
2008-10-30 22:10 ` Alex Betis
2008-10-31 11:58 ` Goga777
2008-10-31 12:06 ` Alex Betis
[not found] ` <157f4a8c0811030703w195a4947uab8c3076173898e5@mail.gmail.com>
2008-11-03 18:04 ` hudo kkow
2008-11-03 20:12 ` Alex Betis
2008-11-04 15:50 ` Hans Werner [this message]
2008-11-04 16:11 ` Alex Betis
2008-11-12 19:31 ` Alex Betis
2008-11-13 0:57 ` Hans Werner
2008-10-29 15:51 ` Mika Laitio
2008-10-29 19:19 ` Alex Betis
2008-10-29 21:27 ` Mika Laitio
2008-10-30 4:29 ` Alex Betis
2008-11-01 15:11 ` Michel Verbraak
2008-11-01 15:20 ` Goga777
2008-11-01 15:44 ` Michel Verbraak
2008-11-01 15:50 ` Goga777
2008-11-01 15:59 ` Michel Verbraak
2008-11-02 5:06 ` Alex Betis
2008-11-03 15:20 ` hudo kkow
2008-11-02 5:03 ` Alex Betis
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=20081104155024.68280@gmx.net \
--to=hwerner4@gmx.de \
--cc=alex.betis@gmail.com \
--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 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.