From patchwork Mon May 11 11:16:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitri Belimov X-Patchwork-Id: 23132 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 n4C1FrwW025339 for ; Tue, 12 May 2009 01:15:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755033AbZELBPu (ORCPT ); Mon, 11 May 2009 21:15:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754868AbZELBPu (ORCPT ); Mon, 11 May 2009 21:15:50 -0400 Received: from mail-bw0-f174.google.com ([209.85.218.174]:33097 "EHLO mail-bw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755905AbZELBPt (ORCPT ); Mon, 11 May 2009 21:15:49 -0400 Received: by bwz22 with SMTP id 22so2994552bwz.37 for ; Mon, 11 May 2009 18:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type; bh=sN4r+PlSB+A6zLbuGTUDJqDqjbswo7nxg6gcEmeBmNA=; b=sncbIqwmWFbeG1xwTZGYchXKirNoxCTAngUdUMdTmklSCLU6K6nzzaQB+0OibOIYtY +KqXvWwb+cH767M+uPOra09PH4oYYPxNIHLFyGZTsE00LyY9aKyQLDR5k1FPNWOimyLX rnI91B8ANFoSjrj027UKN1SonABVJF2tHlEdc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=fYX3asjJT5GAvR4I0WWFpNx570paWxHVxMPgMa/bJ9Q3oUwa38GIbo+QtWlgHK/qYk QDtA0qICOBtB1q7FVUJfS1SxKc0tV7QsM046r7i9i+F5QaWd0S2Y7+CHok+xNYlhfgzw GXIK8y6PR4DyLmo4/khiyhlbGMz7U9kOyfeVE= Received: by 10.103.212.2 with SMTP id o2mr4766231muq.131.1242090949507; Mon, 11 May 2009 18:15:49 -0700 (PDT) Received: from glory.loctelecom.ru (ns2.openhardware.ru [84.19.183.172]) by mx.google.com with ESMTPS id g1sm9742762muf.56.2009.05.11.18.15.47 (version=SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 18:15:48 -0700 (PDT) Date: Mon, 11 May 2009 21:16:06 +1000 From: Dmitri Belimov To: linux-media@vger.kernel.org, video4linux-list@redhat.com Subject: [PATCH] Start support Philips MK5 tuner Message-ID: <20090511211606.315ae629@glory.loctelecom.ru> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; i486-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi All I start support Philips MK5 tuner Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov With my best regards, Dmitry. diff -r 19b8f124911c linux/drivers/media/common/tuners/tuner-types.c --- a/linux/drivers/media/common/tuners/tuner-types.c Thu May 07 12:30:01 2009 +0000 +++ b/linux/drivers/media/common/tuners/tuner-types.c Tue May 12 06:14:24 2009 +1000 @@ -567,6 +567,31 @@ .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_fm1216me_mk3_pal_ranges, .count = ARRAY_SIZE(tuner_fm1216me_mk3_pal_ranges), + .cb_first_if_lower_freq = 1, + .has_tda9887 = 1, + .port1_active = 1, + .port2_active = 1, + .port2_invert_for_secam_lc = 1, + .port1_fm_high_sensitivity = 1, + .default_top_mid = -2, + .default_top_secam_mid = -2, + .default_top_secam_high = -2, + }, +}; + +/* ------------ TUNER_PHILIPS_FM1216MK5 - Philips PAL ------------ */ + +static struct tuner_range tuner_fm1216mk5_pal_ranges[] = { + { 16 * 158.00 /*MHz*/, 0xce, 0x01, }, + { 16 * 441.00 /*MHz*/, 0xce, 0x02, }, + { 16 * 864.00 , 0xce, 0x04, }, +}; + +static struct tuner_params tuner_fm1216mk5_params[] = { + { + .type = TUNER_PARAM_TYPE_PAL, + .ranges = tuner_fm1216mk5_pal_ranges, + .count = ARRAY_SIZE(tuner_fm1216mk5_pal_ranges), .cb_first_if_lower_freq = 1, .has_tda9887 = 1, .port1_active = 1, @@ -1695,6 +1720,11 @@ .initdata = tua603x_agc112, .sleepdata = (u8[]){ 4, 0x9c, 0x60, 0x85, 0x54 }, }, + [TUNER_PHILIPS_FM1216MK5] = { /* Philips PAL */ + .name = "Philips PAL/SECAM multi (FM1216 MK5)", + .params = tuner_fm1216mk5_params, + .count = ARRAY_SIZE(tuner_fm1216mk5_params), + }, }; EXPORT_SYMBOL(tuners); diff -r 19b8f124911c linux/include/media/tuner.h --- a/linux/include/media/tuner.h Thu May 07 12:30:01 2009 +0000 +++ b/linux/include/media/tuner.h Tue May 12 06:14:24 2009 +1000 @@ -124,6 +124,7 @@ #define TUNER_XC5000 76 /* Xceive Silicon Tuner */ #define TUNER_TCL_MF02GIP_5N 77 /* TCL MF02GIP_5N */ #define TUNER_PHILIPS_FMD1216MEX_MK3 78 +#define TUNER_PHILIPS_FM1216MK5 79 /* tv card specific */ #define TDA9887_PRESENT (1<<0) Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov