Skip to contentSkip to conversation

Very elementary question regarding period size

DISCUSSION Pharaoh . 2 participants 3 messages Aug 27, 2007

lore
Share & tools
lore

Pharaoh .

author
#0 lore raw

I am testing out my alsa driver for various period and buffer sizes, at some configurations it doesn't work so arises this very basic question.

Is every sound card/hardware supposed to work at all the period sizes? The way I have written my driver, makes the DMA processing dependent on period size so the answer is obvious in my case, that it might not work for all period sizes. Does it hold true for all the cards?

-pharaoh.

#1 lore raw
Quoted 4 lines · Pharaoh .

I am testing out my alsa driver for various period and buffer sizes, at some configurations it doesn't work so arises this very basic question.

Is every sound card/hardware supposed to work at all the period sizes?

No. The driver is supposed to add constraints that describe the capabilities of the hardware/driver.

What are the valid period/buffer sizes supported by your driver?

Regards,
Clemens

author
#2 lore raw
Quoted 8 lines · Clemens Ladisch
Quoted 1 line · Pharaoh .

I am testing out my alsa driver for various period and buffer sizes, at

some

Quoted 3 lines

configurations it doesn't work so arises this very basic question.

Is every sound card/hardware supposed to work at all the period sizes?

Quoted 9 lines

No. The driver is supposed to add constraints that describe the capabilities of the hardware/driver.

What are the valid period/buffer sizes supported by your driver?

Regards,
Clemens

I have tried with 1024,2048 and 4096 period sizes, with 16384 and 32768 buffer sizes. My driver doesn't seem to work well with 4k-16k or 4k-32k combinations, i.e. I hear lot of hisses and glitches.

Yes, I am going to add the constraints to my driver.