linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, linux-input@vger.kernel.org
Subject: Re: [alsa-devel] [0/2] Jack reporting
Date: Wed, 16 Jul 2008 12:36:06 -0400	[thread overview]
Message-ID: <20080716112939.ZZRA012@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <20080716125053.GA17134@rakim.wolfsonmicro.main>

On Wed, Jul 16, 2008 at 01:50:53PM +0100, Mark Brown wrote:
> 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.  :/
> 

Completely my fault, I am verry sorry.

> > 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.
> 

It really depends on what you can do with this button. If it is just a
simple circuit breaker then it is not really an input device. However
is you can remap it for different purposes or map a regular key on a
keybaord to perform this function then I will agree with you. For example
sleep and power buttons can be anywhere. They can be implemented as
ACPI button but there also a bunch of keyboards that have a sleep
button on them. Or, like you said, multimedia keys - they not always
control hardware directly, often you have an option to remap and
re-use them.

> 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.

Yes, I agree, we would need to transit the existing users to the new
scheme.

-- 
Dmitry

  reply	other threads:[~2008-07-16 16:36 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
2008-07-16 16:36       ` Dmitry Torokhov [this message]
2008-07-17 10:31         ` [alsa-devel] " 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=20080716112939.ZZRA012@mailhub.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --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;
as well as URLs for NNTP newsgroup(s).