All of 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, Lennart Poettering <mznyfn@0pointer.de>
Subject: Re: RFC: Jack-detection control elements on HD-audio
Date: Fri, 19 Jun 2009 10:53:22 +0100	[thread overview]
Message-ID: <20090619095322.GC5270@sirena.org.uk> (raw)
In-Reply-To: <s5hk538ejj4.wl%tiwai@suse.de>

On Fri, Jun 19, 2009 at 10:04:47AM +0200, Takashi Iwai wrote:

> yet another thing I've worked recently on is a bit more generalized
> framework for jack-sense reporting for HD-audio.  This supersedes the
> existing jack-sense reporting via the input layer.  In addition, it
> gives the corresponding control elements.

It'd be nice to keep the input API interface as well - one of the
reasons I carried on with the existing input interface was that the
existing userspace stuff I found was using the input API in one way or
another.  In the embedded space it appears to have often been convenient
for people to read jack sense from a GPIO as part of a GPIO keyboard
they're already using which was part of the reason it was never really
joined up with ALSA in the past.

I suspect that which interface is more convenient will depend on what
the application responding to the events is doing.  For system-wide
things that aren't focused on audio being able to use the general input
API makes some sense, while for audio-focused applications that are
already using ALSA sitting within the ALSA APIs is useful.  This sort of
system wide thing is probably more common in the embedded space, though
HAL/DeviceKit do similar things in the desktop space for other kinds of
hardware.

Perhaps rather than superceeding the existing ABI it'd make sense to
have something in user space as either a plugin or part of the library
which remaps things into a more ALSA framework?  I confess I've no idea
what sort of work is involved in doing that; it may be simpler to just
provide two ABIs.

> For example, you'll have "Jack HP-Out" (or a bit more verbose like
> "Jack HP-Out at Ext Rear") control via control API as well as other
> mixer controls.  This can notify when a jack is plugged/unplugged.

Including the colours (where reported) is often very helpful for
figuring out what's what.  The pictures manufacturers seem fond of using
for describing the jack functions aren't always models of clarity to the
general user.

  parent reply	other threads:[~2009-06-19  9:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19  8:04 RFC: Jack-detection control elements on HD-audio Takashi Iwai
2009-06-19  8:54 ` Jaroslav Kysela
2009-06-19  9:02   ` Takashi Iwai
2009-06-19 12:34   ` Lennart Poettering
2009-06-19  9:53 ` Mark Brown [this message]
2009-06-19 10:08   ` Takashi Iwai
2009-06-19 16:37     ` Mark Brown
2009-07-02 22:27     ` pl bossart
2009-07-03  5:32       ` Takashi Iwai
2009-06-19 12:21 ` Lennart Poettering
2009-06-19 12:31   ` 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=20090619095322.GC5270@sirena.org.uk \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=mznyfn@0pointer.de \
    --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 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.