All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Hans Verkuil <hverkuil@xs4all.nl>, linux-media@vger.kernel.org
Subject: Re: [PATCH 13/13] DocBook: add SDR specific info to G_MODULATOR / S_MODULATOR
Date: Fri, 4 Sep 2015 22:24:22 +0300	[thread overview]
Message-ID: <55E9EFE6.7040506@iki.fi> (raw)
In-Reply-To: <55E971EF.3070901@xs4all.nl>

On 09/04/2015 01:26 PM, Hans Verkuil wrote:
> On 09/01/2015 11:59 PM, Antti Palosaari wrote:
>> Add SDR specific notes to G_MODULATOR / S_MODULATOR documentation.
>>
>> Signed-off-by: Antti Palosaari <crope@iki.fi>
>> ---
>>   Documentation/DocBook/media/v4l/vidioc-g-modulator.xml | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>>
>> diff --git a/Documentation/DocBook/media/v4l/vidioc-g-modulator.xml b/Documentation/DocBook/media/v4l/vidioc-g-modulator.xml
>> index 80167fc..affb694 100644
>> --- a/Documentation/DocBook/media/v4l/vidioc-g-modulator.xml
>> +++ b/Documentation/DocBook/media/v4l/vidioc-g-modulator.xml
>> @@ -78,6 +78,15 @@ different audio modulation if the request cannot be satisfied. However
>>   this is a write-only ioctl, it does not return the actual audio
>>   modulation selected.</para>
>>
>> +    <para><link linkend="sdr">SDR</link> specific modulator types are
>> +<constant>V4L2_TUNER_SDR</constant> and <constant>V4L2_TUNER_RF</constant>.
>> +Valid fields for these modulator types are <structfield>index</structfield>,
>> +<structfield>name</structfield>, <structfield>capability</structfield>,
>> +<structfield>rangelow</structfield>, <structfield>rangehigh</structfield>
>> +and <structfield>type</structfield>. All the rest fields must be
>
> s/rest/remaining/
>
>> +initialized to zero by both application and driver.
>
> I would drop this sentence. The spec is clear about which fields have to be set
> by the user. The only thing I would mention here is that txsubchans should be
> initialized to 0 by applications (we might want to use it in the future) when
> calling S_MODULATOR.
>
> For S_TUNER it is the same: only mention that audmode should be initialized to
> 0 for these SDR tuner types.
>
>> +Term modulator means SDR transmitter on this context.</para>
>
> s/Term/The term/
> s/on/in/
>
> Note: the same typos are in patch 12/13.
>
> Perhaps this sentence should be rewritten since it is not clear what you
> mean. I guess the idea is that 'modulator' is not a good match to what actually
> happens in the SDR hardware?
>
> How about:
>
> "Note that the term 'modulator' is a misnomer for type V4L2_TUNER_SDR since
> this really is a DAC and the 'modulator' frequency is in reality the sampling
> frequency of the DAC."
>
> I hope I got that right.
>
> And do something similar for patch 12/13.

I added it mainly because struct v4l2_modulator is somehow misleading as 
it contains both modulator and RF frontend specific stuff and especially 
misleading for SDR case as modulator is located in a host computer 
software. On DVB side modulator/demodulator and tuner are split more 
correctly.

If you look that struct v4l2_modulator:
index: common field
name: common field
capability: contains both RF frontend and modulator stuff
rangelow: RF frontend specific
rangehigh: RF frontend specific
txsubchans: modulator specific
type: common field
reserved: reserved

So actually most field on that struct v4l2_modulator are RF frontend 
specific, not modulator. Same applies to struct v4l2_tuner.

These should be probably:
tuner => receiver
modulator => transmitter

Or even better, like DVB side, split modulator/demodulator and RF stuff 
to own structs. But as it is not reasonable to start changing those, so 
I decided to add comment for tuner that it means SDR receiver and for 
modulator it means SDR transmitter.

regards
Antti

>
>> +
>>       <para>To change the radio frequency the &VIDIOC-S-FREQUENCY; ioctl
>>   is available.</para>
>>
>>
>
> Regards,
>
> 	Hans
>

-- 
http://palosaari.fi/

      reply	other threads:[~2015-09-04 19:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-01 21:59 [PATCHv4 00/13] SDR transmitter API Antti Palosaari
2015-09-01 21:59 ` [PATCH 01/13] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR Antti Palosaari
2015-09-01 21:59 ` [PATCH 02/13] v4l2: add RF gain control Antti Palosaari
2015-09-01 21:59 ` [PATCH 03/13] DocBook: document tuner " Antti Palosaari
2015-09-01 21:59 ` [PATCH 04/13] v4l2: add support for SDR transmitter Antti Palosaari
2015-09-17  9:47   ` Hans Verkuil
2015-09-01 21:59 ` [PATCH 05/13] DocBook: document " Antti Palosaari
2015-09-01 21:59 ` [PATCH 06/13] v4l: add type field to v4l2_modulator struct Antti Palosaari
2015-09-01 21:59 ` [PATCH 07/13] DocBook: add modulator type field Antti Palosaari
2015-09-04 10:40   ` Hans Verkuil
2015-09-01 21:59 ` [PATCH 08/13] hackrf: add control for RF amplifier Antti Palosaari
2015-09-01 21:59 ` [PATCH 09/13] hackrf: switch to single function which configures everything Antti Palosaari
2015-09-01 21:59 ` [PATCH 10/13] hackrf: add support for transmitter Antti Palosaari
2015-09-04 10:06   ` Hans Verkuil
2015-10-16  8:53     ` Hans Verkuil
2015-10-16  8:59       ` Antti Palosaari
2015-10-16  9:14         ` Hans Verkuil
2015-09-01 21:59 ` [PATCH 11/13] hackrf: do not set human readable name for formats Antti Palosaari
2015-09-01 21:59 ` [PATCH 12/13] DocBook: add SDR specific info to G_TUNER / S_TUNER Antti Palosaari
2015-09-01 21:59 ` [PATCH 13/13] DocBook: add SDR specific info to G_MODULATOR / S_MODULATOR Antti Palosaari
2015-09-04 10:26   ` Hans Verkuil
2015-09-04 19:24     ` Antti Palosaari [this message]

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=55E9EFE6.7040506@iki.fi \
    --to=crope@iki.fi \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /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.