Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, Dmitry Torokhov <dtor@insightbb.com>,
	linux-input@vger.kernel.org
Subject: Re: [0/2] Jack reporting
Date: Wed, 16 Jul 2008 13:50:53 +0100	[thread overview]
Message-ID: <20080716125053.GA17134@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <s5hlk02148k.wl%tiwai@suse.de>

On Wed, Jul 16, 2008 at 01:02:35PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > Takashi, do you have any comments on these patches?

> I have no strong opinion about this.  Your implementation looks small
> enough.  But, if Dmitry finds the input layer not suitable for such a
> purpose, this isn't a good way to go.

Unfortunately Dimitry hasn't been responding to any of the e-mails on
this subject since his initial one.  :/

> I think the question is how general and how extensible these features
> should be.  If it's just a jack reporting, there are bunch of other

To reiterate points I've previously made:

As well as detecting the presence of a connected device typical jack
detection implementations also support the implementation of at least
one button which would require an input device for at least some jacks
even if something else were done.  This is consistent with existing
usage of the input layer - it's similar to multimedia keys which are
normally reported via the input layer.  Things like sleep and power
buttons are implemented as individual input devices.

We do also already have existing in-kernel users of the input API to
report jack status (usually done via GPIOs outside of ALSA).  From that
point of view this ALSA helper is simply implementing the existing user
space interface for reporting jacks.  I feel that if we want to do
something different we should work out how to transition these existing
users to it too.  We can always add the existing code while working out
what that transition plan might be.

The concern Dmirty raised about requring an ioctl() to get the initial
switch state seems to be something that ought to be addressed anyway
regardless of what happens here.  Similarly, the concerns about the
resouce consumption of the input layer seem to be a general issue (and
to be honest I'm not convinced that they're a practical problem).

Without the existing users of this interface and the button I'd probably
agree with Dmitry but those two factors persuade me otherwise.

> possible implementations.  Even ALSA control API could provide a
> similar functionality.

This has most of the concerns that applied to the existing input API :(

  reply	other threads:[~2008-07-16 12:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03  9:50 [0/2] Jack reporting Mark Brown
2008-07-03  9:52 ` [PATCH 1/2] Add jack reporting API for ALSA Mark Brown
2008-07-03  9:52   ` [PATCH 2/2] Add microphone and headset reporting Mark Brown
2008-07-14 15:11 ` [0/2] Jack reporting Mark Brown
2008-07-16 11:02   ` [alsa-devel] " Takashi Iwai
2008-07-16 12:50     ` Mark Brown [this message]
2008-07-16 16:36       ` Dmitry Torokhov
2008-07-17 10:31         ` Mark Brown
2008-07-20  5:23           ` Dmitry Torokhov
2008-07-20 12:17             ` Mark Brown
2008-07-20 15:23               ` Takashi Iwai
2008-07-20 19:30                 ` 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=20080716125053.GA17134@rakim.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=dtor@insightbb.com \
    --cc=linux-input@vger.kernel.org \
    --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