public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Krufky <mkrufky@linuxtv.org>
To: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] [PATCH] Fix the unc for the frontends tda10021 and stv0297
Date: Sat, 10 May 2008 11:48:20 -0400	[thread overview]
Message-ID: <4825C3C4.8000702@linuxtv.org> (raw)
In-Reply-To: <200805101727.55810@orion.escape-edv.de>

Oliver Endriss wrote:
> Oliver Endriss wrote:
>> e9hack wrote:
>>> the uncorrected block count is reset on a read request for the tda10021 and stv0297. This 
>>> makes the UNC value of the femon plugin useless.
>> Why? It does not make sense to accumulate the errors forever, i.e.
>> nobody wants to know what happened last year...
>>
>> Afaics it is ok to reset the counter after reading it.
>> All drivers should behave this way.
>>
>> If the femon plugin requires something else it might store the values
>> and process them as desired.
>>
>> Afaics the femon command line tool has no problems with that.
> 
> Argh, I just checked the API 1.0.0. spec:
> | FE READ UNCORRECTED BLOCKS
> | This ioctl call returns the number of uncorrected blocks detected by the device
> | driver during its lifetime. For meaningful measurements, the increment
> | in block count during a speci c time interval should be calculated. For this
> | command, read-only access to the device is suf cient.
> | Note that the counter will wrap to zero after its maximum count has been
> | reached
> 
> So it seens you are right and the drivers should accumulate the errors
> forever. Any opinions?
> 

There are some devices that automatically reset the unc counter registers
as they are read, and other devices that wrap to zero after its maximum
count has been reached, unless the driver explicitly clears it. *(see below)

There are other devices that dont give unc info directly, but instead
report an average unc per time interval.

I think it's possible that at the time the 1.0.0 spec was written, most
devices were known to exhibit the behavior as described in the blurb
quoted from the API 1.0.0 spec, above.

I don't think that all of the drivers comply to this, exactly as described,
and it might be difficult to correct this across the board :-(  In many
cases, we might not know for sure how absolute the value is, read from these
registers on a given device.

I am not sure what we should do, but here is an argument that supports the
API 1.0.0 spec:

*There are some demods whose firmware uses these counters to determine lock
state.  If we explicitly clear the counter registers during a channel scan,
we can potentially confuse the firmware into detecting false locks, and not
detecting real locks.

-Mike


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

  reply	other threads:[~2008-05-10 15:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-10  8:46 [linux-dvb] [PATCH] Fix the unc for the frontends tda10021 and stv0297 e9hack
2008-05-10 15:17 ` Oliver Endriss
2008-05-10 15:27   ` Oliver Endriss
2008-05-10 15:48     ` Michael Krufky [this message]
2008-05-12 13:29       ` Oliver Endriss
2008-05-10 16:02     ` e9hack
2008-05-10 16:39       ` Oliver Endriss
2008-05-10 21:53     ` Andy Walls
2008-05-10 22:16       ` Manu Abraham
2008-05-10 23:44         ` Andy Walls
2008-05-11  6:14           ` Manu Abraham
2008-05-11 18:35             ` Andy Walls
2008-05-11 19:33               ` Manu Abraham
2008-05-11 21:32                 ` Andy Walls
2008-05-12 13:16                   ` Oliver Endriss
2008-05-12 13:47                     ` P. van Gaans
2008-05-12 16:02                       ` Oliver Endriss
2008-05-12 17:03                         ` P. van Gaans
2008-05-12 22:42                         ` Andy Walls
2008-05-11 23:45             ` P. van Gaans
2008-05-12  6:47               ` e9hack
2008-05-12 14:26               ` Luca Olivetti
2008-05-10 16:12   ` e9hack
2008-05-30 23:46 ` Oliver Endriss
2008-05-31  0:01   ` Manu Abraham
2008-05-31  7:19   ` e9hack
2008-05-31 12:45     ` Oliver Endriss

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=4825C3C4.8000702@linuxtv.org \
    --to=mkrufky@linuxtv.org \
    --cc=linux-dvb@linuxtv.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