From patchwork Thu May 6 19:00:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Catana X-Patchwork-Id: 97436 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 o46J0AMa016785 for ; Thu, 6 May 2010 19:00:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754592Ab0EFTAI (ORCPT ); Thu, 6 May 2010 15:00:08 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:40377 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753554Ab0EFTAH (ORCPT ); Thu, 6 May 2010 15:00:07 -0400 Received: by fxm10 with SMTP id 10so245951fxm.19 for ; Thu, 06 May 2010 12:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to :content-type:date:message-id:mime-version:x-mailer; bh=vMJpwjEMpg/gBJuTC1oXfkJ3+97lafGvJ/BZahn3lVQ=; b=h2jdtAiPeJ+1SYZS8IEEYRs0ktNhD77/2bRPhXMtJAL0ByTH9xZ+2wdkvKeCYyWBrr ktn0H+uvBpVYgEzvq6KNbk01YrIG4QdSf3owAM0+3l+pGszy2pACfOtQD+lpLs7md34j 6VlbdDJ/+tRKletYsUo7n6KoQwPFAo/DZGWB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:date:message-id:mime-version :x-mailer; b=fgfWWas2GJyqyH7DXqojbPcsaf40SyrRFNAyKZDG4YBIFUTOoBVBuOdaztGQ1FJGk2 Pqewagg5AuCVNHWYkF0frXHLUZkbCd8s9lhBEBT3n2mhamqY9xDzaz8jKLvN591cbZ1G 9ythGm6RXltkouFY/gO/76e05jbmCdPJIcXUM= Received: by 10.223.17.197 with SMTP id t5mr7087824faa.84.1273172404984; Thu, 06 May 2010 12:00:04 -0700 (PDT) Received: from [192.168.1.10] (host-static-92-115-141-158.moldtelecom.md [92.115.141.158]) by mx.google.com with ESMTPS id 21sm2700395fks.23.2010.05.06.12.00.04 (version=SSLv3 cipher=RC4-MD5); Thu, 06 May 2010 12:00:04 -0700 (PDT) Subject: [PATCH] TechnoTrend TT-budget T-3000 From: Vadim Catana Reply-To: vadim.catana@gmail.com To: linux-media@vger.kernel.org Date: Thu, 06 May 2010 22:00:04 +0300 Message-ID: <1273172404.2154.26.camel@xxx> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 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]); Thu, 06 May 2010 19:00:16 +0000 (UTC) diff -r ee9826bc7106 linux/drivers/media/video/saa7134/saa7134-cards.c --- a/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Apr 29 23:31:06 2010 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Thu May 06 21:33:14 2010 +0300 @@ -5411,6 +5411,30 @@ .gpio = 0x01fc00, } }, }, + [SAA7134_BOARD_TECHNOTREND_BUDGET_T3000] = { + .name = "TechoTrend TT-budget T-3000", + .tuner_type = TUNER_PHILIPS_TD1316, + .audio_clock = 0x00187de7, + .radio_type = UNSET, + .tuner_addr = 0x63, + .radio_addr = ADDR_UNSET, + .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE, + .mpeg = SAA7134_MPEG_DVB, + .inputs = {{ + .name = name_tv, + .vmux = 3, + .amux = TV, + .tv = 1, + }, { + .name = name_comp1, + .vmux = 0, + .amux = LINE2, + }, { + .name = name_svideo, + .vmux = 8, + .amux = LINE2, + } }, + }, }; @@ -6568,6 +6592,12 @@ .subdevice = 0x6655, .driver_data = SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S, }, { + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7133, + .subvendor = 0x13c2, + .subdevice = 0x2804, + .driver_data = SAA7134_BOARD_TECHNOTREND_BUDGET_T3000, + }, { /* --- boards without eeprom + subsystem ID --- */ .vendor = PCI_VENDOR_ID_PHILIPS, .device = PCI_DEVICE_ID_PHILIPS_SAA7134, @@ -7277,6 +7307,7 @@ case SAA7134_BOARD_VIDEOMATE_DVBT_300: case SAA7134_BOARD_ASUS_EUROPA2_HYBRID: case SAA7134_BOARD_ASUS_EUROPA_HYBRID: + case SAA7134_BOARD_TECHNOTREND_BUDGET_T3000: { /* The Philips EUROPA based hybrid boards have the tuner diff -r ee9826bc7106 linux/drivers/media/video/saa7134/saa7134-dvb.c --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c Thu Apr 29 23:31:06 2010 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c Thu May 06 21:33:14 2010 +0300 @@ -482,6 +482,18 @@ .request_firmware = philips_tda1004x_request_firmware }; +static struct tda1004x_config technotrend_budget_t3000_config = { + .demod_address = 0x8, + .invert = 1, + .invert_oclk = 0, + .xtal_freq = TDA10046_XTAL_4M, + .agc_config = TDA10046_AGC_DEFAULT, + .if_freq = TDA10046_FREQ_3617, + .tuner_address = 0x63, + .request_firmware = philips_tda1004x_request_firmware +}; + + /* ------------------------------------------------------------------ * tda 1004x based cards with philips silicon tuner */ @@ -1169,6 +1181,18 @@ fe0->dvb.frontend->ops.tuner_ops.set_params = philips_td1316_tuner_set_params; } break; + case SAA7134_BOARD_TECHNOTREND_BUDGET_T3000: + fe0->dvb.frontend = dvb_attach(tda10046_attach, + &technotrend_budget_t3000_config, + &dev->i2c_adap); + if (fe0->dvb.frontend) { + dev->original_demod_sleep = fe0->dvb.frontend->ops.sleep; + fe0->dvb.frontend->ops.sleep = philips_europa_demod_sleep; + fe0->dvb.frontend->ops.tuner_ops.init = philips_europa_tuner_init; + fe0->dvb.frontend->ops.tuner_ops.sleep = philips_europa_tuner_sleep; + fe0->dvb.frontend->ops.tuner_ops.set_params = philips_td1316_tuner_set_params; + } + break; case SAA7134_BOARD_VIDEOMATE_DVBT_200: fe0->dvb.frontend = dvb_attach(tda10046_attach, &philips_tu1216_61_config, diff -r ee9826bc7106 linux/drivers/media/video/saa7134/saa7134.h --- a/linux/drivers/media/video/saa7134/saa7134.h Thu Apr 29 23:31:06 2010 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134.h Thu May 06 21:33:14 2010 +0300 @@ -302,6 +302,7 @@ #define SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S 175 #define SAA7134_BOARD_BEHOLD_505RDS_MK3 176 #define SAA7134_BOARD_HAWELL_HW_404M7 177 +#define SAA7134_BOARD_TECHNOTREND_BUDGET_T3000 178 #define SAA7134_MAXBOARDS 32 #define SAA7134_INPUT_MAX 8