]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: renesas: msiof: set SIFCTR register
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 25 Sep 2025 05:17:17 +0000 (05:17 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 25 Sep 2025 16:43:25 +0000 (17:43 +0100)
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>
sound/soc/renesas/rcar/msiof.c

index 87bec248d5c1b19b92343718a29b7a763d3677ad..a239a88543ee62906eb43fd7af6473d6870f1cd2 100644 (file)
@@ -193,6 +193,12 @@ static int msiof_hw_start(struct snd_soc_component *component,
                msiof_write(priv, SIRMDR3, val);
        }
 
+       /* SIFCTR */
+       if (is_play)
+               msiof_update(priv, SIFCTR, SIFCTR_TFWM, FIELD_PREP(SIFCTR_TFWM, SIFCTR_TFWM_1));
+       else
+               msiof_update(priv, SIFCTR, SIFCTR_RFWM, FIELD_PREP(SIFCTR_RFWM, SIFCTR_RFWM_1));
+
        /* SIIER */
        if (is_play)
                val = SIIER_TDREQE | SIIER_TDMAE | SISTR_ERR_TX;