[MPlayer-dev-eng] Real Time Clock into timer-lx.c?

Dominik Mierzejewski dominik at rangers.eu.org
Sun Sep 22 11:50:27 CEST 2002


On Sunday, 22 September 2002, Sidik Isani wrote:
> Hello -
> 
>   I'm still planning to send you that timing patch this weekend!
>   (The one which makes video smooth with network audio and broken
>   sound drivers.)  Please tell me what you think about the following
>   though, so if needed I can back out other changes that are now in
>   my tree before generating this patch.  This has to do with RTC.
>   I get good results with it, but only if:
> 
>   1. Some previous program happens to have left it at >= 256Hz.

This is not required.

>   2. I'm running as root, or setuid-root

And this isn't either, if you have a recent kernel (i.e. 2.4.19
or so, check DOCS).

>   Even if 1. is true, kernel will not allow a normal user to enable
>   the interrupt until they select something <= 64Hz.

Not true for recent kernels.

[...] 
>   I'd like to propose three things... and the patch if you like ;-)
> 
>   1. *Set* the RTC to 256Hz rather than accepting whatever frequency
>      it was left at, ... or if that somehow causes a problem, set the
>      frequency to 256Hz only if the old frequency happens to be lower
>      than that.  Since only one application can use the RTC at a time,
>      does anyone see a problem with just putting a value in?

What's wrong with current 1024Hz?

-- 
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"



More information about the MPlayer-dev-eng mailing list