* [linux-dvb] TT C-1501 patch and multiproto not compile
@ 2008-09-06 19:27 Simon Baxter
2008-09-06 22:22 ` Manu Abraham
0 siblings, 1 reply; 2+ messages in thread
From: Simon Baxter @ 2008-09-06 19:27 UTC (permalink / raw)
To: linux-dvb
[-- Attachment #1: Type: text/plain, Size: 3657 bytes --]
Hi
I can't get the attached patch to compile with the current or with 7213 of
the multi-proto branch. I get the following errors.
Also, is the support for this TechnoTrend variant card going to be included
as standard?
[root@freddy multiproto]# make
make -C /usr/src/development/multiproto/v4l
make[1]: Entering directory `/usr/src/development/multiproto/v4l'
creating symbolic links...
Kernel build directory is /lib/modules/2.6.25.14-108.fc9.x86_64/build
make -C /lib/modules/2.6.25.14-108.fc9.x86_64/build
SUBDIRS=/usr/src/development/multiproto/v4l modules
make[2]: Entering directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
CC [M] /usr/src/development/multiproto/v4l/budget-ci.o
/usr/src/development/multiproto/v4l/budget-ci.c:1342: error: variable
'tda10023_config' has initializer but incomplete type
/usr/src/development/multiproto/v4l/budget-ci.c:1343: error: unknown field
'demod_address' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1343: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1343: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c:1344: error: unknown field
'invert' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1344: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1344: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c:1345: error: unknown field
'xtal' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1345: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1345: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c:1346: error: unknown field
'pll_m' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1346: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1346: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c:1347: error: unknown field
'pll_p' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1347: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1347: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c:1348: error: unknown field
'pll_n' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1348: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1348: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c:1349: error: unknown field
'deltaf' specified in initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1349: warning: excess
elements in struct initializer
/usr/src/development/multiproto/v4l/budget-ci.c:1349: warning: (near
initialization for 'tda10023_config')
/usr/src/development/multiproto/v4l/budget-ci.c: In function
'frontend_init':
/usr/src/development/multiproto/v4l/budget-ci.c:1422: warning: passing
argument 1 of '__a' from incompatible pointer type
make[3]: *** [/usr/src/development/multiproto/v4l/budget-ci.o] Error 1
make[2]: *** [_module_/usr/src/development/multiproto/v4l] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/development/multiproto/v4l'
make: *** [all] Error 2
[root@freddy multiproto]#
Can anyone help?
Thanks
Simon
[-- Attachment #2: c-1501_try2.patch --]
[-- Type: application/octet-stream, Size: 1954 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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [linux-dvb] TT C-1501 patch and multiproto not compile
2008-09-06 19:27 [linux-dvb] TT C-1501 patch and multiproto not compile Simon Baxter
@ 2008-09-06 22:22 ` Manu Abraham
0 siblings, 0 replies; 2+ messages in thread
From: Manu Abraham @ 2008-09-06 22:22 UTC (permalink / raw)
To: Simon Baxter; +Cc: linux-dvb
Simon Baxter wrote:
> Hi
>
> I can't get the attached patch to compile with the current or with 7213
> of the multi-proto branch. I get the following errors.
>
> Also, is the support for this TechnoTrend variant card going to be
> included as standard?
>
> [root@freddy multiproto]# make
>
> Can anyone help?
>
I have just updated the multiproto tree. Please try a fresh clone.
Also have applied the patch from Anssi Hannula:
"add support for using multiproto drivers with old api"
thereby allowing the "multistandard" drivers to use the old applications
such as szap, scan, (applications supported by the old API) without any
modifications for the "QPSK" (DVB-S) mode of operation alone.
NOTE: The push is going on, it will be a short while for the repository
to be populated.
Regards,
Manu
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-06 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-06 19:27 [linux-dvb] TT C-1501 patch and multiproto not compile Simon Baxter
2008-09-06 22:22 ` Manu Abraham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox