* asoc: how to enable micbias and codec power when headset inserted
@ 2011-06-29 17:02 Babu, Ramesh
2011-06-29 17:47 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Babu, Ramesh @ 2011-06-29 17:02 UTC (permalink / raw)
To: alsa-devel@alsa-project.org; +Cc: 'Mark Brown', Liam Girdwood
Hi
I have question on handling mic bias and codec bias when headset is inserted.
When headset is inserted, the mic bias and codec bias should be ON, in order to get the
button press interrupts from the headset.
Do I need to have dapm path to achieve this?
Reference to existing code would be nice !
Regards
Ramesh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: asoc: how to enable micbias and codec power when headset inserted
2011-06-29 17:02 asoc: how to enable micbias and codec power when headset inserted Babu, Ramesh
@ 2011-06-29 17:47 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-06-29 17:47 UTC (permalink / raw)
To: Babu, Ramesh; +Cc: alsa-devel@alsa-project.org, Liam Girdwood
On Wed, Jun 29, 2011 at 10:32:39PM +0530, Babu, Ramesh wrote:
> I have question on handling mic bias and codec bias when headset is inserted.
> When headset is inserted, the mic bias and codec bias should be ON, in order to get the
> button press interrupts from the headset.
> Do I need to have dapm path to achieve this?
Use snd_soc_dapm_force_enable_pin() to force the micbias widget on and
_disable_pin() to turn it off again when the jack is removed. You can
do this in response to a notification registered with the notifier chain
in the jack using snd_soc_jack_notifier_register().
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-29 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 17:02 asoc: how to enable micbias and codec power when headset inserted Babu, Ramesh
2011-06-29 17:47 ` Mark Brown
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.