[alsa-devel] How are events of headphone plug/unplug handled in ASOC.

Mark Brown broonie at opensource.wolfsonmicro.com
Thu May 8 12:31:27 CEST 2008

On Thu, May 08, 2008 at 03:57:04PM +0530, Srinivas.Kandagatla wrote:

> I see the background of ASOC states that it supports some mechanism for
> events from plugging/unplugging headphone.
> But I don't see this support in any of the drivers/alsa-lib or is this
> feature is yet to come in ASOC core.

There is currently no core support for this.  The machine driver needs
to listen for headphone insert events using whatever mechanism the board
supports and call snd_soc_dapm_set_endpoint() to enable and disable the
relevant jacks when the headphones are connected and disconnected.

More information about the Alsa-devel mailing list