From: Mark Brown <broonie@kernel.org>
To: Dylan Reid <dgreid@chromium.org>
Cc: Takashi Iwai <tiwai@suse.de>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Liam Girdwood <lgirdwood@gmail.com>,
Xing Zheng <zhengxing@rock-chips.com>
Subject: Re: [RFC 0/5] Add a gpio jack device
Date: Thu, 28 May 2015 11:17:44 +0100 [thread overview]
Message-ID: <20150528101744.GT21577@sirena.org.uk> (raw)
In-Reply-To: <CAEUnVG6_p7xqYmkxjrqFwTbqwCEO0JiNwjL-pLE2GKv3eLbN+g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1280 bytes --]
On Wed, May 27, 2015 at 10:38:32PM -0700, Dylan Reid wrote:
> On Wed, May 27, 2015 at 10:26 AM, Mark Brown <broonie@kernel.org> wrote:
> > So like I say I was thinking that either the jack object has a list of
> > detection method phandles which point to other devices or the other
> > devices point at the jack object.
> I might not be completely following this. Do we want to create a
> binding for the physical plug and another for the method used to
> detect the if a device is attached?
Yes, or at least allow other things to extend what the device is doing.
> What is the benefit in separating the plug from the detection method,
> these seem pretty tightly bound to me. There are three main types of
> detection for headsets, gpio, ADC measurement, and offload to a codec
> or HP chip. Are there situations where those would change separate
> from how the jack is connected?
No, but they can be combined onto a single jack - for example have a
GPIO switch that detects mechanical insertion and a CODEC that detects
microphone and button presses. The GPIO/ADC combination used to be very
common, it's essentially just a non-integrated way of doing what your
accessory detection device does. If you have non-audio functions on the
jack then things get even richer.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2015-05-28 10:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 22:09 [RFC 0/5] Add a gpio jack device Dylan Reid
2015-05-22 22:09 ` [RFC 1/5] ALSA: Add jack types to dt-bindings Dylan Reid
2015-05-25 12:11 ` Mark Brown
2015-05-22 22:09 ` [RFC 2/5] ASoC: jack - add_gpiods accepts filled descriptors Dylan Reid
2015-05-25 12:12 ` Mark Brown
2015-05-22 22:09 ` [RFC 3/5] ASoC: Add GPIO based jack device Dylan Reid
2015-05-25 12:11 ` Mark Brown
2015-05-26 6:20 ` Dylan Reid
2015-05-22 22:09 ` [RFC 4/5] ASoC: tegra_max98090: Change nyan to use gpio-jack Dylan Reid
2015-05-22 22:09 ` [RFC 5/5] ARM: tegra: nyan: specify gpio-audio-jack device Dylan Reid
2015-05-25 15:17 ` [RFC 0/5] Add a gpio jack device Lars-Peter Clausen
2015-05-25 17:15 ` Mark Brown
2015-05-25 18:58 ` Dylan Reid
2015-05-26 18:43 ` Lars-Peter Clausen
2015-05-26 20:14 ` Mark Brown
2015-05-27 4:22 ` Dylan Reid
2015-05-27 11:15 ` Lars-Peter Clausen
2015-05-27 17:26 ` Mark Brown
2015-05-28 5:38 ` Dylan Reid
2015-05-28 10:17 ` Mark Brown [this message]
2015-05-27 11:12 ` Lars-Peter Clausen
2015-05-28 19:35 ` 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=20150528101744.GT21577@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=dgreid@chromium.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=tiwai@suse.de \
--cc=zhengxing@rock-chips.com \
/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