SNDRV_PCM_INFO_MMAP
Could someone let me know what this symbol is for? The documentation "how to write an ALSA driver" simply states: When the mmap is supported, add SNDRV_PCM_INFO_MMAP flag here
Now, I know MMAP will stand for memory mapped/mapping in some way, but could someone tell me what? Does this mean if the device is memory mapped, for instance? (I am not trying to write a PCI device driver and apologies for the basic nature of the question).
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
At Sat, 08 Oct 2005 19:17:29 +0100,
Quoted 9 lines · Adrian McMenamin
Could someone let me know what this symbol is for? The documentation "how to write an ALSA driver" simply states: When the mmap is supported, add
SNDRV_PCM_INFO_MMAPflag hereNow, I know MMAP will stand for memory mapped/mapping in some way, but could someone tell me what? Does this mean if the device is memory mapped, for instance? (I am not trying to write a PCI device driver and apologies for the basic nature of the question).
It means that the DMA buffers are memory-mapped to user-space so that they can be accessed directly without read/write syscalls.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl