From patchwork Mon May 25 01:22:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitri Belimov X-Patchwork-Id: 25715 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 n4P1M5nl025167 for ; Mon, 25 May 2009 01:22:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbZEYBWB (ORCPT ); Sun, 24 May 2009 21:22:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752033AbZEYBWB (ORCPT ); Sun, 24 May 2009 21:22:01 -0400 Received: from mail-ew0-f176.google.com ([209.85.219.176]:54076 "EHLO mail-ew0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbZEYBWA (ORCPT ); Sun, 24 May 2009 21:22:00 -0400 Received: by ewy24 with SMTP id 24so2826062ewy.37 for ; Sun, 24 May 2009 18:22:00 -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=z/jRJU3uYtAFpWdAEyk5zrM+1r7BoZNCBBS4ARIPXi4=; b=YTWaq+qX50RNSMVOCpDBq1IARfHnflrkardl4mVWWBIMlvmOdIVWLrqrqGr3JJHZVg EBN+wUa9pUOUcTLXazqFRLO4+8rYd+B6HQ6DJknnNdTzfnhqgMYQOd3I8Dj5R63rzeT5 kbJajXuwNOd4W9vp6YeX3NiEbM+LiZCCP1mcU= 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=j1OGfryxu67ZB0/p3zCqk3cca5cJ7feWKAOun3slqSHQIUyTRY7hxDQ/mOQJr7K4bV CBenfC+dTspWN1bK05WmZl/sl5/O+eJx2x4RkXAJS5Qewv5vmzBo8YesvAAM6p9Rgq+u yxKL3XZRsR9UGkGkkSV+ANxXUoT7BXWZDHwMU= Received: by 10.210.62.3 with SMTP id k3mr3353650eba.14.1243214520570; Sun, 24 May 2009 18:22:00 -0700 (PDT) Received: from glory.loctelecom.ru (ns2.openhardware.ru [84.19.183.172]) by mx.google.com with ESMTPS id 5sm406985eyf.28.2009.05.24.18.21.57 (version=SSLv3 cipher=RC4-MD5); Sun, 24 May 2009 18:21:59 -0700 (PDT) Date: Mon, 25 May 2009 11:22:41 +1000 From: Dmitri Belimov To: linux-media@vger.kernel.org, video4linux-list@redhat.com Subject: [PATCH] Change order for FM tune. Message-ID: <20090525112241.41a8f67b@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. Change order data of buffer in FM simple_tune function. It is usefull for: 1. Set data of tuner with CP bit UP. 0xCE for MK5 or 0xC6 for MK3 2. When call simple_fm_tune, read this byte from config and overwrite this byte in function simple_radio_bandswitch for set CP bit to OFF. Of course it can be usefull for other tuner for overwrite default settings of FM. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov With my best regards, Dmitry. diff -r 315bc4b65b4f linux/drivers/media/common/tuners/tuner-simple.c --- a/linux/drivers/media/common/tuners/tuner-simple.c Sun May 17 12:28:55 2009 +0000 +++ b/linux/drivers/media/common/tuners/tuner-simple.c Mon May 25 05:45:39 2009 +1000 @@ -698,11 +698,11 @@ return 0; } + buffer[2] = (t_params->ranges[0].config & ~TUNER_RATIO_MASK) | + TUNER_RATIO_SELECT_50; /* 50 kHz step */ + /* Bandswitch byte */ simple_radio_bandswitch(fe, &buffer[0]); - - buffer[2] = (t_params->ranges[0].config & ~TUNER_RATIO_MASK) | - TUNER_RATIO_SELECT_50; /* 50 kHz step */ /* Convert from 1/16 kHz V4L steps to 1/20 MHz (=50 kHz) PLL steps freq * (1 Mhz / 16000 V4L steps) * (20 PLL steps / 1 MHz) = Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov