[alsa-devel] Getting wrong offset and size value alsa library

Leonidas . leonidas137 at gmail.com
Wed Mar 26 23:26:19 CET 2008


Hi,

I am trying to make my user space audio driver work, in my drivers transfer
function, I get wrong values of
offset and size and because of this the alsa buffer is not accessible to me
and I get a segfault in transfer.

The offset should range from 0 to n-1 where n is the buffer size, is this
correct? I can transfer the first chunk
of data and first time the offset as well as size are correct, but when the
transfer function is called again for
second period, offset values and size values are wrong, they are some
astronomical numbers.

-leo


More information about the Alsa-devel mailing list