From: Sigmund Augdal <sigmund@snap.tv>
To: linux-dvb <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] [PATCH] experimental support for C-1501
Date: Thu, 05 Jun 2008 11:10:11 +0200 [thread overview]
Message-ID: <1212657011.32385.53.camel@pascal> (raw)
In-Reply-To: <1212590233.15236.11.camel@rommel.snap.tv>
[-- Attachment #1: Type: text/plain, Size: 2383 bytes --]
On Wed, 2008-06-04 at 16:37 +0200, Sigmund Augdal wrote:
> ons, 04.06.2008 kl. 16.58 +0300, skrev Antti Palosaari:
> > Sigmund Augdal wrote:
> > > The following experimental patch adds support for the technotrend budget
> > > C-1501 dvb-c card. The parameters used to configure the tda10023 demod
> > > chip are largely determined experimentally, but works quite for me in my
> > > initial tests.
> >
> > You finally found correct values :) I see that it uses same clock
> > settings than Anysee. Also deltaf could be correct because I remember
> > from my tests that it cannot set wrong otherwise it will not work at
> > all. How did you find defltaf?
> I guessed the clock settings based on how the same tuner is used by a
> different demod. The deltaf value was found by trial and error (helped
> by some scripting). deltaf values slightly off will also work, but
> tuning will be very slow. I also think the deltaf value will depend on
> the bandwidth of the transponder tuned. All transponders I've tested
> with are 8MHz, but I think other values are possible, and these will
> most likely not work. I submitted the patch anyway in the hope that some
> broader testing might help uncover any remaining problems.
> >
> > Your patch has at least coding style issues, please run make checkpatch
> > fix errors and resend patch.
> I was trying to follow the guidelines, but I guess I wasn't doing that
> good enough. Will try to clean that up and resend soon.
Here is a new version. This one passes checkpatch without warnings. I
removed the read_pwm function, as it always uses the fallback path for
my card (and frankly I have no idea wether it is actually relevant at
all for this kind of card). Furthermore the tda10023 driver doesn't seem
to use this value for anything.
Best regards
Sigmund Augdal
>
> regards
> Sigmund
> >
> > regards
> > Antti
> >
> > >
> > > Signed-Off-By: Sigmund Augdal <sigmund@snap.tv>
> > >
> > >
> > > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > linux-dvb mailing list
> > > linux-dvb@linuxtv.org
> > > http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
> >
> >
>
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>
[-- Attachment #2: c-1501_try2.patch --]
[-- Type: text/x-patch, Size: 1887 bytes --]
Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
diff -r 6541620a09b7 linux/drivers/media/dvb/ttpci/budget-ci.c
--- a/linux/drivers/media/dvb/ttpci/budget-ci.c Tue Jun 03 10:32:16 2008 -0300
+++ b/linux/drivers/media/dvb/ttpci/budget-ci.c Thu Jun 05 11:02:28 2008 +0200
@@ -46,6 +46,8 @@
#include "lnbp21.h"
#include "bsbe1.h"
#include "bsru6.h"
+#include "tda1002x.h"
+#include "tda827x.h"
/*
* Regarding DEBIADDR_IR:
@@ -1069,6 +1071,16 @@
+static struct tda10023_config tda10023_config = {
+ .demod_address = 0xc,
+ .invert = 0,
+ .xtal = 16000000,
+ .pll_m = 11,
+ .pll_p = 3,
+ .pll_n = 1,
+ .deltaf = 0xA511,
+};
+
static void frontend_init(struct budget_ci *budget_ci)
{
switch (budget_ci->budget.dev->pci->subsystem_device) {
@@ -1137,6 +1149,20 @@
}
}
+ break;
+ case 0x101a: /* TT Budget-C-1501 (philips tda10023/philips tda8274A) */
+ budget_ci->budget.dvb_frontend =
+ dvb_attach(tda10023_attach, &tda10023_config,
+ &budget_ci->budget.i2c_adap, 0x48);
+ if (budget_ci->budget.dvb_frontend) {
+ if (dvb_attach(tda827x_attach,
+ budget_ci->budget.dvb_frontend, 0x61,
+ &budget_ci->budget.i2c_adap, NULL)
+ == NULL)
+ printk(KERN_ERR "%s: No tda827x found!\n",
+ __func__);
+ break;
+ }
break;
}
@@ -1226,6 +1252,7 @@
MAKE_BUDGET_INFO(ttbt2, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT);
MAKE_BUDGET_INFO(ttbtci, "TT-Budget-T-CI PCI", BUDGET_TT);
MAKE_BUDGET_INFO(ttbcci, "TT-Budget-C-CI PCI", BUDGET_TT);
+MAKE_BUDGET_INFO(ttc1501, "TT-Budget C-1501 PCI", BUDGET_TT);
static struct pci_device_id pci_tbl[] = {
MAKE_EXTENSION_PCI(ttbci, 0x13c2, 0x100c),
@@ -1234,6 +1261,7 @@
MAKE_EXTENSION_PCI(ttbt2, 0x13c2, 0x1011),
MAKE_EXTENSION_PCI(ttbtci, 0x13c2, 0x1012),
MAKE_EXTENSION_PCI(ttbs2, 0x13c2, 0x1017),
+ MAKE_EXTENSION_PCI(ttc1501, 0x13c2, 0x101A),
{
.vendor = 0,
}
[-- Attachment #3: 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-06-05 9:10 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 13:14 [linux-dvb] [PATCH] experimental support for C-1501 Sigmund Augdal
2008-06-04 13:58 ` Antti Palosaari
2008-06-04 14:37 ` Sigmund Augdal
2008-06-04 17:28 ` [linux-dvb] diseqc VP-1041 skystar hd2 joep
2008-06-09 17:06 ` joep
2008-06-05 9:10 ` Sigmund Augdal [this message]
2008-06-08 15:38 ` [linux-dvb] [PATCH] experimental support for C-1501 Oliver Endriss
2008-06-09 5:21 ` Arthur Konovalov
2008-06-09 10:00 ` Sigmund Augdal
2008-06-09 10:29 ` Arthur Konovalov
2008-06-14 20:07 ` Simon Baxter
2008-06-14 22:08 ` Arthur Konovalov
2008-06-17 18:51 ` Oliver Endriss
-- strict thread matches above, loose matches on Subject: below --
2008-06-15 17:23 SG
2008-06-16 5:14 ` Arthur Konovalov
2008-06-16 12:40 ` Sigmund Augdal
[not found] ` <20080616142616.75F9C3BC99@waldorfmail.homeip.net>
2008-06-16 14:33 ` Sigmund Augdal
2008-06-16 17:42 ` SG
2008-06-16 18:07 ` SG
2008-06-16 18:20 ` SG
2008-06-17 13:13 ` Antti Palosaari
2008-06-16 18:54 ` Arthur Konovalov
2008-07-14 2:31 ` Simon Baxter
2008-07-14 16:56 ` Arthur Konovalov
2008-07-18 9:46 ` Simon Baxter
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=1212657011.32385.53.camel@pascal \
--to=sigmund@snap.tv \
--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.