diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-11-30 08:52:21 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-30 18:11:23 +0000 |
commit | f13edb8b281cf7fa762b14323238d6884df38792 (patch) | |
tree | 43a2700389c092a339a709e19bd0458f6bfa7e04 /sound/soc/sh/rcar | |
parent | 95e6b0ddb002e0dc89fef99b31685197da2eca9e (diff) |
ASoC: rsnd: dvc: add rsnd_dvc_halt()
Based on datasheet process
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')
-rw-r--r-- | sound/soc/sh/rcar/dvc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/dvc.c b/sound/soc/sh/rcar/dvc.c index b69a6e5cafef..91c86ee1fecb 100644 --- a/sound/soc/sh/rcar/dvc.c +++ b/sound/soc/sh/rcar/dvc.c @@ -70,6 +70,12 @@ static void rsnd_dvc_activation(struct rsnd_mod *mod) rsnd_mod_write(mod, DVC_SWRSR, 1); } +static void rsnd_dvc_halt(struct rsnd_mod *mod) +{ + rsnd_mod_write(mod, DVC_DVUIR, 1); + rsnd_mod_write(mod, DVC_SWRSR, 0); +} + #define rsnd_dvc_get_vrpdr(dvc) (dvc->rup.val << 8 | dvc->rdown.val) #define rsnd_dvc_get_vrdbr(dvc) (0x3ff - (dvc->volume.val[0] >> 13)) @@ -219,6 +225,8 @@ static int rsnd_dvc_quit(struct rsnd_mod *mod, struct rsnd_dai_stream *io, struct rsnd_priv *priv) { + rsnd_dvc_halt(mod); + rsnd_mod_power_off(mod); return 0; |