[alsa-devel] [PATCH] ASoC: rt5640: add headset detection function
broonie at kernel.org
Tue Jul 23 15:00:16 CEST 2013
On Tue, Jul 23, 2013 at 02:54:29PM +0800, bardliao at realtek.com wrote:
> + * @codec: SoC audio codec device.
> + * @jack_insert: Jack insert or not.
> + *
> + * Detect whether is headset or not when jack inserted.
> + *
> + * Returns detect status.
> + */
> +int rt5640_headset_detect(struct snd_soc_codec *codec,
> + struct snd_soc_jack *jack, int jack_insert)
This doesn't look like it implements jack detection, it looks like it's
some sort of callback. I'd expect to see some sort of interrupt for
What's going on here?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the Alsa-devel