From patchwork Thu Nov 12 20:37:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hermann pitton X-Patchwork-Id: 59645 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 nACKenJl012233 for ; Thu, 12 Nov 2009 20:40:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753098AbZKLUkj (ORCPT ); Thu, 12 Nov 2009 15:40:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753909AbZKLUkj (ORCPT ); Thu, 12 Nov 2009 15:40:39 -0500 Received: from mail-in-10.arcor-online.net ([151.189.21.50]:46198 "EHLO mail-in-10.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753096AbZKLUki (ORCPT ); Thu, 12 Nov 2009 15:40:38 -0500 Received: from mail-in-05-z2.arcor-online.net (mail-in-05-z2.arcor-online.net [151.189.8.17]) by mx.arcor.de (Postfix) with ESMTP id 07A2728EF7A; Thu, 12 Nov 2009 21:40:42 +0100 (CET) Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id EC7AB2DAC72; Thu, 12 Nov 2009 21:40:41 +0100 (CET) Received: from [192.168.178.24] (pD9E1003C.dip0.t-ipconnect.de [217.225.0.60]) (Authenticated sender: hermann-pitton@arcor.de) by mail-in-14.arcor-online.net (Postfix) with ESMTPA id BF66628B028; Thu, 12 Nov 2009 21:40:41 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net BF66628B028 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1258058441; bh=OypGv+tmyFOZ1s5fVSeQ/5wGy8Ni0BeNYUOPXPfQr5U=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-Id:Mime-Version:Content-Transfer-Encoding; b=IBBQncnkh9Q4uhxPgEuZ1Wp1MGyN05ShQ9YrjOhwU8YlgaaD9qOelhXqitU9lZyUo Lob6XyLSIMSH27w/R5A/HVHEH3+h9ikl1f4WbdvKla82RKhB3FVD0awe0M1Q+cnyJe 9Elp+BVbBt/hyXf8GMHI9BsIeN/CEO+q6PM/kWnA= Subject: Re: Tuner drivers From: hermann pitton To: Ruslan Cc: linux-media@vger.kernel.org In-Reply-To: References: Date: Thu, 12 Nov 2009 21:37:53 +0100 Message-Id: <1258058273.8348.14.camel@pc07.localdom.local> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r db2a922a8498 -r d480cd6efe5b linux/Documentation/video4linux/CARDLIST.saa7134 --- a/linux/Documentation/video4linux/CARDLIST.saa7134 Mon Aug 20 13:06:00 2007 -0400 +++ b/linux/Documentation/video4linux/CARDLIST.saa7134 Mon Aug 20 13:14:50 2007 -0400 @@ -115,3 +115,4 @@ 114 -> KWorld DVB-T 210 [17de:7250] 115 -> Sabrent PCMCIA TV-PCB05 [0919:2003] 116 -> 10MOONS TM300 TV Card [1131:2304] +117 -> Avermedia Super 007 [1461:f01d] diff -r db2a922a8498 -r d480cd6efe5b linux/drivers/media/video/saa7134/saa7134-cards.c --- a/linux/drivers/media/video/saa7134/saa7134-cards.c Mon Aug 20 13:06:00 2007 -0400 +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Mon Aug 20 13:14:50 2007 -0400 @@ -3573,6 +3573,22 @@ .gpio = 0x3000, }, }, + [SAA7134_BOARD_AVERMEDIA_SUPER_007] = { + .name = "Avermedia Super 007", + .audio_clock = 0x00187de7, + .tuner_type = TUNER_PHILIPS_TDA8290, + .radio_type = UNSET, + .tuner_addr = ADDR_UNSET, + .radio_addr = ADDR_UNSET, + .tuner_config = 0, + .mpeg = SAA7134_MPEG_DVB, + .inputs = {{ + .name = name_tv, /* FIXME: analog tv untested */ + .vmux = 1, + .amux = TV, + .tv = 1, + }}, + }, }; const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); @@ -4296,6 +4312,12 @@ .subdevice = 0x2304, .driver_data = SAA7134_BOARD_10MOONSTVMASTER3, },{ + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7133, + .subvendor = 0x1461, /* Avermedia Technologies Inc */ + .subdevice = 0xf01d, /* AVerTV DVB-T Super 007 */ + .driver_data = SAA7134_BOARD_AVERMEDIA_SUPER_007, + },{ /* --- boards without eeprom + subsystem ID --- */ .vendor = PCI_VENDOR_ID_PHILIPS, .device = PCI_DEVICE_ID_PHILIPS_SAA7134, @@ -4640,6 +4662,7 @@ break; case SAA7134_BOARD_PHILIPS_TIGER: case SAA7134_BOARD_PHILIPS_TIGER_S: + case SAA7134_BOARD_AVERMEDIA_SUPER_007: { u8 data[] = { 0x3c, 0x33, 0x60}; struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)}; diff -r db2a922a8498 -r d480cd6efe5b linux/drivers/media/video/saa7134/saa7134-dvb.c --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c Mon Aug 20 13:06:00 2007 -0400 +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c Mon Aug 20 13:14:50 2007 -0400 @@ -763,6 +763,21 @@ .request_firmware = philips_tda1004x_request_firmware }; +static struct tda1004x_config avermedia_super_007_config = { + .demod_address = 0x08, + .invert = 1, + .invert_oclk = 0, + .xtal_freq = TDA10046_XTAL_16M, + .agc_config = TDA10046_AGC_TDA827X, + .gpio_config = TDA10046_GP01_I, + .if_freq = TDA10046_FREQ_045, + .i2c_gate = 0x4b, + .tuner_address = 0x60, + .tuner_config = 0, + .antenna_switch= 1, + .request_firmware = philips_tda1004x_request_firmware +}; + /* ------------------------------------------------------------------ * special case: this card uses saa713x GPIO22 for the mode switch */ @@ -1025,6 +1040,9 @@ case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA: configure_tda827x_fe(dev, &asus_p7131_hybrid_lna_config); break; + case SAA7134_BOARD_AVERMEDIA_SUPER_007: + configure_tda827x_fe(dev, &avermedia_super_007_config); + break; default: wprintk("Huh? unknown DVB card?\n"); break; diff -r db2a922a8498 -r d480cd6efe5b linux/drivers/media/video/saa7134/saa7134.h --- a/linux/drivers/media/video/saa7134/saa7134.h Mon Aug 20 13:06:00 2007 -0400 +++ b/linux/drivers/media/video/saa7134/saa7134.h Mon Aug 20 13:14:50 2007 -0400 @@ -246,6 +246,7 @@ #define SAA7134_BOARD_KWORLD_DVBT_210 114 #define SAA7134_BOARD_SABRENT_TV_PCB05 115 #define SAA7134_BOARD_10MOONSTVMASTER3 116 +#define SAA7134_BOARD_AVERMEDIA_SUPER_007 117 #define SAA7134_MAXBOARDS 8 #define SAA7134_INPUT_MAX 8