From patchwork Wed Mar 9 14:35:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Cairns X-Patchwork-Id: 621491 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p29Egdfb024300 for ; Wed, 9 Mar 2011 14:42:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932658Ab1CIOmh (ORCPT ); Wed, 9 Mar 2011 09:42:37 -0500 Received: from web33508.mail.mud.yahoo.com ([68.142.206.157]:22187 "HELO web33508.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932317Ab1CIOmg convert rfc822-to-8bit (ORCPT ); Wed, 9 Mar 2011 09:42:36 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 09 Mar 2011 14:42:39 +0000 (UTC) X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Wed, 09 Mar 2011 09:42:36 EST Received: (qmail 105 invoked by uid 60001); 9 Mar 2011 14:35:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1299681355; bh=ERbzjxk0KJ9GC11ctL57l99im7tpZfxz2zxowfhKlM8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LU5w4PLiLsrdfv1nXD39jP7FXAA3n7mL6x4b/pODmPlqYFRFw5yOUnrNWXdsakqIjsJn+8uSxhziF4t37eChA+WwGHCRrGfJVyV4uI9mK+cue426b7TCVdT910XVvtkOvXd/Xk3zb3lmspTLR32vtPYGR9t2cothAth64u92iDo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QlaQVQb3n33El0vfomtMlHD4rz0Zf2BM12pQ+fW1c67zG0o39vAEd+UDjaCZKYC932fhUec+KlByq6A8TxKunmrO09RCHAsxZOJVANv9hyVT2UHu5eQeN8vmcPdugaV8OTiSz5oag/v3nznlNIuNeoYWGf88eXehA4fKjotqOHk=; Message-ID: <738177.69799.qm@web33508.mail.mud.yahoo.com> X-YMail-OSG: 6CNnteUVM1lutZaRJOhli_Y9wPUCElqmg6Id_fzMVneZjS. OE.PjihxPjkb_u.uVqR4uPC0FxvBNU6py2Rbcye3WzhWrI5REXNgnCstT7HF rQ51AzZdCJnOlp_3ZFyKuef1eUb3afJZyFvk.NQEgMYCL5cgOLqILmLQG_v_ Px3NjVYjnAfbTakTAGklOkEJcWANocXy1V5q0ihZBzvvpKoECsTZl6FviC3p aXUHVo2rsL3DLUtyRbjvC.cmSiLYFyZ.8ej7hdxKbEPo48p.nTEjNW2PuuV8 2SWhhWs1ruaEYRogPGxJMv0s1UXI3OSLqX80o7RdbwK8pAUgvqVMMnyoVQRh CYaGRXLpQ3AWFdtf_ARY- Received: from [62.50.207.240] by web33508.mail.mud.yahoo.com via HTTP; Wed, 09 Mar 2011 06:35:55 PST X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.295617 Date: Wed, 9 Mar 2011 06:35:55 -0800 (PST) From: Patrick Cairns Subject: TT-budget S-1500b card support To: linux-media@vger.kernel.org MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -Naur budget-ci.c.orig budget-ci.c --- budget-ci.c.orig 2011-03-09 13:20:28.000000000 +0000 +++ budget-ci.c 2011-03-09 13:23:37.000000000 +0000 @@ -48,6 +48,8 @@ #include "stb0899_cfg.h" #include "stb6100.h" #include "stb6100_cfg.h" +#include "stv0288.h" +#include "stb6000.h" #include "lnbp21.h" #include "bsbe1.h" #include "bsru6.h" @@ -217,6 +219,7 @@ case 0x1017: case 0x1019: case 0x101a: + case 0x101b: /* for the Technotrend 1500 bundled remote */ ir_codes = RC_MAP_TT_1500; break; @@ -1303,6 +1306,11 @@ .refclock = 27000000, }; +static struct stv0288_config tt1500_stv0288_config = { + .demod_address = 0x68, + .min_delay_ms = 100, +}; + static void frontend_init(struct budget_ci *budget_ci) { switch (budget_ci->budget.dev->pci->subsystem_device) { @@ -1372,6 +1380,22 @@ } break; + case 0x101b: // TT S-1500B PCI + budget_ci->budget.dvb_frontend = dvb_attach(stv0288_attach, &tt1500_stv0288_config, &budget_ci->budget.i2c_adap); + if (budget_ci->budget.dvb_frontend) { + if (dvb_attach(stb6000_attach, budget_ci->budget.dvb_frontend, 0x63, &budget_ci->budget.i2c_adap) != NULL) { + if (!dvb_attach(lnbp21_attach, budget_ci->budget.dvb_frontend, &budget_ci->budget.i2c_adap, 0, 0)) { + printk("%s: No LNBP21 found!\n", __func__); + dvb_frontend_detach(budget_ci->budget.dvb_frontend); + budget_ci->budget.dvb_frontend = NULL; + } + } else { + dvb_frontend_detach(budget_ci->budget.dvb_frontend); + budget_ci->budget.dvb_frontend = NULL; + } + } + break; +