From patchwork Sun Aug 9 13:30:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor M. Liplianin" X-Patchwork-Id: 1477 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 09 Aug 2009 13:31:08 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra.chehab.org with IMAP (fetchmail-6.3.6) for (single-drop); Sun, 09 Aug 2009 10:29:35 -0300 (BRT) Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Ma8UN-00032n-UV; Sun, 09 Aug 2009 13:31:08 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753746AbZHINbE (ORCPT + 1 other); Sun, 9 Aug 2009 09:31:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753786AbZHINbE (ORCPT ); Sun, 9 Aug 2009 09:31:04 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:47111 "EHLO mail-ew0-f214.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753746AbZHINbD (ORCPT ); Sun, 9 Aug 2009 09:31:03 -0400 Received: by ewy10 with SMTP id 10so2489225ewy.37 for ; Sun, 09 Aug 2009 06:31:02 -0700 (PDT) Received: by 10.211.180.15 with SMTP id h15mr3947073ebp.28.1249824662175; Sun, 09 Aug 2009 06:31:02 -0700 (PDT) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id 7sm8393249eyb.20.2009.08.09.06.31.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Aug 2009 06:31:01 -0700 (PDT) From: "Igor M. Liplianin" To: linux-media@vger.kernel.org, Mauro Chehab , Mark Zimmerman , "v4l-dvb list" , Konstantin Dimitrov Subject: [PATCH] cx88: fix TBS 8920 card support. Date: Sun, 9 Aug 2009 16:30:20 +0300 User-Agent: KMail/1.11.4 (Linux/2.6.31-rc5; KDE/4.2.4; i686; ; ) MIME-Version: 1.0 Message-Id: <200908091630.20844.liplianin@me.by> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org It does matter to set explicitly gpio0 value in cx88_board structure for TBS 8920 card. # HG changeset patch # User Igor M. Liplianin # Date 1248905908 -10800 # Node ID d2dee95e2da26a145cca2d081be86793cc9b07ea # Parent ee6cf88cb5d3faf861289fce0ef0385846adcc7c cx88: fix TBS 8920 card support From: Igor M. Liplianin It does matter to set explicitly gpio0 value in cx88_board structure for TBS 8920 card. Signed-off-by: Igor M. Liplianin diff -r ee6cf88cb5d3 -r d2dee95e2da2 linux/drivers/media/video/cx88/cx88-cards.c --- a/linux/drivers/media/video/cx88/cx88-cards.c Wed Jul 29 01:42:02 2009 -0300 +++ b/linux/drivers/media/video/cx88/cx88-cards.c Thu Jul 30 01:18:28 2009 +0300 @@ -1941,7 +1941,8 @@ .radio_addr = ADDR_UNSET, .input = {{ .type = CX88_VMUX_DVB, - .vmux = 1, + .vmux = 0, + .gpio0 = 0x8080, } }, .mpeg = CX88_MPEG_DVB, }, @@ -3187,7 +3188,11 @@ case CX88_BOARD_PROF_6200: case CX88_BOARD_PROF_7300: case CX88_BOARD_SATTRADE_ST4200: + cx_write(MO_GP0_IO, 0x8000); + msleep(100); cx_write(MO_SRST_IO, 0); + msleep(10); + cx_write(MO_GP0_IO, 0x8080); msleep(100); cx_write(MO_SRST_IO, 1); msleep(100); diff -r ee6cf88cb5d3 -r d2dee95e2da2 linux/drivers/media/video/cx88/cx88-dvb.c --- a/linux/drivers/media/video/cx88/cx88-dvb.c Wed Jul 29 01:42:02 2009 -0300 +++ b/linux/drivers/media/video/cx88/cx88-dvb.c Thu Jul 30 01:18:28 2009 +0300 @@ -425,17 +425,16 @@ struct cx8802_dev *dev= fe->dvb->priv; struct cx88_core *core = dev->core; + cx_set(MO_GP0_IO, 0x6040); switch (voltage) { case SEC_VOLTAGE_13: - printk("LNB Voltage SEC_VOLTAGE_13\n"); - cx_write(MO_GP0_IO, 0x00006040); + cx_clear(MO_GP0_IO, 0x20); break; case SEC_VOLTAGE_18: - printk("LNB Voltage SEC_VOLTAGE_18\n"); - cx_write(MO_GP0_IO, 0x00006060); + cx_set(MO_GP0_IO, 0x20); break; case SEC_VOLTAGE_OFF: - printk("LNB Voltage SEC_VOLTAGE_off\n"); + cx_clear(MO_GP0_IO, 0x20); break; }