All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Mandarino <fmandarino@endrelia.com>
To: Paul Kavan <pkavan@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: AT91 SoC PCM Capture
Date: Fri, 22 Jun 2007 13:19:26 -0400	[thread overview]
Message-ID: <467C049E.8060807@endrelia.com> (raw)
In-Reply-To: <61c0054e0706220935y22b58671l72b11cf9c77c4b35@mail.gmail.com>

Paul Kavan wrote:
> I am wondering what piece of code contains the capture functionality for
> the at91 soc. I am hoping to see how and when the pcm activates the ssc
> at read time. I just cannot figure out why TD0 would behave at such with
> this set of code and yet behave correctly with my polling code. Not a
> criticism....just wanting to figure this out.

There is very little distinction between Playback and Capture in the
ASoC AT91 implementation.  Each SSC has 2 DMA structures, one for each
direction.  The Playback DMA structure points at the SSC PDC transmit
registers and SSC transmit register masks, and the Capture DMA structure
points at the SSC PDC receive registers and SSC receive masks.  The DMA
structure to use is selected in at91_ssc_hw_params().

By doing this, at91-pcm.c DMA code can simply run the DMA transfers
without having to know which direction the data is being transferred.

Both receive and transmit SSC registers are initialized in
at91_ssc_hw_params(), regardless of the direction.

../fam
-- 
Frank Mandarino                                fmandarino(a)endrelia.com
Endrelia Technologies Inc.
Toronto, Ontario, Canada

      reply	other threads:[~2007-06-22 17:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22 16:35 AT91 SoC PCM Capture Paul Kavan
2007-06-22 17:19 ` Frank Mandarino [this message]

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=467C049E.8060807@endrelia.com \
    --to=fmandarino@endrelia.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=pkavan@gmail.com \
    /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.