From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: David Henningsson <david.henningsson@canonical.com>
Cc: Takashi Iwai <tiwai@suse.de>,
ALSA Development Mailing List <alsa-devel@alsa-project.org>,
Kay Sievers <kay.sievers@vrfy.org>,
Lennart Poettering <lennart@poettering.net>
Subject: Re: Jack event API - decision needed
Date: Wed, 29 Jun 2011 10:00:24 -0700 [thread overview]
Message-ID: <20110629170023.GA10798@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <4E0AE7BD.4080801@canonical.com>
On Wed, Jun 29, 2011 at 09:52:13AM +0100, David Henningsson wrote:
> On 2011-06-29 08:21, Mark Brown wrote:
> >>However, if we manage to expose all the routing between PCMs, volume
> >>controls and ports, we can make an even better PulseAudio, because
> >>we can solve other problems as well, such as the volume control
> >>naming problem. But figuring out how to do that in the best way
> >>API-wise and so on, I guess that will take some time.
> >This is really a totally separate question,
> The question is not totally separate as if we design an ALSA API, we
> might have this in the back of our minds in order to not build an
> API when adding this information later will be very difficult.
I think if we make that difficult we've messed up massively anyway.
> >there's so much routing
> >within the devices that the jacks are just not a particularly
> >interesting part of it.
> I'm probably misunderstanding you here, because that sounds crazy.
> What sense would it make to display a routing graph if the jacks are
> not part of that graph?
I said they weren't an interesting part of it, not that they're not part
of it. It's a very small detail relative to all the other stuff we need
to worry about.
> >My main concern is being able to group the objects back
> >together again for use both in kernel (when the hardware overlaps) and
> >in userspace in an understandable fashion and I've not seen anything
> >that I'm as comfortable with as a directly visible object exported from
> >the kernel.
> I'm not following. For userspace, you need to match the input layer
> against an ALSA sound card. You need to do that regardless of
> whether the buttons and the jacks are in the input layer, or if only
> the buttons are there. No difference in difficulty as I see it.
As repeatedly discussed we need to do at least a three way match -
currently we need to also glue both input and audio to graphics as well.
It seems likely we'll end up with other things on there too.
> For the kernel part, I guess that if ASoC core (or ALSA core) is
> responsible for the splitting, and that the actual driver has an
> object covering both types of input (i e both jacks and buttons),
> that would be the most obvious way to solve the problem.
The multiple subsystems thing also applies here - you really can't rely
on doing this all in one driver.
> >I do have to say I like not having to use alsa-lib to get the
> >information but that's even less of a big deal.
> Ok, is that because Android does not use alsa-lib?
No, it's because it's a pretty big library with it's own programming
interface that's more complicated than your standard poll and read so
it's not quite so natural to integrate into your system management
daemon (that looks after the system as a whole) as it could be.
next prev parent reply other threads:[~2011-06-29 17:00 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 13:37 Jack event API - decision needed David Henningsson
2011-06-20 17:07 ` Mark Brown
2011-06-20 17:12 ` Takashi Iwai
2011-06-20 17:31 ` Mark Brown
2011-06-20 17:37 ` Takashi Iwai
2011-06-20 18:53 ` David Henningsson
2011-06-20 23:40 ` Mark Brown
2011-06-21 12:11 ` David Henningsson
2011-06-21 12:39 ` Mark Brown
2011-06-22 10:47 ` David Henningsson
2011-06-22 11:48 ` Mark Brown
2011-06-22 12:50 ` Kay Sievers
2011-06-22 13:25 ` Mark Brown
2011-06-22 13:55 ` Kay Sievers
2011-06-22 15:11 ` Mark Brown
2011-06-22 21:41 ` Dmitry Torokhov
2011-06-23 0:15 ` Mark Brown
2011-06-23 8:42 ` Dmitry Torokhov
2011-06-23 10:47 ` Mark Brown
2011-06-22 21:01 ` Lennart Poettering
2011-06-22 21:57 ` Stephen Warren
2011-06-23 1:10 ` Mark Brown
2011-06-23 7:01 ` Clemens Ladisch
2011-06-23 7:24 ` Takashi Iwai
2011-06-23 9:49 ` Lennart Poettering
2011-06-23 11:43 ` Mark Brown
2011-06-23 15:32 ` Stephen Warren
2011-06-27 12:07 ` Mark Brown
2011-06-27 17:01 ` Colin Guthrie
2011-06-28 16:20 ` Mark Brown
2011-07-09 3:38 ` Mark Brown
2011-06-28 16:27 ` David Henningsson
2011-06-28 16:34 ` Liam Girdwood
2011-06-28 16:35 ` Mark Brown
2011-06-28 16:35 ` Takashi Iwai
2011-06-29 2:59 ` Mark Brown
2011-06-29 5:34 ` Takashi Iwai
2011-06-29 6:59 ` Mark Brown
2011-06-29 7:03 ` Takashi Iwai
2011-06-29 7:13 ` David Henningsson
2011-06-29 7:21 ` Mark Brown
2011-06-29 8:52 ` David Henningsson
2011-06-29 17:00 ` Mark Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-20 13:56 Mark Brown
2011-06-20 14:11 ` David Henningsson
2011-06-20 14:19 ` Kay Sievers
2011-06-20 15:35 ` Takashi Iwai
2011-06-20 16:52 ` Mark Brown
2011-06-20 17:01 ` Takashi Iwai
2011-06-20 18:24 ` David Henningsson
2011-06-21 0:29 ` Mark Brown
2011-06-21 6:57 ` David Henningsson
2011-06-21 10:40 ` Mark Brown
2011-06-20 16:47 ` Mark Brown
2011-06-20 16:59 ` Takashi Iwai
2011-06-20 17:17 ` Mark Brown
2011-06-20 17:38 ` 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=20110629170023.GA10798@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=david.henningsson@canonical.com \
--cc=kay.sievers@vrfy.org \
--cc=lennart@poettering.net \
--cc=tiwai@suse.de \
/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