swapnil kamble wrote: > > Thanks for your reply. Since we can not get > AdapterObject and you are saying that it is emulated. So I don't have > worry about it too much. But then how can I allocate buffer. Will just > AllocateBuffer() will do it ? Because in ac97 sample they have > AdapterObject->DmaOperations->AllocateCommonBuffer()/FreeCommonBuffer(). > About that index nCurrentIndex is it nTail written in > WriteControlRegister(); at GetNewMappings. Used in ReleaseUsedMappings. Son, you need to step back and think about the problem you are solving, instead of asking all of us to do this work for you. What you are asking here is common sense information that YOU should be able to figure out. As it is, it sounds like you are trying to hack up a driver without a clear understanding of how it works, or what you need the result to do. If you aren't doing DMA, then you don't need special DMA-ready memory. You don't need a common buffer. You just a piece of normal memory. You know how to allocate memory in a kernel driver, right? But are you sure you will need an extra buffer at all, if you don't really have hardware? What is the common buffer used for? If its sole purpose is to send a buffer to the hardware, then why do you need it at all? -- Tim Roberts, timr@xxxxxxxxx Providenza & Boekelheide, Inc. ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/