23 Jul
2013
23 Jul
'13
3 p.m.
On Tue, Jul 23, 2013 at 02:54:29PM +0800, bardliao@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?