diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-01-21 01:58:53 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-22 17:12:25 +0000 |
commit | bd9a603fe78fa838a9c884b1e67749120a45508c (patch) | |
tree | 16b3d294c971c07674a07fbf39a7096c795824f0 /sound/soc/sh/rcar/ctu.c | |
parent | 355cb84fbe1f098f80c17dad9027ad2c6aec3fa0 (diff) | |
download | blackbird-op-linux-bd9a603fe78fa838a9c884b1e67749120a45508c.tar.gz blackbird-op-linux-bd9a603fe78fa838a9c884b1e67749120a45508c.zip |
ASoC: rsnd: ctu: add rsnd_mix_activation()
Based on datasheet
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/ctu.c')
-rw-r--r-- | sound/soc/sh/rcar/ctu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/ctu.c b/sound/soc/sh/rcar/ctu.c index 109930a20401..0dc451803eb6 100644 --- a/sound/soc/sh/rcar/ctu.c +++ b/sound/soc/sh/rcar/ctu.c @@ -24,6 +24,13 @@ struct rsnd_ctu { i++) #define rsnd_ctu_get(priv, id) ((struct rsnd_ctu *)(priv->ctu) + id) + +static void rsnd_ctu_activation(struct rsnd_mod *mod) +{ + rsnd_mod_write(mod, CTU_SWRSR, 0); + rsnd_mod_write(mod, CTU_SWRSR, 1); +} + #define rsnd_ctu_initialize_lock(mod) __rsnd_ctu_initialize_lock(mod, 1) #define rsnd_ctu_initialize_unlock(mod) __rsnd_ctu_initialize_lock(mod, 0) static void __rsnd_ctu_initialize_lock(struct rsnd_mod *mod, u32 enable) @@ -44,6 +51,8 @@ static int rsnd_ctu_init(struct rsnd_mod *mod, { rsnd_mod_power_on(mod); + rsnd_ctu_activation(mod); + rsnd_ctu_initialize_lock(mod); rsnd_mod_write(mod, CTU_ADINR, rsnd_get_adinr_chan(mod, io)); |