From patchwork Sun Jul 3 17:03:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Endriss X-Patchwork-Id: 370 Return-path: Envelope-to: mchehab@pedra Delivery-date: Sun, 03 Jul 2011 14:06:08 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1QdQ7T-0000lB-T7 for mchehab@pedra; Sun, 03 Jul 2011 14:06:08 -0300 Received: from mail.corp.redhat.com [10.5.5.51] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Sun, 03 Jul 2011 14:06:07 -0300 (BRT) Received: from zmta03.collab.prod.int.phx2.redhat.com (LHLO zmta03.collab.prod.int.phx2.redhat.com) (10.5.5.33) by mail05.corp.redhat.com with LMTP; Sun, 3 Jul 2011 13:05:49 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zmta03.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 4E72D4D5F5 for ; Sun, 3 Jul 2011 13:05:49 -0400 (EDT) Received: from zmta03.collab.prod.int.phx2.redhat.com ([127.0.0.1]) by localhost (zmta03.collab.prod.int.phx2.redhat.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M8tLUkbFrIRf for ; Sun, 3 Jul 2011 13:05:49 -0400 (EDT) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by zmta03.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 3B0AB4D5D8 for ; Sun, 3 Jul 2011 13:05:49 -0400 (EDT) Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.19]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p63H5mEp006449 for ; Sun, 3 Jul 2011 13:05:48 -0400 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.redhat.com (8.14.4/8.14.4) with SMTP id p63H5kVM002441 for ; Sun, 3 Jul 2011 13:05:46 -0400 Received: (qmail invoked by alias); 03 Jul 2011 17:05:45 -0000 Received: from p5DE56C0C.dip.t-dialin.net (HELO charon.escape-edv.de) [93.229.108.12] by mail.gmx.net (mp005) with SMTP; 03 Jul 2011 19:05:45 +0200 X-Authenticated: #476490 X-Provags-ID: V01U2FsdGVkX1+U54BnHGOUX1MrcQGVnztUNLG87b6mRbgXrzqWWH 9Be+N3pLOxTbLk Received: from orion.escape-edv.de (192.168.1.10) by charon.escape-edv.de (192.168.1.9) with esmtp ; Sun, 03 Jul 2011 19:06:27 +0200 From: Oliver Endriss Organization: ESCAPE GmbH EDV-Loesungen To: linux-media@vger.kernel.org Subject: [PATCH 15/16] ngene: Update for latest cxd2099 Date: Sun, 3 Jul 2011 19:03:49 +0200 User-Agent: KMail/1.9.6 Cc: Mauro Carvalho Chehab References: <201107031831.20378@orion.escape-edv.de> In-Reply-To: <201107031831.20378@orion.escape-edv.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201107031903.50571@orion.escape-edv.de> X-Y-GMX-Trusted: 0 X-RedHat-Spam-Score: 0.001 (FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Scanned-By: MIMEDefang 2.68 on 10.5.110.19 Sender: Modifications for latest cxd2099. Signed-off-by: Oliver Endriss --- drivers/media/dvb/ngene/ngene-core.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c index fa4b3eb..df0f0bd 100644 --- a/drivers/media/dvb/ngene/ngene-core.c +++ b/drivers/media/dvb/ngene/ngene-core.c @@ -1582,11 +1582,18 @@ static int init_channels(struct ngene *dev) return 0; } +static struct cxd2099_cfg cxd_cfg = { + .bitrate = 62000, + .adr = 0x40, + .polarity = 0, + .clock_mode = 0, +}; + static void cxd_attach(struct ngene *dev) { struct ngene_ci *ci = &dev->ci; - ci->en = cxd2099_attach(0x40, dev, &dev->channel[0].i2c_adapter); + ci->en = cxd2099_attach(&cxd_cfg, dev, &dev->channel[0].i2c_adapter); ci->dev = dev; return; }