From patchwork Tue Mar 17 15:56:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wong X-Patchwork-Id: 12634 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2HFvGD7026062 for ; Tue, 17 Mar 2009 15:57:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753296AbZCQP47 (ORCPT ); Tue, 17 Mar 2009 11:56:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755477AbZCQP47 (ORCPT ); Tue, 17 Mar 2009 11:56:59 -0400 Received: from rv-out-0506.google.com ([209.85.198.224]:5290 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbZCQP47 (ORCPT ); Tue, 17 Mar 2009 11:56:59 -0400 Received: by rv-out-0506.google.com with SMTP id g37so61083rvb.1 for ; Tue, 17 Mar 2009 08:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=rRRLc5N15HZoHyrKsQPRHuRJohNPwuk7XyFUjlykjlA=; b=sv86+6xEN4GgaeSdOWawUp1z4MhfRh0N4Nx0FT79YLjx5AG/FRdICvEcTlt1ylnJQf CvT/SJwd/U96ehORCR3H13sGgwCLx971wAHZ/LlTFUDnFgA2kAeBBT3HLDw9fm3HHa4D G9RAzUVXfjTHNIt5XUsae+sWaC0J4Y+XWDbv0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lvJPAIiYxwolVrUAbe0X26cgrRs14Zg+Tq5ulBx1Ygmdt75ncjIkWGIKW71GS/TyT/ ZczbUxJ42W592Eb/9zyUxkwbzv2Bg8XPXkJEPWBJTgPP5j9GZSA5+8QjUlymRT0gM3Gh i4ILW/9lB669G8FvQfRpPytmj4MBOzKlyQJmA= MIME-Version: 1.0 Received: by 10.140.133.10 with SMTP id g10mr36881rvd.113.1237305417501; Tue, 17 Mar 2009 08:56:57 -0700 (PDT) Date: Tue, 17 Mar 2009 23:56:57 +0800 Message-ID: <15ed362e0903170856g17e5fa47i9fb3ac927c2d25a5@mail.gmail.com> Subject: [PATCH] CXUSB D680 DMB using unified lgs8gxx driver From: David Wong To: linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch replace the use of lgs8gl5 driver by unified lgs8gxx driver, for CXUSB D680 DMB (MagicPro ProHDTV) David T.L. Wong diff -r 626c136ec221 linux/drivers/media/dvb/dvb-usb/cxusb.c --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c Fri Mar 13 14:35:14 2009 -0700 +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c Tue Mar 17 23:17:16 2009 +0800 @@ -38,7 +38,7 @@ #include "mxl5005s.h" #include "dib7000p.h" #include "dib0070.h" -#include "lgs8gl5.h" +#include "lgs8gxx.h" /* debug */ static int dvb_usb_cxusb_debug; @@ -1097,8 +1097,18 @@ return -EIO; } -static struct lgs8gl5_config lgs8gl5_cfg = { +static struct lgs8gxx_config d680_lgs8gl5_cfg = { + .prod = LGS8GXX_PROD_LGS8GL5, .demod_address = 0x19, + .serial_ts = 0, + .ts_clk_pol = 0, + .ts_clk_gated = 1, + .if_clk_freq = 30400, /* 30.4 MHz */ + .if_freq = 5725, /* 5.725 MHz */ + .if_neg_center = 0, + .ext_adc = 0, + .adc_signed = 0, + .if_neg_edge = 0, }; static int cxusb_d680_dmb_frontend_attach(struct dvb_usb_adapter *adap) @@ -1138,7 +1148,7 @@ msleep(100); /* Attach frontend */ - adap->fe = dvb_attach(lgs8gl5_attach, &lgs8gl5_cfg, &d->i2c_adap); + adap->fe = dvb_attach(lgs8gxx_attach, &d680_lgs8gl5_cfg, &d->i2c_adap); if (adap->fe == NULL) return -EIO;