ASoC: renesas: msiof: start DMAC first

MSIOF needs to start DMAC before starting HW.
It will get unknown error at 1st using without this patch.
	Playback: FSERR = 0, FOVF = 0, FUDF = 1
	Capture: FSERR = 1, FOVF = 0, FUDF = 0

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Message-ID: <87cy8guqwl.wl-kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2025-08-28 02:22:02 +00:00 committed by Mark Brown
parent d092b70d7b
commit edb5c1f885
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -136,6 +136,9 @@ static int msiof_hw_start(struct snd_soc_component *component,
priv->err_ovf[substream->stream] =
priv->err_udf[substream->stream] = 0;
/* Start DMAC */
snd_dmaengine_pcm_trigger(substream, cmd);
/* SITMDRx */
if (is_play) {
val = SITMDR1_PCON |
@ -186,9 +189,6 @@ static int msiof_hw_start(struct snd_soc_component *component,
val = SICTR_RXE | SICTR_REDG;
msiof_update_and_wait(priv, SICTR, val, val, val);
/* Start DMAC */
snd_dmaengine_pcm_trigger(substream, cmd);
return 0;
}