Hello,
Thanks,
>> > offset = 0; /* bytes */
>> > while (offset < total_size) {
>> > dma_addr_t addr = snd_sgbuf_get_addr(sgbuf, offset);
>> > map_this_addr_to_my_hw_table(addr);
>> > offset += 4096; /* 4k */
>>
If PAGE_SIZE is never less than 4k then the code is good and
I did it this way, I seems to work quite stable.
mfg winfried
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel