* [PATCH] sound: tegra_alc5632: remove HP detect GPIO inversion
@ 2012-08-25 3:20 Stephen Warren
[not found] ` <1345864815-19539-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-08-28 7:01 ` Andrey Danin
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Warren @ 2012-08-25 3:20 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren, Marc Dietrich,
Leon Romanovsky
From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Both the schematics and practical testing show that the HP detect GPIO
is high when the headphones are plugged in. Hence, the snd_soc_jack_gpio
should not specify to invert the signal.
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
Cc: Leon Romanovsky <leon-2ukJVAZIZ/Y@public.gmane.org>
Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> # v3.4 v3.5
---
sound/soc/tegra/tegra_alc5632.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c
index e463529..76cb1b3 100644
--- a/sound/soc/tegra/tegra_alc5632.c
+++ b/sound/soc/tegra/tegra_alc5632.c
@@ -89,7 +89,6 @@ static struct snd_soc_jack_gpio tegra_alc5632_hp_jack_gpio = {
.name = "Headset detection",
.report = SND_JACK_HEADSET,
.debounce_time = 150,
- .invert = 1,
};
static const struct snd_soc_dapm_widget tegra_alc5632_dapm_widgets[] = {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1345864815-19539-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH] sound: tegra_alc5632: remove HP detect GPIO inversion
[not found] ` <1345864815-19539-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2012-08-26 19:55 ` Marc Dietrich
2012-08-28 17:09 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Marc Dietrich @ 2012-08-26 19:55 UTC (permalink / raw)
To: Stephen Warren
Cc: Mark Brown, Liam Girdwood, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren,
Leon Romanovsky, Andrey Danin
Hi Stephen,
On Friday 24 August 2012 21:20:15 Stephen Warren wrote:
> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> Both the schematics and practical testing show that the HP detect GPIO
> is high when the headphones are plugged in. Hence, the snd_soc_jack_gpio
> should not specify to invert the signal.
>
> Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Cc: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
> Cc: Leon Romanovsky <leon-2ukJVAZIZ/Y@public.gmane.org>
> Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> # v3.4 v3.5
I tested it and evtest gives back the right stuff with your patch. Can't test
more because I have no headphone/mic here (I just inserted a screwdriver,
grr). On 3.1 kernels, we also have no pin inversion, so unless Leon or Andrey
(cc'ed) have different opinions, this can go through. Just give them a week...
Thanks!
Marc
> ---
> sound/soc/tegra/tegra_alc5632.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/sound/soc/tegra/tegra_alc5632.c
> b/sound/soc/tegra/tegra_alc5632.c index e463529..76cb1b3 100644
> --- a/sound/soc/tegra/tegra_alc5632.c
> +++ b/sound/soc/tegra/tegra_alc5632.c
> @@ -89,7 +89,6 @@ static struct snd_soc_jack_gpio tegra_alc5632_hp_jack_gpio
> = { .name = "Headset detection",
> .report = SND_JACK_HEADSET,
> .debounce_time = 150,
> - .invert = 1,
> };
>
> static const struct snd_soc_dapm_widget tegra_alc5632_dapm_widgets[] = {
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] sound: tegra_alc5632: remove HP detect GPIO inversion
[not found] ` <1345864815-19539-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-08-26 19:55 ` Marc Dietrich
@ 2012-08-28 17:09 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-08-28 17:09 UTC (permalink / raw)
To: Stephen Warren
Cc: Liam Girdwood, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren, Marc Dietrich,
Leon Romanovsky
On Fri, Aug 24, 2012 at 09:20:15PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> Both the schematics and practical testing show that the HP detect GPIO
> is high when the headphones are plugged in. Hence, the snd_soc_jack_gpio
> should not specify to invert the signal.
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sound: tegra_alc5632: remove HP detect GPIO inversion
2012-08-25 3:20 [PATCH] sound: tegra_alc5632: remove HP detect GPIO inversion Stephen Warren
[not found] ` <1345864815-19539-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2012-08-28 7:01 ` Andrey Danin
1 sibling, 0 replies; 4+ messages in thread
From: Andrey Danin @ 2012-08-28 7:01 UTC (permalink / raw)
To: Stephen Warren
Cc: alsa-devel, Stephen Warren, Mark Brown, Marc Dietrich,
Leon Romanovsky, linux-tegra, Liam Girdwood
Fri, 24 Aug 2012 21:20:15 -0600 от Stephen Warren <swarren@wwwdotorg.org>:
> From: Stephen Warren <swarren@nvidia.com>
>
> Both the schematics and practical testing show that the HP detect GPIO
> is high when the headphones are plugged in. Hence, the snd_soc_jack_gpio
> should not specify to invert the signal.
>
Acked-by: Andrey Danin <danindrey@mail.ru>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-28 17:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-25 3:20 [PATCH] sound: tegra_alc5632: remove HP detect GPIO inversion Stephen Warren
[not found] ` <1345864815-19539-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-08-26 19:55 ` Marc Dietrich
2012-08-28 17:09 ` Mark Brown
2012-08-28 7:01 ` Andrey Danin
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).