[alsa-devel] [PATCH] ASoC: rt5640: add headset detection function
Mark Brown
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
example...
What's going on here?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130723/3174dbdf/attachment.sig>
More information about the Alsa-devel
mailing list