alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* snd_pcm_lib_malloc_pages()
@ 2007-06-07 22:57 Timur Tabi
  2007-06-12  6:11 ` snd_pcm_lib_malloc_pages() Nobin Mathew
  0 siblings, 1 reply; 4+ messages in thread
From: Timur Tabi @ 2007-06-07 22:57 UTC (permalink / raw)
  To: Liam Girdwood, alsa-devel

Liam

Why do none of the ASoC drivers use snd_pcm_lib_malloc_pages()?  They all allocate their 
DMA buffers by hand.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 4+ messages in thread

* snd_pcm_lib_malloc_pages()
@ 2007-06-11 23:49 Timur Tabi
  2007-06-12 12:25 ` snd_pcm_lib_malloc_pages() Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Timur Tabi @ 2007-06-11 23:49 UTC (permalink / raw)
  To: Liam Girdwood, alsa-devel

(resending since I haven't gotten a reply yet)

Liam

Why do none of the ASoC drivers use snd_pcm_lib_malloc_pages()?  They all allocate their
DMA buffers by hand.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: snd_pcm_lib_malloc_pages()
  2007-06-07 22:57 snd_pcm_lib_malloc_pages() Timur Tabi
@ 2007-06-12  6:11 ` Nobin Mathew
  0 siblings, 0 replies; 4+ messages in thread
From: Nobin Mathew @ 2007-06-12  6:11 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel

In the new patch 13.4 see the implementation of imx it uses
use snd_pcm_lib_malloc_pages()

http://opensource.wolfsonmicro.com/~lg/asoc/

patch version 13.4

On 6/8/07, Timur Tabi <timur@freescale.com> wrote:
> Liam
>
> Why do none of the ASoC drivers use snd_pcm_lib_malloc_pages()?  They all allocate their
> DMA buffers by hand.
>
> --
> Timur Tabi
> Linux Kernel Developer @ Freescale
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: snd_pcm_lib_malloc_pages()
  2007-06-11 23:49 snd_pcm_lib_malloc_pages() Timur Tabi
@ 2007-06-12 12:25 ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2007-06-12 12:25 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel

At Mon, 11 Jun 2007 18:49:04 -0500,
Timur Tabi wrote:
> 
> (resending since I haven't gotten a reply yet)
> 
> Liam
> 
> Why do none of the ASoC drivers use snd_pcm_lib_malloc_pages()?  They all allocate their
> DMA buffers by hand.

Maybe because the common ALSA allocator doesn't do always good for
ARM.  For example, it doesn't provide a way to allocate via
dma_alloc_writecombine().

Since long time ago, I'm inclined to get rid of ALSA common allocator
and replace with normal dma_alloc_* in each driver.  But, I haven't
finished it because of lack of necessary functions like
dma_mmap_coherent() for all architectures...


Takashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-12 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07 22:57 snd_pcm_lib_malloc_pages() Timur Tabi
2007-06-12  6:11 ` snd_pcm_lib_malloc_pages() Nobin Mathew
  -- strict thread matches above, loose matches on Subject: below --
2007-06-11 23:49 snd_pcm_lib_malloc_pages() Timur Tabi
2007-06-12 12:25 ` snd_pcm_lib_malloc_pages() Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).