From patchwork Tue Jun 16 00:55:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitri Belimov X-Patchwork-Id: 30447 X-Patchwork-Delegate: dougsland@redhat.com 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 n5G0sUIl012356 for ; Tue, 16 Jun 2009 00:54:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755200AbZFPAx4 (ORCPT ); Mon, 15 Jun 2009 20:53:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751937AbZFPAx4 (ORCPT ); Mon, 15 Jun 2009 20:53:56 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:23725 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756663AbZFPAxz (ORCPT ); Mon, 15 Jun 2009 20:53:55 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1228631fgg.17 for ; Mon, 15 Jun 2009 17:53:57 -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=yIAmF9mYjMKfpqo3SRnmSBE/r7VBWay+k0oRqMOn7LU=; b=EwgX9iVF492//f9kXaUUvsvMg8CKszt0lwJpeoMph1kBUuy5iXpTCU+QvLGOh4eqPV CeJ0+9oChBvGF+U8QGlVt1O1i1Se9StqoqIl2Ekw3igrTnb/T1fg6NElyzadeFo9ASpm p766Nos7ZcCPRqXAvIdgv6pcCwJPUD7p2At4E= 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=cWm9M/H5p4acgSQeD9x8BBXEYMKx5yLYU/S3r931aC4CpTqiAGW0y63e6ItZj6z2Pz PCPY6PN7WJfrl0R1zn4unVUiFJESkE9cScz9/BCQLacPD0j6SuI5IMS7BFIVaTc5fCLg yFtFiwCtZftgL07u3bgMn82y8s4NlB4m6LIVA= Received: by 10.86.33.10 with SMTP id g10mr7132726fgg.21.1245113637601; Mon, 15 Jun 2009 17:53:57 -0700 (PDT) Received: from glory.loctelecom.ru (ns2.openhardware.ru [84.19.183.172]) by mx.google.com with ESMTPS id 4sm10240477fge.3.2009.06.15.17.53.54 (version=SSLv3 cipher=RC4-MD5); Mon, 15 Jun 2009 17:53:56 -0700 (PDT) Date: Tue, 16 Jun 2009 10:55:23 +1000 From: Dmitri Belimov To: linux-media@vger.kernel.org, video4linux-list@redhat.com Subject: [PATCH] FM1216MK5 FM radio patch Message-ID: <20090616105523.0d03862c@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 Next code for implement Philips FM1216MK5. 1. Implement get_stereo function. 2. Add correct data byte for FM radio mode. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov With my best regards, Dmitry. diff -r bff77ec33116 linux/drivers/media/common/tuners/tuner-simple.c --- a/linux/drivers/media/common/tuners/tuner-simple.c Thu Jun 11 18:44:23 2009 -0300 +++ b/linux/drivers/media/common/tuners/tuner-simple.c Tue Jun 16 05:27:52 2009 +1000 @@ -145,6 +145,8 @@ case TUNER_LG_NTSC_TAPE: case TUNER_TCL_MF02GIP_5N: return ((status & TUNER_SIGNAL) == TUNER_STEREO_MK3); + case TUNER_PHILIPS_FM1216MK5: + return status | TUNER_STEREO; default: return status & TUNER_STEREO; } @@ -514,6 +516,10 @@ case TUNER_PHILIPS_FM1256_IH3: case TUNER_TCL_MF02GIP_5N: buffer[3] = 0x19; + break; + case TUNER_PHILIPS_FM1216MK5: + buffer[2] = 0x88; + buffer[3] = 0x09; break; case TUNER_TNF_5335MF: buffer[3] = 0x11; Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov