Skip to content

Commit 6facd2d

Browse files
Simon Trimmerbroonie
authored andcommitted
ASoC: wm_adsp: Disable DMAs before clearing the transfer length
This patch reorders the clearing of the DMA masks to avoid potential artefacts being introduced. Signed-off-by: Simon Trimmer <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 28ee3d7 commit 6facd2d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sound/soc/codecs/wm_adsp.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,13 +2366,15 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
23662366
dsp->running = false;
23672367

23682368
regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
2369-
ADSP2_SYS_ENA | ADSP2_CORE_ENA |
2370-
ADSP2_START, 0);
2369+
ADSP2_CORE_ENA | ADSP2_START, 0);
23712370

23722371
/* Make sure DMAs are quiesced */
2372+
regmap_write(dsp->regmap, dsp->base + ADSP2_RDMA_CONFIG_1, 0);
23732373
regmap_write(dsp->regmap, dsp->base + ADSP2_WDMA_CONFIG_1, 0);
23742374
regmap_write(dsp->regmap, dsp->base + ADSP2_WDMA_CONFIG_2, 0);
2375-
regmap_write(dsp->regmap, dsp->base + ADSP2_RDMA_CONFIG_1, 0);
2375+
2376+
regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
2377+
ADSP2_SYS_ENA, 0);
23762378

23772379
list_for_each_entry(ctl, &dsp->ctl_list, list)
23782380
ctl->enabled = 0;

0 commit comments

Comments
 (0)