[Gta04-owner] Detecting headset plug: twl4030-madc IRQ issue

NeilBrown neilb at suse.de
Tue May 22 22:57:34 CEST 2012


On Tue, 22 May 2012 20:54:15 +0200 PaulK <paulk at paulk.fr> wrote:

> After bringing audio output to Replicant on GTA04, I'm back to work on
> headset plug detect. For now, I'm going with hw-validation kernel just
> to make sure the ADCs are handled correctly. 
> 
> So apparently, ADC7 is MICSENSE (no headset / short / headset) [1],
> exactly what I need. After trying some user-space madc code [2], it
> seems that ADC7 reports pretty-much the same value (around raw=10)
> regardless of headset plug state. 
> 
> What am I missing here? Any help would be greatly appreciated!

Maybe you need to make sure VHSMIC.OUT is generating current.
i.e. Set the HSMICBIAS_EN bit in MICBIAS_CTL

You should be able to do this with alsamixer by finding the control called

   Headset Mic Bias

and enabling that.
But maybe you already have and it is some other problem...

NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120523/bd3ff21c/attachment.bin>


More information about the Gta04-owner mailing list