Skip to contentSkip to conversation

sw parameter boundary

DISCUSSION Norbert van Bolhuis 2 participants 5 messages Jun 25, 2008 – Jun 26, 2008

lore
Share & tools
lore
#0 lore raw

is the boundary sw parameter still used ?
where is it for ?

in the PCM kernel core (e.g. snd_pcm_playback_avail) it clearly serves as a pointers wrap point, but which one ?
The one at the end of the DMA buffer or the one at the end of a process (virtual) address range (4 GB) ?

Signature · 1 line
This message has been scanned for viruses and is believed to be clean
#1 lore raw

At Wed, 25 Jun 2008 10:44:19 +0200,

Quoted 3 lines · Norbert van Bolhuis

is the boundary sw parameter still used ?

Yes.

Quoted 1 line

where is it for ?

It defines the wrap point to the position 0.

Quoted 2 lines

in the PCM kernel core (e.g. snd_pcm_playback_avail) it clearly serves as a pointers wrap point, but which one ?

It's for the absolute position handled internally. This isn't exported outside, so you don't care much about it, normally.

Quoted 2 lines

The one at the end of the DMA buffer or the one at the end of a process (virtual) address range (4 GB) ?

No.

Takashi

#2 lore raw
Quoted 4 lines

It's for the absolute position handled internally. This isn't exported outside, so you don't care much about it, normally.

OK, but what does an ALSA driver need to do with boundary, nothing ?

Signature · 1 line
This message has been scanned for viruses and is believed to be clean
#3 lore raw

At Thu, 26 Jun 2008 10:43:08 +0200,

Quoted 7 lines · Norbert van Bolhuis
Quoted 5 lines

It's for the absolute position handled internally. This isn't exported outside, so you don't care much about it, normally.

OK, but what does an ALSA driver need to do with boundary, nothing ?

The boundary is aligned to buffer_size so that the offset can be calculated properly even after the overwrap.

Takashi

#4 lore raw
Quoted 5 lines
Quoted 1 line

OK, but what does an ALSA driver need to do with boundary, nothing ?

The boundary is aligned to buffer_size so that the offset can be calculated properly even after the overwrap.

OK, so I assume that's a yes.
I don't see any driver maniplating boundary though.

Signature · 1 line
This message has been scanned for viruses and is believed to be clean