diff options
author | Kuninori Morimoto | 2013-12-20 04:28:19 +0100 |
---|---|---|
committer | Mark Brown | 2013-12-31 14:35:30 +0100 |
commit | 52ea2a79f440740b57925e729a59337414b4c300 (patch) | |
tree | f9cbcbab2cab3ae0d0d5fea37c8a8e946b6c8779 /sound/soc/sh/rcar/ssi.c | |
parent | ASoC: rsnd: add rsnd_scu_transfer_start() (diff) | |
download | kernel-qcow2-linux-52ea2a79f440740b57925e729a59337414b4c300.tar.gz kernel-qcow2-linux-52ea2a79f440740b57925e729a59337414b4c300.tar.xz kernel-qcow2-linux-52ea2a79f440740b57925e729a59337414b4c300.zip |
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/sh/rcar/ssi.c')
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index aff5b76d1fd5..01b5cf945d61 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -457,8 +457,9 @@ static int rsnd_ssi_pio_start(struct rsnd_mod *mod, /* enable PIO IRQ */ ssi->cr_etc = UIEN | OIEN | DIEN; - /* enable PIO interrupt */ - rsnd_mod_write(&ssi->mod, INT_ENABLE, 0x0f000000); + /* enable PIO interrupt if gen2 */ + if (rsnd_is_gen2(priv)) + rsnd_mod_write(&ssi->mod, INT_ENABLE, 0x0f000000); rsnd_ssi_hw_start(ssi, rdai, io); |