[alsa-devel] Very elementary question regarding period size
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.
Pharaoh . wrote:
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
On 8/27/07, Clemens Ladisch cladisch@fastmail.net wrote:
Pharaoh . wrote:
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
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.
participants (2)
-
Clemens Ladisch
-
Pharaoh .