Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754397Ab2EFTAR (ORCPT ); Sun, 6 May 2012 15:00:17 -0400 Received: from smtp-vbr10.xs4all.nl ([194.109.24.30]:3621 "EHLO smtp-vbr10.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754221Ab2EFTAP (ORCPT ); Sun, 6 May 2012 15:00:15 -0400 From: Hans Verkuil To: manjunatha_halli@ti.com Subject: Re: [PATCH V4 4/5] Media: Update docs for V4L2 FM new features Date: Sun, 6 May 2012 21:00:09 +0200 User-Agent: KMail/1.13.7 (Linux/3.4.0-rc3-tschai; KDE/4.7.4; x86_64; ; ) Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Manjunatha Halli References: <1336164542-11014-1-git-send-email-manjunatha_halli@ti.com> <1336164542-11014-5-git-send-email-manjunatha_halli@ti.com> <201205050041.34232.hverkuil@xs4all.nl> In-Reply-To: <201205050041.34232.hverkuil@xs4all.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201205062100.09979.hverkuil@xs4all.nl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2705 Lines: 75 On Sat May 5 2012 00:41:34 Hans Verkuil wrote: > > + > > + Radio Band Types > > + > > + &cs-str; > > + > > + > > + FM_BAND_TYPE_ALL  > > + All Bands from 65.8 MHz till 108 Mhz or 162.55 MHz if weather band. > > + > > Hmm, I have to thing about that name. And about other related issues as well: > what to do if a band isn't supported? How does an application know which bands are > in fact supported? > > It's too late and I'll have to think about this tomorrow. OK, I've thought about this a bit more. First of all we need a way to detect which bands are supported. I propose to add capability flags to struct v4l2_tuner, one for each band. There are more than enough capability flags available, so we can start from bit 16 and add 4 capability flags for the four bands. Since applications can now detect which bands are available, it is OK for the SEEK ioctl to return -EINVAL if the band isn't present. Please update the SEEK ioctl documentation accordingly. With respect to the name FM_BAND_TYPE_ALL: I propose to rename that to _TYPE_DEFAULT. The description should be something like: "This is the default band, which should be the widest frequency range supported by the hardware." I think that is a better name since that is what drivers to at the moment. I don't think you can guarantee an 'All bands' setting as that is often limited by the hardware. What do you think? Regards, Hans > > Regards, > > Hans > > > + > > + FM_BAND_TYPE_EUROPE_US  > > + Europe or US band(87.5 Mhz - 108 MHz). > > + > > + > > + FM_BAND_TYPE_JAPAN  > > + Japan band(76 MHz - 90 MHz). > > + > > + > > + FM_BAND_TYPE_RUSSIAN  > > + OIRT or Russian band(65.8 MHz - 74 MHz). > > + > > + > > + FM_BAND_TYPE_WEATHER  > > + Weather band(162.4 MHz - 162.55 MHz). > > + > > + > > + > > +
> > > > > > &return-value; > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/