Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2070fee authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: rsnd: print error if there is SRC settings mismatch



rsnd request clock master if SRC is used

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent ee2c828d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -122,6 +122,14 @@ static int rsnd_scu_ssi_mode_init(struct rsnd_mod *mod,
	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
	struct rsnd_scu *scu = rsnd_mod_to_scu(mod);
	int id = rsnd_mod_id(mod);
	u32 convert_rate = rsnd_scu_convert_rate(scu);

	if (convert_rate && !rsnd_dai_is_clk_master(rdai)) {
		struct device *dev = rsnd_priv_to_dev(priv);

		dev_err(dev, "rsnd should be clk master when you rate convert\n");
		return -EINVAL;
	}

	/*
	 * SSI_MODE0