At Wed, 02 Apr 2003 12:33:18 +0200 (CEST),
Giuliano Pochini wrote:
> 
> 
> On 02-Apr-2003 Takashi Iwai wrote:
> >> I don't set .copy callback and ->dma_area should be 0 because the card
> >> uses a sg-list. #:(
> >
> > no, dma_area should not be zero.  you shouldn't change the value, if
> > you use snd_pcm_lib_malloc_pages().  in the case of sg-buffer,
> > dma_area will hold the virtual mapped address, too.
> 
> I write in the runtime struct only the private area and hw pointers.

sorry, which fields do you mean exactly?
runtime->private_data and runtime->hw ?
then they are ok, of course.

anyway, runtime->dma_area and runtime->dma_bytes MUST be filled
manually IFF you don't use snd_pcm_lib_malloc_pages().
(dma_area won't be needed if the mmap is not supported and copy
 callback is defined, though.)


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to