All of lore.kernel.org
 help / color / mirror / Atom feed
* Period time/size in adaptive USB - alignment to nrpacks?
@ 2011-12-26 20:07 Pavel Hofman
  2011-12-28 13:00 ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Hofman @ 2011-12-26 20:07 UTC (permalink / raw)
  To: ALSA development

Hi,

I have been analyzing USB URBs in wireshark. Output stream, adaptive
mode, 16 bits, 48kHz, stereo. Each URB is issued always at nrpacks
milliseconds. Each URB transfers 48 samples * 2 bytes * 2 channels *
nrpacks milliseconds of bytes. The last URB of period keeps the same
pace (nrpacks milliseconds), however holds only the remaining number of
bytes. This creates ripples in the data stream bitrate, possibly leading
to increased jitter of the PLL'd clock in the USB receiver.

When period size is aligned to multiples of samplerate/1000 * audio
frame bytes * nrpacks, all URBs carry constant number of bytes.

I am wondering if for the xx.000 Hz samplerates it made sense to offer
only these aligned multiples in snd_pcm_hw_params_set_period_time_near.

Thank you for your expert opinion.

Best regards,

Pavel.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-01 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-26 20:07 Period time/size in adaptive USB - alignment to nrpacks? Pavel Hofman
2011-12-28 13:00 ` Clemens Ladisch
2011-12-28 20:04   ` Pavel Hofman
2011-12-29  8:43     ` Clemens Ladisch
2012-01-01 17:01       ` Pavel Hofman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.