[alsa-devel] issue at 44.1 Khz capturing

Clemens Ladisch clemens at ladisch.de
Mon Aug 10 15:34:09 CEST 2009


(please don't top-post)

Harsha, Priya wrote:
> I see that the buffer allocated is 22050 bytes (and not 22052 bytes).
> Yes the hardware supports buffers which are not multiple of period size.

But there may be a (driver) bug that affects the last byte.
Try calling

	snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);

in the open callback.

> Can I forcefully set my buffer size to 22052 bytes

Try the --buffer-size and --period-size parameters of arecord.


HTH
Clemens


More information about the Alsa-devel mailing list