All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@sirena.org.uk>
To: Liam Girdwood <lrg@kernel.org>
Cc: alsa-devel@alsa-project.org, Robert Jarzmik <robert.jarzmik@free.fr>
Subject: Re: [PATCH 1/2] Add initial support of Mitac mioa701 device SoC.
Date: Fri, 9 Jan 2009 13:54:00 +0000	[thread overview]
Message-ID: <20090109135359.GC25751@sirena.org.uk> (raw)
In-Reply-To: <1231507238.4934.19.camel@vega.slimlogic.co.uk>

On Fri, Jan 09, 2009 at 01:20:38PM +0000, Liam Girdwood wrote:
> On Fri, 2009-01-09 at 01:02 +0000, Mark Brown wrote:

> > Right now my feeling is that we probably want to do at least some
> > scenario stuff in kernel space and that what's sensible for a given

> My feeling is that kernel based scenario really should be minimal to non
> existent depending upon machine. If it has to be implemented then it
> must be consistent across all devices (probably worth creating a
> sound/core/scenario.c for others to use).

Yes, that's pretty much what I'm thinking.  The kernel should have
anything required to prevent hardware damage in it but beyond that
it's getting debatable.

It also seems useful to have some support for doing a fixed rename of
controls in machine drivers to allow things like renaming of outputs and
inputs to match the connections on the machine.

I'd probably be willing to see a small amount of additional scenario
code in kernel space for cases where it's clear that the hardware can
only run in a very small number of scenarios due to the limited features
it has, especially if it ties in with stuff that needs to be done to
prevent hardware damage.  It looks like this device may well fall into
that sort of use case.

> Imho it's far better to do most scenario in userspace due to increasing
> driver complexity and slow driver scenario development speed (remember
> the OSS driver pain involved with this). Userspace will additionally

It's also policy, which on general principle shouldn't go into the
kernel anyway.  With devices like the OpenMoko it looks out you pretty
much need to have any to any routing available to user space anyway to
cover all the use cases people have so you have to have a way of doing
scenarios in user space.

> give us a consistent API for applications and hopefully much better
> adoption (esp if merged into alsa-lib / salsa).

Or adopted by things like the FSO stack.

      parent reply	other threads:[~2009-01-09 13:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08 18:42 [PATCH 0/2] ASoC: MioA701 board Robert Jarzmik
2009-01-08 18:42 ` [PATCH 1/2] Add initial support of Mitac mioa701 device SoC Robert Jarzmik
2009-01-08 18:42   ` [PATCH 2/2] Add initial support of Mitac mioa701 master volume Robert Jarzmik
2009-01-08 20:46     ` Mark Brown
2009-01-08 20:33   ` [PATCH 1/2] Add initial support of Mitac mioa701 device SoC Mark Brown
2009-01-08 21:07     ` Robert Jarzmik
2009-01-09  1:02       ` Mark Brown
2009-01-09 12:43         ` Robert Jarzmik
2009-01-09 16:28           ` Mark Brown
2009-01-09 13:20         ` Liam Girdwood
2009-01-09 13:32           ` Takashi Iwai
2009-01-09 13:54           ` Mark Brown [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=20090109135359.GC25751@sirena.org.uk \
    --to=broonie@sirena.org.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@kernel.org \
    --cc=robert.jarzmik@free.fr \
    /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.