]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: nau8825: lock longer to avoid playback pop upon resume
authorJohn Hsu <KCHSU0@nuvoton.com>
Tue, 29 Nov 2016 02:05:16 +0000 (10:05 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 30 Nov 2016 17:42:52 +0000 (17:42 +0000)
commitdf8ba3129a5bb42e1ff8df09750fa31a2bdcc9c9
treec18b94ca0dc743eec05d742c8d587b3290b89e1c
parent1b6b2bd555bcb0ccd7170b71c28e90e82fe10ec1
ASoC: nau8825: lock longer to avoid playback pop upon resume

There is an issue about pop noise in NAU88L25 as follows.
Issue 54078: Chell_headphone pop back from S3
(1)Play directly to hw, bypassing CRAS:
sox -b 16 -n -t alsa hw:0,0 synth sine 200 sine 200
(2)Close lid or powerd_dbus_suspend, then press a key to resume.
(3)no audio after resume
(4)Audio will be back after close then reopen the pcm device.

After verification, we find one defect is that semaphone lock is not
long enough and expired. In this situation, the playback comes back
early but pauses a while to wait for the crosstalk detection done.
But the detection spends too much time and lock time is up. Therefore,
the playback and jack detection sequence interfere to each other.
That breaks sequence and makes noise. The driver extends the lock
time for the issue.

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