18 Nov
2008
18 Nov
'08
12:03 p.m.
On Tue, Nov 18, 2008 at 12:16:18PM +0530, naveen krishna ch wrote:
Now my issue is is there any work regarding the Headset JACK insertion/detection.
Earlier there was a proposal for a jack insertion layer.
Can anyone suggest me in this regard.
The generic ALSA part of the API has been merged already - see include/sound/jack.h.
For ASoC drivers you need to implement the actual detection in your machine driver. Normally this would just hook into a GPIO. You can then update the DAPM widget for the jack to mark it as in use or not in use (some existing drivers do this) and also hook into the generic userspace API (that's not been implemented by anyone yet). Plan is to get something more generic into 2.6.30.