alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: jassi brar <jassisinghbrar@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Separate dma driver for cpu_dais
Date: Wed, 17 Feb 2010 11:39:47 +0900	[thread overview]
Message-ID: <1b68c6791002161839q705df04cmeda046736948c614@mail.gmail.com> (raw)

Hi,
  The query concerns ASOC.

Currently we have one platform per card.
What if my card has two dai_links with each cpu_dai fed data
with different mechanism(one with system dma controller and
the other with a dma dedicated to the Audio block). The cpu_dai's
are tightly coupled and I don't wanna have separate socdev's for them.

Presently, I define a dma_id flag in snd_soc_dai, make the snd_soc_card
point to a 'wrapper/muxed' platform driver that checks the dma_id flag and
calls the relevant platform's callbacks. Of course, each cpu_dai initializes
the dma_id to a unique value that corresponds to it's real dma mechanism.

What approach/changes would you suggest I take, so that someday I could
submit the implementation for mainline inclusion?

(For those curious to have a reference - I am talking about Samsung's SoCs
<http://dev.odroid.com/wiki/odroid/pds/HardwareInformation/S5PC100_UM_REV101.pdf
refer to figures on page-1635 & 1637>
that have I2S controllers with h/w mixing capability and where
'secondary fifo' can be
fed with I2S internal DMA controller with dedicated h/w ring buffer)

Thanks.

             reply	other threads:[~2010-02-17  2:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17  2:39 jassi brar [this message]
2010-02-17  6:58 ` Separate dma driver for cpu_dais Joonyoung Shim
2010-02-17  7:24   ` jassi brar
2010-02-17  7:37     ` Joonyoung Shim
2010-02-17 10:52   ` Mark Brown
2010-02-17 12:15     ` jassi brar
2010-02-17 13:14       ` Mark Brown
2010-02-18  2:14         ` jassi brar
2010-02-18  9:35           ` Mark Brown
2010-02-18  9:42             ` jassi brar
2010-02-18  9:52               ` Mark Brown
2010-02-18 10:32                 ` jassi brar
2010-02-18 10:57                   ` Mark Brown
2010-02-18 11:59                     ` jassi brar
2010-02-18 13:10                       ` Mark Brown
2010-02-23  5:45                         ` jassi brar
2010-02-23 10:37                           ` Mark Brown
2010-02-19  9:48                       ` jassi brar
2010-02-19  9:50                         ` Mark Brown
2010-02-18  6:12     ` Joonyoung Shim
2010-02-18  9:42       ` Mark Brown
2010-02-17 10:42 ` Mark Brown
2010-02-17 12:13   ` jassi brar
2010-02-17 12:42     ` Mark Brown

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=1b68c6791002161839q705df04cmeda046736948c614@mail.gmail.com \
    --to=jassisinghbrar@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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 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).