]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: nau8825: fix jack type detection issue after resume
authorJohn Hsu <supercraig0719@gmail.com>
Thu, 22 Jun 2017 03:21:01 +0000 (11:21 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 23 Jun 2017 12:02:13 +0000 (13:02 +0100)
commit8fe19795da1b9dea2353f016622842a2f163039e
tree82d073ca964e83cebe0b3bba0e2d27968599b9f5
parent403d2fef06104275dd4909d2684c86aabe25c917
ASoC: nau8825: fix jack type detection issue after resume

Fix the issue that mic type detection error after resume.
The microphone type detection procedure will recognize
testing signal on JKSLV pin, but before the procedure,
JKSLV already had supply voltage, that results in the failure.
Therefore, the patch turns off the power and reset the jack type
configuration before suspend. Then redo the jack detection
procedure after resume.

The patch help to fix the issue as follows:
Google issue 37973093: CTIA/OMTP jack type detection failure after resume
Reported Issue
Chrome OS Version  :  ChromeOS R59-9460.13.0
Type of hardware   :  DVT sample

What steps will reproduce the problem?
(1 Play a music
(2 Insert a headphones
(3 Close laptop lid 3 sec then open it
What is the expected output?
The music is normal in the headphones.
What do you see instead?
Singer voice in the music is not clear.

How frequently does this problem reproduce?
Always

What is the impact to the user, and is there a workaround?
If so, what is it?
Re-insert the headset or close the laptop lid and
then open it again can be repaired.

Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
Signed-off-by: John Hsu <supercraig0719@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8825.c