Skip to contentSkip to conversation

what is period_size, buffer_size and boundary size, i confuse them

DISCUSSION l9jj 2 participants 2 messages Dec 9, 2012

lore
Share & tools
lore

l9jj

author
#0 lore raw

can anyone help me to figure out the concepts between period_size ,buffer_size and boundary size? n * period_size = buffer_size?
m * buffer_size = boundary_size?
and how the dma buffer mapped to the alsa buffer?

thank you .
br

#1 lore raw
Quoted 2 lines · l9jj wrote:

can anyone help me to figure out the concepts between period_size ,buffer_size and boundary size? n * period_size = buffer_size?

Yes. On many devices, n is not required to be an integer.

Quoted 1 line

m * buffer_size = boundary_size?

Yes, where m is very big. In applications, the actual value of the boundary size does not matter (except as a special value for some sw params).

Quoted 1 line

and how the dma buffer mapped to the alsa buffer?

The DMA buffer _is_ the ALSA buffer.

Regards,
Clemens