From patchwork Sat May 29 15:49:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Catana X-Patchwork-Id: 103072 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 o4TFnMEW008571 for ; Sat, 29 May 2010 15:49:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757401Ab0E2PtV (ORCPT ); Sat, 29 May 2010 11:49:21 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:58591 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757313Ab0E2PtU (ORCPT ); Sat, 29 May 2010 11:49:20 -0400 Received: by fxm10 with SMTP id 10so1401186fxm.19 for ; Sat, 29 May 2010 08:49:18 -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:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=O+Fm9RrzwudUcyNX25P3o4KNqfZ6ZXaBk2Ngn19nTvU=; b=J6XJkdmDwy+pNa+HByG0jKGrOn7/b3hs79e7s3RAPvt1LzfxZWyxxX+kPXAsc9jAem yaJ5Rqte5bfnmXmDz4WqUe5odNjsURk3FA7ZHcFCxpAf1rhE9r8Pxt9g4Iny3ONtMn2g QWV9yBZRY7sABB33+U/DQqzvlQwwA31HWrPNs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; b=TtMOAz2o3RqO4mE0C/Al2qog/F/3IvkCikD9ixSKG6sQ/tABWQp6YrM3RnAc8//kbm tu349Hz9r4IW5H6w85/ShPyxefVrqV/a4IGb5lGM6xsF7lyOUnln43RGrr+hwFreixON yvBNo0XZs9R3EzzNBpjpxoTAQK0VrmSFDo91U= Received: by 10.223.15.216 with SMTP id l24mr2309849faa.92.1275148158125; Sat, 29 May 2010 08:49:18 -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 r12sm21490116fah.20.2010.05.29.08.49.16 (version=SSLv3 cipher=RC4-MD5); Sat, 29 May 2010 08:49:17 -0700 (PDT) Subject: Re: [PATCH] TechnoTrend TT-budget T-3000 From: Vadim Catana Reply-To: vadim.catana@gmail.com To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org In-Reply-To: <4BFBF5A7.6070703@redhat.com> References: <1273172404.2154.26.camel@xxx> <4BFBF5A7.6070703@redhat.com> Date: Sat, 29 May 2010 18:49:16 +0300 Message-ID: <1275148156.1874.12.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]); Sat, 29 May 2010 15:49:23 +0000 (UTC) diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-cards.c --- a/linux/drivers/media/video/saa7134/saa7134-cards.c Tue May 25 23:50:51 2010 -0400 +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Sat May 29 18:19:17 2010 +0300 @@ -5467,6 +5467,30 @@ .amux = TV, }, }, + [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, + } }, + }, }; @@ -6624,6 +6648,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, @@ -7349,6 +7379,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 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-dvb.c --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c Tue May 25 23:50:51 2010 -0400 +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c Sat May 29 18:19:17 2010 +0300 @@ -482,6 +482,17 @@ .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 +1180,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 304cfde05b3f linux/drivers/media/video/saa7134/saa7134.h --- a/linux/drivers/media/video/saa7134/saa7134.h Tue May 25 23:50:51 2010 -0400 +++ b/linux/drivers/media/video/saa7134/saa7134.h Sat May 29 18:19:17 2010 +0300 @@ -304,6 +304,7 @@ #define SAA7134_BOARD_HAWELL_HW_404M7 177 #define SAA7134_BOARD_BEHOLD_H7 178 #define SAA7134_BOARD_BEHOLD_A7 179 +#define SAA7134_BOARD_TECHNOTREND_BUDGET_T3000 180 #define SAA7134_MAXBOARDS 32 #define SAA7134_INPUT_MAX 8