1 Feb
2011
1 Feb
'11
2:35 p.m.
I believe this should be part of codec driver that would make sure that it has determined the right adc value and then call the function to find the jack type.
This is not in general possible - there are generally AUXADCs in many devices, CPUs and PMICs both commonly have them, and the majority of them just take a reading when asked to do so. Generic software needs to be able to handle this.
What if I add a field debouce to snd_soc_jack and machine driver needs to program the value. The codec driver should wait for that time before reading the adc values Will this help