[kde-freebsd] Re: kmix polling rate
Andriy Gapon
avg at FreeBSD.org
Tue Jul 19 13:58:42 CEST 2011
on 19/07/2011 14:23 Alberto Villa said the following:
> On Tuesday 19 July 2011 13:03:31 Andriy Gapon wrote:
>> I think that this issue has been brought up in the past - it seems that
>> kmix polls mixer states every 50 ms and I think that it this is a too fast
>> rate for such an operating where 500 ms would easily suffice. On my
>> system this polling is sufficient to prevent powerd from using lower
> CPU
>> frequencies.
>>
>> I think that this issue is relevant specifically to FreeBSD because that
>> polling seems to be done for OSS sound driver.
>
> since you appear to speak with code in front of you, can you point us to
> the file:loc, please?
In kdemultimedia4 port: backends/mixer_backend.cpp:57
if ( needsPolling() ) {
_pollingTimer->start(50);
}
needsPolling() returns true for OSS, false for ALSA and pulseaudio.
--
Andriy Gapon
More information about the kde-freebsd
mailing list