[PATCH] update process_usec before enter sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/8/5 Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>

> > during mmap_write(), there's chance to increase/decrease watermark. So
> > before
> > sleep, the actural sleep time should based on latest watermark.
> [snip]
> > @@ -787,6 +787,7 @@ static int unix_write(struct userdata *u, pa_usec_t
> > *sleep_usec, pa_bool_t polle
>
> Change makes sense, but this should be done both for unix_write and
> mmap_write for consistency. And while I am at it for alsa-source as well,
> we
> should keep the same algorithm across all cases.
>

Thanks your review, Pierre.
And Sorry for late reply, i was fighting for some bugs.

Please find attached update patch based on your suggestions, which should
fulfill the requirement. :-)

--xingchao

> -Pierre
>
>
>
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110808/474fa0ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-update-process_usec-before-enter-sleep.patch
Type: text/x-patch
Size: 2413 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110808/474fa0ab/attachment.bin>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux