aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-12-19 22:28:31 -0500
committerMark Brown <broonie@linaro.org>2013-12-31 08:35:30 -0500
commit99feec32f26a3c267f89ce48db4bd36650a95f7f (patch)
treed83162f906f99b4b16c256d7b8ae7673ba0a744b
parent52ea2a79f440740b57925e729a59337414b4c300 (diff)
ASoC: rsnd: scu cleanup: add rsnd_scu_rate_ctrl()
Renesas sound has SRC (= Sampling Rate Converter), but, the HW implementation depends on its generation. It was part of SRU on Gen1, and SCU on Gen2. This SCU needs DMA transfer to use it. Current rsnd driver is using it as DMA transfer buffer (= no rate convert), and Gen1 is only supported at this point. This patch cleanup it with focusing about SRC and Gen2 part. rsnd_scu_set_hpbif() is renamed to rsnd_scu_rate_ctrl(), since its naming doesn't indicate the function meaning. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/sh/rcar/scu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c
index 3d8b57b1630b..5f4f57206faf 100644
--- a/sound/soc/sh/rcar/scu.c
+++ b/sound/soc/sh/rcar/scu.c
@@ -106,7 +106,7 @@ static int rsnd_src_set_route_if_gen1(struct rsnd_priv *priv,
106 return 0; 106 return 0;
107} 107}
108 108
109static int rsnd_scu_set_hpbif(struct rsnd_priv *priv, 109static int rsnd_scu_rate_ctrl(struct rsnd_priv *priv,
110 struct rsnd_mod *mod, 110 struct rsnd_mod *mod,
111 struct rsnd_dai *rdai, 111 struct rsnd_dai *rdai,
112 struct rsnd_dai_stream *io) 112 struct rsnd_dai_stream *io)
@@ -181,7 +181,7 @@ static int rsnd_scu_start(struct rsnd_mod *mod,
181 if (ret < 0) 181 if (ret < 0)
182 return ret; 182 return ret;
183 183
184 ret = rsnd_scu_set_hpbif(priv, mod, rdai, io); 184 ret = rsnd_scu_rate_ctrl(priv, mod, rdai, io);
185 if (ret < 0) 185 if (ret < 0)
186 return ret; 186 return ret;
187 187