Re: Headset driver detection problem during bootup

From: Mark Brown
Date: Sat Aug 20 2011 - 13:40:24 EST


On Fri, Aug 19, 2011 at 09:23:13PM +0900, anish singh wrote:

> Once the handler is called then we find out if the headset
> is there or not using gpio and then normal detection happens

> Is it the right way to detect the device during power-up?

> After the device is powered up and then if we insert headset
> then it is working fine by calling the interrupt handler and
> everything goes fine.

The standard soc-jack code should already be reading the state of the
GPIO as part of its startup.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/