From patchwork Fri May 7 23:50:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emard X-Patchwork-Id: 97858 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o47NoVHR006724 for ; Fri, 7 May 2010 23:50:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752465Ab0EGXu3 (ORCPT ); Fri, 7 May 2010 19:50:29 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]:46816 "EHLO mail-ew0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310Ab0EGXu3 (ORCPT ); Fri, 7 May 2010 19:50:29 -0400 Received: by ewy20 with SMTP id 20so425868ewy.1 for ; Fri, 07 May 2010 16:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=id4NcC/WEN9GAS0nXTCc69G6zOh3HguufyQrMi3ZU40=; b=LFvCmMOc8m0ZHQ/ymRXmpJYto6pW2A4BZ8+XuuXRcigRHGXvvkXO7NAAaxkkyzsxgc jA8OcvLGllvoS2bBnhJpyuFHiEGACTcteRnKVO4mFYLhYkKSAyBEjEgMTxHWOTq0UwF/ 3reTeKrAyIodwMAinpje4CUEYjz6NhBt7rOOM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=R6pgEbs0XvwTVZmZ0CbG1aN/1sEq9ix8rcywtEcSkHBxOlWml8dtF+3v1PeCdbG2C2 /9GWRWOjIHg8qcZJIukInfDkB3I1MzeXjFfQ9nZ1ii2MgygOjY0HsJBN4qw7cJMaA9wZ ZKJ/1aZVwMhaknnCY+HMa5rSvvg6etJu2+cyU= Received: by 10.213.43.140 with SMTP id w12mr41741ebe.42.1273276226816; Fri, 07 May 2010 16:50:26 -0700 (PDT) Received: from z60m.lan (cpe-188-129-95-194.dynamic.amis.hr [188.129.95.194]) by mx.google.com with ESMTPS id 14sm1391158ewy.10.2010.05.07.16.50.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 May 2010 16:50:26 -0700 (PDT) Received: from emard by z60m.lan with local (Exim 4.71) (envelope-from ) id 1OAXJI-0001yC-OE for linux-media@vger.kernel.org; Sat, 08 May 2010 01:50:24 +0200 Date: Sat, 8 May 2010 01:50:24 +0200 From: Emard To: linux-media@vger.kernel.org Subject: [PATCH] Compro videomate T750F DVB-T mode works now Message-ID: <20100507235024.GA7470@z60m> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 07 May 2010 23:50:31 +0000 (UTC) --- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c.orig 2010-05-02 00:06:45.000000000 +0200 +++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c 2010-05-02 01:20:50.000000000 +0200 @@ -4883,10 +4883,11 @@ struct saa7134_board saa7134_boards[] = /* John Newbigin */ .name = "Compro VideoMate T750", .audio_clock = 0x00187de7, - .tuner_type = TUNER_XC2028, + .tuner_type = TUNER_ABSENT, .radio_type = UNSET, .tuner_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET, + .mpeg = SAA7134_MPEG_DVB, .inputs = {{ .name = name_tv, .vmux = 3, @@ -7192,6 +7193,7 @@ int saa7134_board_init2(struct saa7134_d case SAA7134_BOARD_AVERMEDIA_SUPER_007: case SAA7134_BOARD_TWINHAN_DTV_DVB_3056: case SAA7134_BOARD_CREATIX_CTX953: + case SAA7134_BOARD_VIDEOMATE_T750: { /* this is a hybrid board, initialize to analog mode * and configure firmware eeprom address --- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c.orig 2010-05-01 23:57:08.000000000 +0200 +++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c 2010-05-02 00:51:44.000000000 +0200 @@ -55,6 +55,7 @@ #include "tda8290.h" #include "zl10353.h" +#include "qt1010.h" #include "zl10036.h" #include "zl10039.h" @@ -886,6 +887,17 @@ static struct zl10353_config behold_x7_c .disable_i2c_gate_ctrl = 1, }; +static struct zl10353_config videomate_t750_zl10353_config = { + .demod_address = 0x0f, + .no_tuner = 1, + .parallel_ts = 1, +}; + +static struct qt1010_config videomate_t750_qt1010_config = { + .i2c_address = 0x62 +}; + + /* ================================================================== * tda10086 based DVB-S cards, helper functions */ @@ -1556,6 +1568,26 @@ static int dvb_init(struct saa7134_dev * __func__); break; + /*FIXME: What frontend does Videomate T750 use? */ + case SAA7134_BOARD_VIDEOMATE_T750: + printk("Compro VideoMate T750 DVB setup\n"); + fe0->dvb.frontend = dvb_attach(zl10353_attach, + &videomate_t750_zl10353_config, + &dev->i2c_adap); + if (fe0->dvb.frontend != NULL) { + printk("Attaching pll\n"); + // if there is a gate function then the i2c bus breaks.....! + fe0->dvb.frontend->ops.i2c_gate_ctrl = 0; + + if (dvb_attach(qt1010_attach, + fe0->dvb.frontend, + &dev->i2c_adap, + &videomate_t750_qt1010_config) == NULL) + { + wprintk("error attaching QT1010\n"); + } + } + break; case SAA7134_BOARD_ZOLID_HYBRID_PCI: fe0->dvb.frontend = dvb_attach(tda10048_attach, &zolid_tda10048_config,