All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about snd_dma_buffer  bytes field
@ 2009-05-25  2:26 Troy Kisky
  2009-05-25  5:45 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Troy Kisky @ 2009-05-25  2:26 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org

Does

(substream->dma_buffer.bytes) need to equal (snd_pcm_lib_period_bytes(substream) * runtime->periods) ?

When this is not true, it seems like the buffer is not being filled correctly.


for testing, this works
	.buffer_bytes_max = 16 * 7 * 512,
	.period_bytes_min = 32,
	.period_bytes_max = 7 * 512,	/* This is size of ping + pong buffer*/

and this doesn't.
	.buffer_bytes_max = 16 * 7 * 512 + 512,
	.period_bytes_min = 32,
	.period_bytes_max = 7 * 512,	/* This is size of ping + pong buffer*/


When playing back a sine wave, I can hear breaks.


Thanks
Troy

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

end of thread, other threads:[~2009-05-25 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25  2:26 Question about snd_dma_buffer bytes field Troy Kisky
2009-05-25  5:45 ` Takashi Iwai
2009-05-25 21:15   ` Troy Kisky

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.