summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt1308.h
diff options
context:
space:
mode:
authorTzung-Bi Shih2019-07-08 16:19:01 +0200
committerMark Brown2019-07-10 17:24:39 +0200
commit6cd249cfad68a231336983e2216d75b3ddfde1d6 (patch)
tree89de6c97e833de61087ffb970cb3a2a5bb8e57ca /sound/soc/codecs/rt1308.h
parentASoC: SOF: Intel: implement runtime idle for CNL/APL (diff)
downloadkernel-qcow2-linux-6cd249cfad68a231336983e2216d75b3ddfde1d6.tar.gz
kernel-qcow2-linux-6cd249cfad68a231336983e2216d75b3ddfde1d6.tar.xz
kernel-qcow2-linux-6cd249cfad68a231336983e2216d75b3ddfde1d6.zip
ASoC: max98357a: use mdelay for sdmode-delay
max98357a_daiops_trigger() is possible to be called in atomic context if the .nonatomic flag is equal to 0 in the DAI links. When cancel_delayed_work_sync() in max98357a_daiops_trigger() is called in atomic context, kernel emits the following message: "BUG: sleeping function called from invalid context". According to the DT binding document, value less than or equal to 5ms of sdmod-delay should be sufficient to avoid the pop noise. Use mdelay (i.e. busy loop) for such low delay should be acceptable. Fixes: cec5b01f8f1c ("ASoC: max98357a: avoid speaker pop when playback startup") Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20190708141901.68797-1-tzungbi@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1308.h')
0 files changed, 0 insertions, 0 deletions