aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2014-02-12 00:05:26 -0500
committerMark Brown <broonie@linaro.org>2014-02-12 06:59:35 -0500
commita2070feede404484296aace813b6c518582a3f8e (patch)
tree579e248e27c9dd3c0dd3f2a00b66afd55777301c
parentee2c828d21b2381c813df257235d3c635269e435 (diff)
ASoC: rsnd: print error if there is SRC settings mismatch
rsnd request clock master if SRC is used 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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c
index 6e5c763e1040..3984d4b4f2df 100644
--- a/sound/soc/sh/rcar/scu.c
+++ b/sound/soc/sh/rcar/scu.c
@@ -122,6 +122,14 @@ static int rsnd_scu_ssi_mode_init(struct rsnd_mod *mod,
122 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); 122 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
123 struct rsnd_scu *scu = rsnd_mod_to_scu(mod); 123 struct rsnd_scu *scu = rsnd_mod_to_scu(mod);
124 int id = rsnd_mod_id(mod); 124 int id = rsnd_mod_id(mod);
125 u32 convert_rate = rsnd_scu_convert_rate(scu);
126
127 if (convert_rate && !rsnd_dai_is_clk_master(rdai)) {
128 struct device *dev = rsnd_priv_to_dev(priv);
129
130 dev_err(dev, "rsnd should be clk master when you rate convert\n");
131 return -EINVAL;
132 }
125 133
126 /* 134 /*
127 * SSI_MODE0 135 * SSI_MODE0