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 3/4] airspy: print notice to point SDR API is not 100% stable yet
Date: Fri, 18 Jul 2014 19:28:15 +0300	[thread overview]
Message-ID: <53C94B1F.40106@iki.fi> (raw)
In-Reply-To: <53C8AD58.1000200@xs4all.nl>

Moikka!

On 07/18/2014 08:15 AM, Hans Verkuil wrote:
> On 07/18/2014 03:05 AM, Antti Palosaari wrote:
>> Print notice on driver load: "SDR API is still slightly
>> experimental and functionality changes may follow". It is just
>> remind possible used SDR API is very new and surprises may occur.

>
> On that topic: I would like to see a 'buffersize' or 'samples_per_buffer'
> field in struct v4l2_sdr_format. That gives applications the opportunity
> to 1) get the current buffer size and 2) be able to change it if the driver
> supports that. E.g. for high sampling rates they might want to use larger
> buffers, for low they might want to select smaller buffers.
>
> Right now it is fixed and you won't know the buffer size until you do
> QUERYBUF. Which is not in sync with what other formats do.

I understand what you mean. If you use mmap or userptr then you would 
like to really know how much data you will get per buffer, but if you 
use read then it has no meaning.

I prefer 'buffersize' over 'samples_per_buffer', just because some 
formats are very complex, packed and compressed, and calculating 
'buffersize' from 'samples_per_buffer' could be quite complex.

It is also possible report both, but then you should decide how handle 
situation on S_FMT. Another should be zero and driver uses the one which 
has value !zero.


regards
Antti

-- 
http://palosaari.fi/

  reply	other threads:[~2014-07-18 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18  1:05 [PATCH 1/4] airspy: remove v4l2-compliance workaround Antti Palosaari
2014-07-18  1:05 ` [PATCH 2/4] airspy: move out of staging into drivers/media/usb Antti Palosaari
2014-07-18  1:05 ` [PATCH 3/4] airspy: print notice to point SDR API is not 100% stable yet Antti Palosaari
2014-07-18  5:15   ` Hans Verkuil
2014-07-18 16:28     ` Antti Palosaari [this message]
2014-07-18  1:05 ` [PATCH 4/4] MAINTAINERS: add airspy driver Antti Palosaari

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=53C94B1F.40106@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.