alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* snd_soc_jack_add_gpios vs. SOC_DAPM_PIN_SWITCH
@ 2011-02-01  0:03 Stephen Warren
  2011-02-01 11:33 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2011-02-01  0:03 UTC (permalink / raw)
  To: Mark Brown (broonie@opensource.wolfsonmicro.com)
  Cc: alsa-devel@alsa-project.org

I've set up headphone hack detection in my machine driver, using
snd_soc_jack_new, snd_soc_jack_add_pins, and snd_soc_jack_add_gpios.

I've also created a control to allow the user to enable/disable the headphone
jack:

static const struct snd_kcontrol_new harmony_controls[] = {
	SOC_DAPM_PIN_SWITCH("Headphone Jack"),
};

On their own, both of these work fine.

However, if I use the control to disable the headphones, then unplug/replug
the headphones, the jack detect seems to override the control, and I hear
audio from the headphones.

Is this something that's known not yet implemented or was never intended to
be used this way, or should I look further to find the issue?

FYI, sound/soc/samsung/smartq_wm8987.c has this same code structure, and I 
imagine will have the same issue.

Thanks.

-- 
nvpublic

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-01 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01  0:03 snd_soc_jack_add_gpios vs. SOC_DAPM_PIN_SWITCH Stephen Warren
2011-02-01 11:33 ` Mark Brown
2011-02-01 18:59   ` Stephen Warren
2011-02-01 22:27     ` Mark Brown

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