From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Julian Scheel <julian@jusst.de>
Cc: linux-media@vger.kernel.org
Subject: Re: New DVB-Statistics API - please vote
Date: Wed, 03 Feb 2010 07:49:23 -0200 [thread overview]
Message-ID: <4B6946A3.9080803@redhat.com> (raw)
In-Reply-To: <4B1E532C.9040903@redhat.com>
Mauro Carvalho Chehab wrote:
>> after the last thread which asked about signal statistics details
>> degenerated into a discussion about the technical possibilites for
>> implementing an entirely new API, which lead to nothing so far, I wanted
>> to open a new thread to bring this forward. Maybe some more people can
>> give their votes for the different options
Only me and Manu manifested with opinions on this thread. Not sure why
nobody else gave their comments. Maybe all interested people just decided
to take a long vacation and are not listening to their emails ;)
Seriously, from what I understand, this is an API improvement and we need
to take a decision on it. So, your opinions are important.
---
Let me draw a summary of this subject, trying to be impartial.
The original proposal were made by Manu. My proposal is derived from Manu's
original one, both will equally provide the same features.
The main difference is that Manu's proposal use a struct to get the
statistics while my proposal uses DVBS2API.
With both API proposals, all values are get at the same time by the driver.
the DVBS2API adds a small delay to fill the fields, but the extra delay is
insignificant, when compared with the I/O delays needed to retrieve the
values from the hardware.
Due to the usage of DVBS2API, it is possible to retrieve a subset of statistics.
When obtaining a subset, the DVBS2API latency is considerable faster, as less
data needed to be transfered from the hardware.
The DVBS2API also offers the possibility of expanding the statistics group, since
it is not rigid as an struct.
One criteria that should be reminded is that, according with Linux Kernel rules,
any userspace API is stable. This means that applications compiled against an
older API version should keep running with the latest kernel. So, whatever decided,
the statistics API should always maintain backward compatibility.
---
During the end of the year, I did some work with an ISDB-T driver for Siano, and
I realized that the usage of the proposed struct won't fit well for ISDB-T. The
reason is that, on ISDB-T, the transmission uses up to 3 hierarchical layers.
Each layer may have different OFDM parameters, so the devices (at least, this is the
case for Siano) has a group of statistics per layer.
I'm afraid that newer standards may also bring different ways to present statistics, and
the current proposal won't fit well.
So, in my opinion, if it is chosen any struct-based approach, we'll have a bad time to
maintain it, as it won't fit into all cases, and we'll need to add some tricks to extend
the struct.
So, my vote is for the DVBS2API approach, where a new group of statistics can easily be added,
on an elegant way, without needing of re-discussing the better API or to find a way to extend
the size of an struct without breaking backward compatibility.
Cheers,
Mauro
next prev parent reply other threads:[~2010-02-03 9:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 9:16 New USB-Statistics API Julian Scheel
2009-12-08 12:24 ` New DVB(!!)-Statistics API Julian Scheel
2009-12-08 13:22 ` New DVB-Statistics API Mauro Carvalho Chehab
2009-12-08 21:46 ` Manu Abraham
2009-12-08 23:43 ` Mauro Carvalho Chehab
2009-12-09 11:42 ` Manu Abraham
2009-12-09 13:02 ` Mauro Carvalho Chehab
2009-12-09 22:12 ` Julian Scheel
2009-12-09 23:38 ` Mauro Carvalho Chehab
2010-02-03 9:49 ` Mauro Carvalho Chehab [this message]
2010-02-03 10:40 ` New DVB-Statistics API - please vote Hans Verkuil
2010-02-03 12:37 ` Manu Abraham
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=4B6946A3.9080803@redhat.com \
--to=mchehab@redhat.com \
--cc=julian@jusst.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox