diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-12-07 00:29:02 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-07 15:47:45 +0000 |
commit | c2d3171847611e8a33d3e10a9942f6c065d05c1f (patch) | |
tree | 8c23203c678e225efffa0b5742b3b8bd71fbb11e /sound/soc/sh/rcar/rsnd.h | |
parent | 6bf66b1c35870e08359cb03c49a94e7fef529ef5 (diff) | |
download | op-kernel-dev-c2d3171847611e8a33d3e10a9942f6c065d05c1f.zip op-kernel-dev-c2d3171847611e8a33d3e10a9942f6c065d05c1f.tar.gz |
ASoC: rsnd: enable/disable ADG when suspend/resume timing
Current rsnd driver enables ADG clock when .probe timing,
but it breaks sound after Suspend/Resume. These should be setups
every suspend/resume timing too.
This patch is tested on R-Car Gen3 Salvator-X board
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/rsnd.h')
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 71158c8..b90df77 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -499,6 +499,9 @@ int rsnd_adg_set_src_timesel_gen2(struct rsnd_mod *src_mod, unsigned int out_rate); int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *mod, struct rsnd_dai_stream *io); +#define rsnd_adg_clk_enable(priv) rsnd_adg_clk_control(priv, 1) +#define rsnd_adg_clk_disable(priv) rsnd_adg_clk_control(priv, 0) +void rsnd_adg_clk_control(struct rsnd_priv *priv, int enable); /* * R-Car sound priv |