diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-01-23 21:41:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 07:41:37 -0500 |
commit | 28dc4b63cdb96f2448a677320fcc0eb112e13e3f (patch) | |
tree | 3cf5e71537e640c426db51206a9864bc0f875279 /sound/soc/sh/rcar/adg.c | |
parent | 96c7c0d6f8c6e09e9123f0518130c047c5de40f6 (diff) |
ASoC: rsnd: merge SRC clock timing/setting
SRC clock and timing setting register
exist in SRU and ADG on Gen1.
But, these are merged into ADG on Gen2.
Current driver is supporting Gen1 SRC only
at this point, but, above settings are
set as different function.
This patch merges these as preparation of Gen2 support.
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/adg.c')
-rw-r--r-- | sound/soc/sh/rcar/adg.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index a53235c4d1b0..5bdffa480245 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c | |||
@@ -30,10 +30,10 @@ struct rsnd_adg { | |||
30 | i++, (pos) = adg->clk[i]) | 30 | i++, (pos) = adg->clk[i]) |
31 | #define rsnd_priv_to_adg(priv) ((struct rsnd_adg *)(priv)->adg) | 31 | #define rsnd_priv_to_adg(priv) ((struct rsnd_adg *)(priv)->adg) |
32 | 32 | ||
33 | static int rsnd_adg_set_convert_clk_gen1(struct rsnd_priv *priv, | 33 | int rsnd_adg_set_convert_clk_gen1(struct rsnd_priv *priv, |
34 | struct rsnd_mod *mod, | 34 | struct rsnd_mod *mod, |
35 | unsigned int src_rate, | 35 | unsigned int src_rate, |
36 | unsigned int dst_rate) | 36 | unsigned int dst_rate) |
37 | { | 37 | { |
38 | struct rsnd_adg *adg = rsnd_priv_to_adg(priv); | 38 | struct rsnd_adg *adg = rsnd_priv_to_adg(priv); |
39 | struct device *dev = rsnd_priv_to_dev(priv); | 39 | struct device *dev = rsnd_priv_to_dev(priv); |
@@ -91,18 +91,6 @@ find_rate: | |||
91 | return 0; | 91 | return 0; |
92 | } | 92 | } |
93 | 93 | ||
94 | int rsnd_adg_set_convert_clk(struct rsnd_priv *priv, | ||
95 | struct rsnd_mod *mod, | ||
96 | unsigned int src_rate, | ||
97 | unsigned int dst_rate) | ||
98 | { | ||
99 | if (rsnd_is_gen1(priv)) | ||
100 | return rsnd_adg_set_convert_clk_gen1(priv, mod, | ||
101 | src_rate, dst_rate); | ||
102 | |||
103 | return -EINVAL; | ||
104 | } | ||
105 | |||
106 | static void rsnd_adg_set_ssi_clk(struct rsnd_mod *mod, u32 val) | 94 | static void rsnd_adg_set_ssi_clk(struct rsnd_mod *mod, u32 val) |
107 | { | 95 | { |
108 | int id = rsnd_mod_id(mod); | 96 | int id = rsnd_mod_id(mod); |