Skip to content

Commit 130947b

Browse files
morimotobroonie
authored andcommitted
ASoC: renesas: msiof: set SIFCTR register
Because it uses DMAC, we would like to transfer data if there is any data. Set SIFCTR for it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Link: https://patch.msgid.link/87bjmzyuub.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 25226ab commit 130947b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sound/soc/renesas/rcar/msiof.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ static int msiof_hw_start(struct snd_soc_component *component,
193193
msiof_write(priv, SIRMDR3, val);
194194
}
195195

196+
/* SIFCTR */
197+
if (is_play)
198+
msiof_update(priv, SIFCTR, SIFCTR_TFWM, FIELD_PREP(SIFCTR_TFWM, SIFCTR_TFWM_1));
199+
else
200+
msiof_update(priv, SIFCTR, SIFCTR_RFWM, FIELD_PREP(SIFCTR_RFWM, SIFCTR_RFWM_1));
201+
196202
/* SIIER */
197203
if (is_play)
198204
val = SIIER_TDREQE | SIIER_TDMAE | SISTR_ERR_TX;

0 commit comments

Comments
 (0)