Re: Driver mmap kernel memory

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

 



At Thu, 8 Feb 2007 09:27:51 +0100,
Micha Nelissen wrote:
> 
> Takashi Iwai wrote:
> > At Wed, 7 Feb 2007 09:31:50 +0100,
> > Micha Nelissen wrote:
> >> 
> >> The CPU architecture is armeb.
> > 
> > OK then you'd need dma_mmap_coherent() for mmapping the data.
> 
> Hmm? I'm not mmapping anything into user space, I suppose ALSA does this
> ?
> In the driver, I access the buffer using the runtime->dma_area field.

On ARM, you cannot mmap and access concurrently with the normal
allocated pages because of coherency.  Instead, you have to allocate
pages via dma_alloc_coherent() and mmap them via dma_mmap_coherent() 
(invoked from mmap PCM ops).  Take a look at alsa-kernel/arm/devdma.*
for example.


Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/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