Skip to contentSkip to conversation

Semantics of a single period per buffer?

DISCUSSION Dave Dillow 2 participants 3 messages Nov 25, 2007

lore
Share & tools
lore
#0 lore raw

While refining the sis7019 for submission, I found a possible issue with having a single period per buffer. The easy way out is to set the minimum number of periods to 2, but I see other drivers allow a single period. This leads to a question about the semantics of a single period that I've not been able to resolve using Google.

Any one have any thoughts or pointers to a discussion on having a single period per buffer? Should it be a one-shot play, or just let it hit XRUN every time? Other ideas?

Thanks,
Dave

#1 lore raw
Quoted 9 lines · Dave Dillow

While refining the sis7019 for submission, I found a possible issue with having a single period per buffer. The easy way out is to set the minimum number of periods to 2, but I see other drivers allow a single period. This leads to a question about the semantics of a single period that I've not been able to resolve using Google.

Any one have any thoughts or pointers to a discussion on having a single period per buffer? Should it be a one-shot play, or just let it hit XRUN every time? Other ideas?

I think, one period buffer can be only useable when XRUN check is disabled (endless ring buffer playing) and application has own timing and polls for the actual position in the ring buffer.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project

#2 lore raw
Quoted 8 lines · Jaroslav Kysela
Quoted 6 lines · Dave Dillow

While refining the sis7019 for submission, I found a possible issue with having a single period per buffer. The easy way out is to set the minimum number of periods to 2, but I see other drivers allow a single period. This leads to a question about the semantics of a single period that I've not been able to resolve using Google.

Quoted 7 lines
Quoted 3 lines

Any one have any thoughts or pointers to a discussion on having a single period per buffer? Should it be a one-shot play, or just let it hit XRUN every time? Other ideas?

I think, one period buffer can be only useable when XRUN check is disabled (endless ring buffer playing) and application has own timing and polls for the actual position in the ring buffer.

Thanks for the clarification -- I'll code accordingly.