On Tue, 25 May 2004, Giuliano Pochini wrote: > On Sun, 23 May 2004 11:21:41 +0200 (CEST) > Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > > > On Sat, 22 May 2004, Giuliano Pochini wrote: > > > > > Period 0 is 6624 frames and Period 1 is 6592 frames long (32 frames > > > shorter). I put some debug code and this is the output for a the playback > > > test above: > > > > ALSA does not know about this. All period sizes must be equal. > > I thought about this again. Are you sure all periods must be aqual ? > When I record or play something using unequal periods, sound is perfect. > It means ALSA reads and writes the last (sometimes a lot) smaller period > as well.
The driver must not acknowledge the settled period with the midlevel and application before the specified time. Of course, if you're running into a rounding problem, you can acknowledge more periods at one time. In other cases, it's not very practical to program hardware to use different period sizes, because you need more interrupts for processing. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel