All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Hans-Frieder Vogt <hfvogt@gmx.net>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] af9033: implement ber and ucb functions
Date: Fri, 06 Apr 2012 12:28:25 +0300	[thread overview]
Message-ID: <4F7EB739.9070506@iki.fi> (raw)
In-Reply-To: <201204061034.56132.hfvogt@gmx.net>

On 06.04.2012 11:34, Hans-Frieder Vogt wrote:
> Am Mittwoch, 4. April 2012 schrieb Antti Palosaari:
>> On 03.04.2012 23:59, Hans-Frieder Vogt wrote:
>>> af9033: implement read_ber and read_ucblocks functions.
>>>
>>> Signed-off-by: Hans-Frieder Vogt<hfvogt@gmx.net>
>>
>> For my quick test UCB counter seems to reset every query. That is
>> violation of API. See http://www.kernel.org/doc/htmldocs/media.html>
>
> Indeed, interesting.
> I quickly checked the behaviour with a dibcom based stick (dib7000p
> demodulator) and the uncorrected block number reduces there as well. It seems,
> other demodulator drivers ignore this detail as well. But that's not meant to
> be an excuse.....

Some demod drivers follows API better than others. There is also some 
problems with current API which makes implementations in practise a 
little bit different than API.
At least all demod drivers I have written should follow API on case of 
UCB counter reset. For a quick test here zl10353 demod seems to follow 
also. You can likely found out those who are following API just looking 
whether those stores UCB counter value to state and then increase it 
every query.

>> Current API does not even define anymore units for BER and UCB, so those
>> calculations are not necessary. Anyhow, you can add some calculations if
>> you wish.

I tried to calculate what you were doing there but did not understood. 
Looks like those values read from register are packets and then after 
all you finally converted those as a bits. 204 * 8 looks like that, 204 
is common MPEG TS packet size including parity (without parity 188), and 
8 is bits in one byte. But why abort_cnt, which is UCB I think, goes 
multiplied to 8 * 8 = 64 (in order to convert to bits?)?

And the resulting value is some amount of bits, unit is?

And current IT9035 and AF9013 seems to contain very simply UCB & BER 
implementation.

regards
Antti
-- 
http://palosaari.fi/

      reply	other threads:[~2012-04-06  9:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 20:59 [PATCH] af9033: implement ber and ucb functions Hans-Frieder Vogt
2012-04-03 22:30 ` Antti Palosaari
2012-04-06  8:34   ` Hans-Frieder Vogt
2012-04-06  9:28     ` 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=4F7EB739.9070506@iki.fi \
    --to=crope@iki.fi \
    --cc=hfvogt@gmx.net \
    --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.