summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2019-06-17 22:29:09 -0700
committerMark Brown <broonie@kernel.org>2019-06-18 19:15:55 +0100
commitc054b41690a44e6534eb2a1beda1b655f3994c5b (patch)
tree82b214a69025a009df3d512f71ed0acd424b1f55 /sound/soc/qcom
parent7a1954de3050cb13cf9ee43493ea45785dae68a2 (diff)
downloadlinux-c054b41690a44e6534eb2a1beda1b655f3994c5b.tar.gz
linux-c054b41690a44e6534eb2a1beda1b655f3994c5b.tar.bz2
linux-c054b41690a44e6534eb2a1beda1b655f3994c5b.zip
ASoC: qcom: common: Mark links as nonatomic
The interface used to communicate with the DSP can sleep, so mark the links as nonatomic. This prevents various sleep while atomic errors when bringing up the audio interface. Suggested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r--sound/soc/qcom/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c
index 5661025e8cec..a612d860ad26 100644
--- a/sound/soc/qcom/common.c
+++ b/sound/soc/qcom/common.c
@@ -97,6 +97,7 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
goto err;
}
+ link->nonatomic = 1;
link->dpcm_playback = 1;
link->dpcm_capture = 1;
link->stream_name = link->name;