diff mbox series

ASoC: qcom: common: Mark links as nonatomic

Message ID 20190618052909.32586-1-bjorn.andersson@linaro.org (mailing list archive)
State Accepted
Commit c054b41690a44e6534eb2a1beda1b655f3994c5b
Headers show
Series ASoC: qcom: common: Mark links as nonatomic | expand

Commit Message

Bjorn Andersson June 18, 2019, 5:29 a.m. UTC
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>
---
 sound/soc/qcom/common.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c
index 97488b5cc515..2c7348ddbbb3 100644
--- a/sound/soc/qcom/common.c
+++ b/sound/soc/qcom/common.c
@@ -116,6 +116,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;