Commit 727d7d84 authored by Cezary Rojewski's avatar Cezary Rojewski Committed by Mark Brown

ASoC: Intel: broadwell: Mark FE DAIs as nonatomic

PCM operations for DAI links connected with DSP platform component
involve communication with DSP firmware by IPCs. As IPC protocol may
cause thread to sleep while waiting for a response from DSP, propagate
that information to ALSA core by marking all FE DAIs as nonatomic.
Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20201004090609.29066-3-cezary.rojewski@intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent fc5c8729
...@@ -174,6 +174,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { ...@@ -174,6 +174,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
{ {
.name = "System PCM", .name = "System PCM",
.stream_name = "System Playback/Capture", .stream_name = "System Playback/Capture",
.nonatomic = 1,
.dynamic = 1, .dynamic = 1,
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
.ops = &broadwell_fe_ops, .ops = &broadwell_fe_ops,
...@@ -184,6 +185,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { ...@@ -184,6 +185,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
{ {
.name = "Offload0", .name = "Offload0",
.stream_name = "Offload0 Playback", .stream_name = "Offload0 Playback",
.nonatomic = 1,
.dynamic = 1, .dynamic = 1,
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
.dpcm_playback = 1, .dpcm_playback = 1,
...@@ -192,6 +194,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { ...@@ -192,6 +194,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
{ {
.name = "Offload1", .name = "Offload1",
.stream_name = "Offload1 Playback", .stream_name = "Offload1 Playback",
.nonatomic = 1,
.dynamic = 1, .dynamic = 1,
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
.dpcm_playback = 1, .dpcm_playback = 1,
...@@ -200,6 +203,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { ...@@ -200,6 +203,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
{ {
.name = "Loopback PCM", .name = "Loopback PCM",
.stream_name = "Loopback", .stream_name = "Loopback",
.nonatomic = 1,
.dynamic = 1, .dynamic = 1,
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
.dpcm_capture = 1, .dpcm_capture = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment