From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Olaya, Margarita" <magi.olaya@ti.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH v4 2/3] ASoC: twl6040: Add jack support for headset and handset
Date: Sat, 11 Dec 2010 11:18:22 +0000 [thread overview]
Message-ID: <20101211111821.GA9380@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1889FA7136B567478A67D4B0F85B0CCEA4E225CC@dlee06.ent.ti.com>
On Fri, Dec 10, 2010 at 08:45:17PM -0600, Olaya, Margarita wrote:
> From: Jorge Eduardo Candelaria <jorge.candelaria@ti.com>
>
> This patch adds support for reporting twl6040 headset and
> handset jack events.
>
> The machine driver retrieves and report the status through
> twl6040_hs_jack_detect.
>
> A workq is used to debounce of the irq.
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
but...
> +void twl6040_hs_jack_detect(struct snd_soc_codec *codec,
> + struct snd_soc_jack *jack, int report)
> +{
> + struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);
> + struct twl6040_jack_data *hs_jack = &priv->hs_jack;
> +
> + hs_jack->jack = jack;
> + hs_jack->report = report;
> +
> + twl6040_hs_jack_report(codec, hs_jack->jack, hs_jack->report);
> +}
> +EXPORT_SYMBOL_GPL(twl6040_hs_jack_detect);
...note that this doesn't actually enable and disable jack detection so
you might find some system integration issues if the jack detection
misbehaves when not wired up as expected on the board.
next prev parent reply other threads:[~2010-12-11 11:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-11 2:45 [PATCH v4 2/3] ASoC: twl6040: Add jack support for headset and handset Olaya, Margarita
2010-12-11 11:18 ` Mark Brown [this message]
2010-12-11 11:23 ` 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=20101211111821.GA9380@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@slimlogic.co.uk \
--cc=magi.olaya@ti.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 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.