From: Hans de Goede <hdegoede@redhat.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org,
halli manjunatha <hallimanju@gmail.com>,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [RFCv2 PATCH 4/6] videodev2.h: add frequency band information.
Date: Tue, 19 Jun 2012 19:33:54 +0200 [thread overview]
Message-ID: <4FE0B802.3080703@redhat.com> (raw)
In-Reply-To: <4FE0AD29.4070300@redhat.com>
Hi,
On 06/19/2012 06:47 PM, Hans de Goede wrote:
> Hi,
>
> <snip long discussion about having a fixed set of bands versus
> a way to enumerate bands, including their rangelow, rangehigh
> and capabilities>
>
> Ok, you've convinced me. I agree that having a way to actually
> enumerate ranges, rather then having a fixed set of ranges, is
> better.
>
> Which brings us back many weeks to the proposal for making
> it possible to enumerate bands on radio devices. Rather
> then digging up the old mails lets start anew, I propose
> the following API for this:
>
> 1. A radio device can have multiple tuners, but only 1 can
> be active (streaming audio to the associated audio input)
> at the same time.
>
> 2. Radio device tuners are enumerated by calling G_TUNER
> with an increasing index until EINVAL gets returned
>
> 3. G_FREQUENCY will always return the frequency and index
> of the currently active tuner
>
> 4. When calling S_TUNER on a radio device, the active
> tuner will be set to the v4l2_tuner index field
>
> 5. When calling S_FREQUENCY on a radio device, the active
> tuner will be set to the v4l2_frequency tuner field
>
> 6. On a G_TUNER call on a radio device the rxsubchans,
> audmode, signal and afc v4l2_tuner fields are only
> filled on for the active tuner (as returned by
> G_FREQUENCY) for inactive tuners these fields are reported
> as 0.
p.s.
I forgot:
7. When calling VIDIOC_S_HW_FREQ_SEEK on a radio device, the active
tuner will be set to the v4l2_hw_freq_seek tuner field
8. When changing the active tuner with S_TUNER or S_HW_FREQ_SEEK,
the current frequency may be changed to fit in the range of the
new active tuner
9. For backwards compatibility reasons tuner 0 should be the tuner
with the broadest possible FM range
Regards,
Hans
next prev parent reply other threads:[~2012-06-19 17:29 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 10:46 [RFCv2 PATCH 0/5] Add hwseek caps and frequency bands Hans Verkuil
2012-05-28 10:46 ` [RFCv2 PATCH 1/6] videodev2.h: add new hwseek capability bits Hans Verkuil
2012-05-28 10:46 ` [RFCv2 PATCH 2/6] v4l2 spec: document the new v4l2_tuner capabilities Hans Verkuil
2012-05-28 10:46 ` [RFCv2 PATCH 3/6] S_HW_FREQ_SEEK: set capability flags and return ENODATA instead of EAGAIN Hans Verkuil
2012-05-28 10:46 ` [RFCv2 PATCH 4/6] videodev2.h: add frequency band information Hans Verkuil
2012-06-19 0:47 ` Mauro Carvalho Chehab
2012-06-19 8:27 ` Hans de Goede
2012-06-19 11:09 ` Mauro Carvalho Chehab
2012-06-19 12:36 ` Hans de Goede
2012-06-19 13:31 ` halli manjunatha
2012-06-19 15:41 ` Mauro Carvalho Chehab
2012-06-19 16:25 ` halli manjunatha
2012-06-19 14:14 ` Mauro Carvalho Chehab
2012-06-19 16:47 ` Hans de Goede
2012-06-19 17:33 ` Hans de Goede [this message]
2012-06-19 17:43 ` halli manjunatha
2012-06-19 19:19 ` Hans de Goede
2012-06-19 18:23 ` Hans Verkuil
2012-06-22 14:07 ` Hans Verkuil
2012-06-22 16:15 ` Mauro Carvalho Chehab
2012-06-23 6:41 ` Hans de Goede
2012-05-28 10:46 ` [RFCv2 PATCH 5/6] V4L2 spec: add frequency band documentation Hans Verkuil
2012-05-28 10:46 ` [RFCv2 PATCH 6/6] V4L2 spec: clarify a few modulator issues Hans Verkuil
2012-05-28 11:20 ` [RFCv2 PATCH 0/5] Add hwseek caps and frequency bands Hans de Goede
2012-05-28 11:58 ` Hans Verkuil
2012-05-29 8:21 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE0B802.3080703@redhat.com \
--to=hdegoede@redhat.com \
--cc=hallimanju@gmail.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.