Skip to content

Commit 727d7d8

Browse files
crojewsk-intelbroonie
authored andcommitted
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: Cezary Rojewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fc5c872 commit 727d7d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/intel/boards/broadwell.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
174174
{
175175
.name = "System PCM",
176176
.stream_name = "System Playback/Capture",
177+
.nonatomic = 1,
177178
.dynamic = 1,
178179
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
179180
.ops = &broadwell_fe_ops,
@@ -184,6 +185,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
184185
{
185186
.name = "Offload0",
186187
.stream_name = "Offload0 Playback",
188+
.nonatomic = 1,
187189
.dynamic = 1,
188190
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
189191
.dpcm_playback = 1,
@@ -192,6 +194,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
192194
{
193195
.name = "Offload1",
194196
.stream_name = "Offload1 Playback",
197+
.nonatomic = 1,
195198
.dynamic = 1,
196199
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
197200
.dpcm_playback = 1,
@@ -200,6 +203,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
200203
{
201204
.name = "Loopback PCM",
202205
.stream_name = "Loopback",
206+
.nonatomic = 1,
203207
.dynamic = 1,
204208
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
205209
.dpcm_capture = 1,

0 commit comments

Comments
 (0)