From patchwork Wed Jun 10 17:16:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wong X-Patchwork-Id: 29339 X-Patchwork-Delegate: dougsland@redhat.com 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 n5AHGaiJ019555 for ; Wed, 10 Jun 2009 17:16:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752590AbZFJRQM (ORCPT ); Wed, 10 Jun 2009 13:16:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752307AbZFJRQM (ORCPT ); Wed, 10 Jun 2009 13:16:12 -0400 Received: from qw-out-2122.google.com ([74.125.92.25]:3615 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751889AbZFJRQL (ORCPT ); Wed, 10 Jun 2009 13:16:11 -0400 Received: by qw-out-2122.google.com with SMTP id 5so607523qwd.37 for ; Wed, 10 Jun 2009 10:16:13 -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:cc:content-type; bh=cuoDH6JyghgFnv00agqYJmW3sEWn3ctIg8HnihFLj4w=; b=Hm04ps7+VLFAA22Jv9tkR0IoW5PLjWOVri/LwzaFJ3iivOp29v3raBIBrGZ716p6aR x9uS0IQmdgN6EbuVbFSfp6M9QAL1weB+B1ztj7H/EUzVhLQbyiZUT3UsPS1S7t5//Ize h4TNT0fVHj/FFDn/KTdXFFqJ8aOuQ9DYR1OdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=JM5sWsa1XpO53rb9B2rTUvA0lSCfOEjKnFL2/xNKbfHtcg4OJvZ+nmiSp092vuw8Vs QkiXFf4N5UUJK1fWt2gDwW+4/lUIyP6tDVpz06GLlZrjhTuo4DVZLstWzgy88jOItm0r rqt4c14bX1xxW/ViTkmd75FsfRtUYsz7Gxg/4= MIME-Version: 1.0 Received: by 10.231.15.6 with SMTP id i6mr533075iba.12.1244654173235; Wed, 10 Jun 2009 10:16:13 -0700 (PDT) Date: Thu, 11 Jun 2009 01:16:13 +0800 Message-ID: <15ed362e0906101016g13b81df6h1282e3bd410928b2@mail.gmail.com> Subject: [PATCH] [Resend] cxusb, d680 dmbth use unified lgs8gxx code instead of lgs8gl5 From: David Wong To: linux-media@vger.kernel.org Cc: mchehab@infradead.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Use unified lgs8gxx frontend instead of reverse engineered lgs8gl5 frontend. After this patch, lgs8gl5 frontend could be mark as deprecated. Future development should base on unified lgs8gxx frontend. Signed-off-by: David T.L. Wong gmail.com> changeset: 11831:2fe3ef06a8e2 tag: tip user: marvel@DHM200 date: Mon May 18 17:03:36 2009 +0800 summary: cxusb: d680 switch from lgs8gl5 to unified lgs8gxx frontend driver diff -r 32e66a2bd568 -r 2fe3ef06a8e2 linux/drivers/media/dvb/dvb-usb/cxusb.c --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c Mon May 18 16:01:15 2009 +0800 +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c Mon May 18 17:03:36 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;