The patch number 8049 was added via Oliver Endriss <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Sigmund Augdal  <[EMAIL PROTECTED]>
budget-ci: Add support for Technotrend budget C-1501 dvb-c card


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.

Signed-off-by: Sigmund Augdal <[EMAIL PROTECTED]>
Signed-off-by: Oliver Endriss <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/ttpci/budget-ci.c |   25 +++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff -r 78442352b885 -r dd848702aabe linux/drivers/media/dvb/ttpci/budget-ci.c
--- a/linux/drivers/media/dvb/ttpci/budget-ci.c Sun Jun 15 10:33:42 2008 -0300
+++ b/linux/drivers/media/dvb/ttpci/budget-ci.c Sun Jun 15 19:25:46 2008 +0200
@@ -46,6 +46,8 @@
 #include "lnbp21.h"
 #include "bsbe1.h"
 #include "bsru6.h"
+#include "tda1002x.h"
+#include "tda827x.h"
 
 /*
  * Regarding DEBIADDR_IR:
@@ -1066,6 +1068,15 @@ static struct stv0297_config dvbc_philip
        .stop_during_read = 1,
 };
 
+static struct tda10023_config tda10023_config = {
+       .demod_address = 0xc,
+       .invert = 0,
+       .xtal = 16000000,
+       .pll_m = 11,
+       .pll_p = 3,
+       .pll_n = 1,
+       .deltaf = 0xa511,
+};
 
 
 
@@ -1136,7 +1147,17 @@ static void frontend_init(struct budget_
                                budget_ci->budget.dvb_frontend = NULL;
                        }
                }
-
+               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__);
+                               
dvb_frontend_detach(budget_ci->budget.dvb_frontend);
+                               budget_ci->budget.dvb_frontend = NULL;
+                       }
+               }
                break;
        }
 
@@ -1226,6 +1247,7 @@ MAKE_BUDGET_INFO(ttbt2, "TT-Budget/WinTV
 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 +1256,7 @@ static struct pci_device_id pci_tbl[] = 
        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,
         }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/dd848702aabe5977d9aa72d57c94ff3bd0493488

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

Reply via email to