Different returns from snd_pcm_readi() in differen versions from ALSA driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

We had to write a driver for audio playing and recording on Linux thin 
clients. We are using ALSA driver + libs for it, but we are
depending on the versions which are installed on them.

We have a certain buffer size for this and set the corresponding 
hardware and software parameters and call for capture
snd_pcm_readi(). The function returns the read buffer frames. In most 
versions this is equal to the number of wanted passed frames, but
not in all. We have ALSA driver version 1.0.15 and 1.0.22.1 where the 
returned number is the same. But we have also version 1.0.21
where the returned number is the period size or a multiple of it.

So conclusion is, that something was changed between 1.0.15 and 1.0.21 
and changed back till 1.0.22.1. As we are dependent on the
behaviour of the former and newer version, my question is, if there is a 
possibility to get the same behaviour in version 1.0.21?

Thank you for your answer in advance!

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux