Return-path: Received: from smtp.nokia.com ([192.100.122.233]:26619 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756205AbZKEOGL (ORCPT ); Thu, 5 Nov 2009 09:06:11 -0500 Subject: Re: A driver for TI WL1273 FM Radio From: m7aalton Reply-To: matti.j.aaltonen@nokia.com To: ext Hans Verkuil Cc: Linux-Media , "Valentin Eduardo (Nokia-D/Helsinki)" In-Reply-To: <200911051418.28467.hverkuil@xs4all.nl> References: <1249729833-24975-1-git-send-email-eduardo.valentin@nokia.com> <1249729833-24975-3-git-send-email-eduardo.valentin@nokia.com> <1256283953.5953.148.camel@masi.ntc.nokia.com> <200911051418.28467.hverkuil@xs4all.nl> Content-Type: text/plain Date: Thu, 05 Nov 2009 16:05:56 +0200 Message-Id: <1257429956.5953.264.camel@masi.ntc.nokia.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: On Thu, 2009-11-05 at 14:18 +0100, ext Hans Verkuil wrote: > On Friday 23 October 2009 09:45:53 m7aalton wrote: > > Hi. > > > > I have written a driver for the TI WL1273 FM Radio but it's not yet > > quite ready for up-streaming because of its interface. Now I've started > > to change the interface to v4l2 and I'm following Eduardo Valentin's > > Si4713 TX driver as an example. However, WL1273 radio has RX and TX so > > there are things that Eduardo's driver doesn't cover. For example: the > > driver needs a mode switch for switching between TX and RX. Should that > > be implemented as an extended control or should there be a new IOCTL > > added to the v4l2 API? etc... > > So if I understand this correctly, then this device can only transmit or > receive, but not both at the same time? Yes, it cannot receive and transmit at the same time. > If that's the case, then I wonder if it isn't enough to let it depend on > whether VIDIOC_S_AUDOUT or VIDIOC_S_AUDIO was called last. OK. That sounds fine. > > Also I've added some things to the ivtv-radio tool. Should I try to > > "up-stream" those as well? > > Perhaps we should take the opportunity to merge this tool as v4l2-radio > into the v4l2-apps/util directory of the master v4l-dvb repository. > > It would be really nice if it can be used to test the transmitter > features and RDS receiver as well, i.e. extending and improving this tool. I have some code for testing rds reception, I'll include that or at least a part of it to v4l2-radio... > I like having such fairly low-level and easy to debug utilities. They are > a great tool to verify the proper functioning of hardware like this. > > Regards, > > Hans Thanks for comments, Matti