Commit 52ea2a79 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: INT_ENABLE is needed only Gen2

INT_ENABLE is needed only Gen2.
rsnd_mod_write() do nothing on Gen1, but it is confusable.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent af8a4788
...@@ -40,7 +40,7 @@ enum rsnd_reg { ...@@ -40,7 +40,7 @@ enum rsnd_reg {
RSND_REG_SSI_MODE0, RSND_REG_SSI_MODE0,
RSND_REG_SSI_MODE1, RSND_REG_SSI_MODE1,
RSND_REG_BUSIF_MODE, RSND_REG_BUSIF_MODE,
RSND_REG_INT_ENABLE, RSND_REG_INT_ENABLE, /* for Gen2 */
RSND_REG_SRC_ADINR, RSND_REG_SRC_ADINR,
/* ADG */ /* ADG */
......
...@@ -457,8 +457,9 @@ static int rsnd_ssi_pio_start(struct rsnd_mod *mod, ...@@ -457,8 +457,9 @@ static int rsnd_ssi_pio_start(struct rsnd_mod *mod,
/* enable PIO IRQ */ /* enable PIO IRQ */
ssi->cr_etc = UIEN | OIEN | DIEN; ssi->cr_etc = UIEN | OIEN | DIEN;
/* enable PIO interrupt */ /* enable PIO interrupt if gen2 */
rsnd_mod_write(&ssi->mod, INT_ENABLE, 0x0f000000); if (rsnd_is_gen2(priv))
rsnd_mod_write(&ssi->mod, INT_ENABLE, 0x0f000000);
rsnd_ssi_hw_start(ssi, rdai, io); rsnd_ssi_hw_start(ssi, rdai, io);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment