All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raymond <rayau@netvigator.com>
To: alsa-devel@lists.sourceforge.net
Subject: Re: alsa dma transfer
Date: Wed, 29 Jun 2005 20:33:22 +0800	[thread overview]
Message-ID: <42C29512.7020205@netvigator.com> (raw)
In-Reply-To: <s5hd5q57bv5.wl%tiwai@suse.de>

Takashi Iwai wrote:
> At Wed, 29 Jun 2005 16:35:21 +1000,
> Tehn-Yit Chin wrote:
> 
>>From what I can tell, runtime->dma_start is a virtual memory buffer that
>>has the audio data, and the amount of data to transfer is in
>>frames_to_bytes(runtime, runtime->period_size). Is this right?
> 
> 
> runtime->dma_area is the virtual address and runtime->dma_addr is the
> physical (more exactly bus) address.  They are set up either via
> snd_pcm_lib_malloc_pages() or manually by yourself in hwparams
> callback.  In the former case, you'll need the buffer pre-allocation
> beforehand at the creation of PCM instance.
> 
> 

When implementing wavetable synth in au88x0, how to setup DMA in order
to play those pre-loaded sound font samples (loaded to snd_util_memhdr_t
using hwdep) through PCM (hw:0) ?

The device hw:0 allow sending 16 mono PCM samples ( change pitch by SRC 
and panning by hardware mixer, no reverb and chrous effect) to AC97 codec

How to ensure each sound font samples loaded in memory aligned at 4K
boundary ?




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

  reply	other threads:[~2005-06-29 12:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29  6:35 alsa dma transfer Tehn-Yit Chin
2005-06-29  7:21 ` Lee Revell
2005-06-29  9:26 ` Takashi Iwai
2005-06-29 12:33   ` Raymond [this message]
2005-06-29 13:40     ` Takashi Iwai
2005-07-05 12:26       ` Raymond
2005-07-05 13:12         ` Takashi Iwai
2005-07-05 15:58           ` Raymond
2005-07-08 16:24           ` Raymond
2005-07-27  9:08             ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2005-06-29 12:53 Tehn-Yit Chin
2005-06-29 13:34 ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C29512.7020205@netvigator.com \
    --to=rayau@netvigator.com \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.