diff options
author | Srinivasa Rao Mandadapu <srivasam@codeaurora.org> | 2021-06-04 23:45:45 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-07 15:54:08 +0100 |
commit | c8a4556d98510ca05bad8d02265a4918b03a8c0b (patch) | |
tree | 964ef2c9b629e6b4533bf3eb05cea612715f5635 /sound/soc/qcom/lpass.h | |
parent | 49783c6f4a4f49836b5a109ae0daf2f90b0d7713 (diff) | |
download | linux-stable-c8a4556d98510ca05bad8d02265a4918b03a8c0b.tar.gz linux-stable-c8a4556d98510ca05bad8d02265a4918b03a8c0b.tar.bz2 linux-stable-c8a4556d98510ca05bad8d02265a4918b03a8c0b.zip |
ASoC: qcom: lpass-cpu: Fix pop noise during audio capture begin
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>
Diffstat (limited to 'sound/soc/qcom/lpass.h')
-rw-r--r-- | sound/soc/qcom/lpass.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index 83b2e08ade06..7f72214404ba 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -67,6 +67,10 @@ struct lpass_data { /* MI2S SD lines to use for playback/capture */ unsigned int mi2s_playback_sd_mode[LPASS_MAX_MI2S_PORTS]; unsigned int mi2s_capture_sd_mode[LPASS_MAX_MI2S_PORTS]; + + /* The state of MI2S prepare dai_ops was called */ + bool mi2s_was_prepared[LPASS_MAX_MI2S_PORTS]; + int hdmi_port_enable; /* low-power audio interface (LPAIF) registers */ |