alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: jassi brar <jassisinghbrar@gmail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: kyungmin.park@samsung.com, alsa-devel@alsa-project.org,
	Joonyoung Shim <jy0922.shim@samsung.com>
Subject: Re: Separate dma driver for cpu_dais
Date: Thu, 18 Feb 2010 20:59:38 +0900	[thread overview]
Message-ID: <1b68c6791002180359k65381c09t143d37ec5eef1cf8@mail.gmail.com> (raw)
In-Reply-To: <20100218105750.GB3542@rakim.wolfsonmicro.main>

On Thu, Feb 18, 2010 at 7:57 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Thu, Feb 18, 2010 at 07:32:22PM +0900, jassi brar wrote:
>> On Thu, Feb 18, 2010 at 6:52 PM, Mark Brown
>
>> > Where is the code you are talking about here?  This sounds like driver
>> > code...
>
>> Ahh... it's all messed up by that samsung.git link that Joonyoung Shim shared.
>> I assumed you had a look at that. The code just a quick workaround, so
>> I didn't put it up here
>> http://git.kernel.org/?p=linux/kernel/git/kki_ap/linux-2.6-samsung.git;a=commitdiff;h=e5858948bb2c534251b65a850caf197ae880ce1f
>
> His link was to the entire tree rather than a particular bit of code, a
> bit of a needle in the haystack thing going on there (especially since
> you have actually modified the core and for looking at stuff like that
> I'd generally drill down into the platform directory before looking at
> logs or code).
Actually my patches are at the top of 2.6.29 branch(the only one that
has relevant code).
 I wanted to start separate threads for each independent topics towards
implementing a) platform per dai_link, b) dai sharing among dai_links
and c) multi-device per card, but the thread veered off. Anyways...

> The bits of that patch that make active a reference counter look good at
> first glance, could you please pull them out and submit them?
Sure I can, though I think of a few more checks to place in the code.
Will submit tomorrow from workplace.

>  Like I
> said in reply to Joonyoung it's not immediately clear to me that the
> startup and shutdown calls should be suppressed since I'd expect that at
> least some drivers are going to want to know about multiple uses (for
> example, returning -EBUSY if someone tries to have too many things
> active at once).
IMO codecs should simply do as directed by the ASOC.
The multi-instance logic has better be at one place(soc-core.c) rather than
in each codec's driver.
For that reason I modified soc-core.c rather than my device's codec
and cpu driver.

> In general for a vendor BSP I'd strongly recommend against any changes
> in the core that don't get submitted to mainline - it's more of a
> maintinance burden and makes it harder for people to take the drivers
> and use them with other kernel versions if they don't notice the change.
As explained above, I thought I had a reason to do so.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2010-02-18 11:59 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17  2:39 Separate dma driver for cpu_dais jassi brar
2010-02-17  6:58 ` 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 [this message]
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=1b68c6791002180359k65381c09t143d37ec5eef1cf8@mail.gmail.com \
    --to=jassisinghbrar@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=jy0922.shim@samsung.com \
    --cc=kyungmin.park@samsung.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 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).