• John Hsu's avatar
    ASoC: nau8825: lock longer to avoid playback pop upon resume · 2263fddc
    John Hsu authored
    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: default avatarJohn Hsu <KCHSU0@nuvoton.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    2263fddc
nau8825.c 83.6 KB