From patchwork Thu Apr 23 05:40:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitri Belimov X-Patchwork-Id: 19475 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 n3N5cxod028971 for ; Thu, 23 Apr 2009 05:38:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751099AbZDWFi6 (ORCPT ); Thu, 23 Apr 2009 01:38:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751363AbZDWFi6 (ORCPT ); Thu, 23 Apr 2009 01:38:58 -0400 Received: from mail-ew0-f176.google.com ([209.85.219.176]:62562 "EHLO mail-ew0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271AbZDWFi5 (ORCPT ); Thu, 23 Apr 2009 01:38:57 -0400 Received: by ewy24 with SMTP id 24so330424ewy.37 for ; Wed, 22 Apr 2009 22:38:55 -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=/mmZ9fM9fZTTR0HCvV4XucHzDepXd0xNw9IFdetnnbQ=; b=xd5g0cpQgIT0hxkth6rbLrOnGMJlFBE+sYSEz9h2YHDa7sCAVeWpgeagPfnMiWEk3f psJb6zJEX2oiLAQNM1tfE8LpRX8aeTUUE+oqsC6YOs1N8PJaBURyp+12g50SvDvNiPEd gaJ59NrJ5TXol4dIxb+PYkoa67kAMXbpRCyJI= 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=VncZN2+AYlCI9BgRheKDOUWER4ITUUeuwF0pO+IciGf9yA9t1C2FDt4edEDrMaarJ6 5u6cNqSma1WqOeyNzVbX4II+xFhndd8iuucdyJu20d803rQ89VhVhzIwLKW09oNknrP8 dOMsgs9gqLUsetatPAMRxhnbNYNJrCR1Om848= Received: by 10.210.67.4 with SMTP id p4mr7158700eba.63.1240465135942; Wed, 22 Apr 2009 22:38:55 -0700 (PDT) Received: from glory.loctelecom.ru (ns2.openhardware.ru [84.19.183.172]) by mx.google.com with ESMTPS id 5sm1292419eyf.54.2009.04.22.22.38.53 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Apr 2009 22:38:55 -0700 (PDT) Date: Thu, 23 Apr 2009 15:40:46 +1000 From: Dmitri Belimov To: linux-media@vger.kernel.org, video4linux-list@redhat.com Subject: [PATCH] FM1216ME_MK3 AUX byte for FM mode Message-ID: <20090423154046.7b54f7cc@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 Write AUX byte to FM1216ME_MK3 when FM mode, better sensitivity. It can be usefull for other tuners. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov With my best regards, Dmitry. diff -r 00a84f86671d linux/drivers/media/common/tuners/tuner-simple.c --- a/linux/drivers/media/common/tuners/tuner-simple.c Mon Apr 20 22:07:44 2009 +0000 +++ b/linux/drivers/media/common/tuners/tuner-simple.c Thu Apr 23 10:26:54 2009 +1000 @@ -751,6 +751,17 @@ if (4 != rc) tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc); + /* Write AUX byte */ + switch (priv->type) { + case TUNER_PHILIPS_FM1216ME_MK3: + buffer[2] = 0x98; + buffer[3] = 0x20; /* set TOP AGC */ + rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 4); + if (4 != rc) + tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc); + break; + } + return 0; } Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov