ASoC: qcom: lpass-cpu: Fix pop noise during audio capture begin
authorSrinivasa Rao Mandadapu <srivasam@codeaurora.org>
Fri, 4 Jun 2021 15:45:45 +0000 (23:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Jun 2021 12:42:49 +0000 (14:42 +0200)
commit3e4b0fbb72939bb45246642f86c24d3b9cce99b1
treebeaf674d2a149b466b975602664c82b801357703
parent360609fc8b06e8b1d5925ec4d99d752bbbd2d9dd
ASoC: qcom: lpass-cpu: Fix pop noise during audio capture begin

[ Upstream commit c8a4556d98510ca05bad8d02265a4918b03a8c0b ]

This patch fixes PoP noise of around 15ms observed during audio
capture begin.
Enables BCLK and LRCLK in snd_soc_dai_ops prepare call for
introducing some delay before capture start.

(am from https://patchwork.kernel.org/patch/12276369/)
(also found at https://lore.kernel.org/r/20210524142114.18676-1-srivasam@codeaurora.org)

Co-developed-by: Judy Hsiao <judyhsiao@chromium.org>
Signed-off-by: Judy Hsiao <judyhsiao@chromium.org>
Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210604154545.1198337-1-judyhsiao@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/qcom/lpass-cpu.c
sound/soc/qcom/lpass.h