Skip to content

Commit dc155ad

Browse files
crojewsk-intelbroonie
authored andcommitted
ASoC: Intel: haswell: 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 727d7d8 commit dc155ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/intel/boards/haswell.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = {
103103
{
104104
.name = "System",
105105
.stream_name = "System Playback/Capture",
106+
.nonatomic = 1,
106107
.dynamic = 1,
107108
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
108109
.dpcm_playback = 1,
@@ -112,6 +113,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = {
112113
{
113114
.name = "Offload0",
114115
.stream_name = "Offload0 Playback",
116+
.nonatomic = 1,
115117
.dynamic = 1,
116118
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
117119
.dpcm_playback = 1,
@@ -120,6 +122,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = {
120122
{
121123
.name = "Offload1",
122124
.stream_name = "Offload1 Playback",
125+
.nonatomic = 1,
123126
.dynamic = 1,
124127
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
125128
.dpcm_playback = 1,
@@ -128,6 +131,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = {
128131
{
129132
.name = "Loopback",
130133
.stream_name = "Loopback",
134+
.nonatomic = 1,
131135
.dynamic = 1,
132136
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
133137
.dpcm_capture = 1,

0 commit comments

Comments
 (0)