Re: Getting physical address of the DMA buffer

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

 



Pharaoh . wrote:
> On 6/27/07, Clemens Ladisch <cladisch@xxxxxxxxxxxx> wrote:
> > SNDRV_DMA_TYPE_CONTINUOUS is for a buffer that cannot be accessed
> > over DMA.
> >
> > What kind of bus does your hardware use, and how would you
> > allocate memory for it?
> 
> Continuous buffers unrelated to the bus type can be allocated using
> SNDRV_DMA_TYPE_CONTINUOUS right? I am referring a standard driver from
> omap source tree, and the buffer allocation functions I have copied
> from there and they should be same for the range of OMAPs since the
> dma handling is same for them.

I don't know anything about OMAP.

If the processor doesn't use a MMU, then the memory addresses as seen
by the CPU are the same as those used by a device using DMA.  In that
case, you could use SNDRV_DMA_TYPE_CONTINUOUS and the correct address
would be available as runtime->dma_area.


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/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