On Fri, Jun 12, 2015 at 11:33:49AM +0100, Mark Brown wrote:
On Fri, Jun 12, 2015 at 02:32:33PM +0800, Zidan Wang wrote:
I have done some test today, and found that after mclk enable, we should delay at least 150ms to prepare the jack detect function. So no need to move mclk enable to startup.
No, this makes no sense - jack detection is not related to playback at all. The system should be able to detect if something is connected at any time. What this says is that you need to keep MCLK enabled while jack detection is available.
This may be the wm8960 codec hardware issue. In generally, we will connect the headphone detect output to the CPU GPIO and let CPU to deal with the headphone jack detect event. The wm8960 have the feature to auto detect headphone jack itself, so in order to save CPU pin, we connect the headphone detect output to the codec headphone jack detect pin(RINPUT3/JD2).
This issue is abnormal. Anyone else who using the community driver meet the same issue?
Best Regards, Zidan Wang