ASoC: rsnd: indicate unsupported clock rate
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 5 Feb 2025 00:20:36 +0000 (00:20 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 5 Feb 2025 12:28:12 +0000 (12:28 +0000)
It will indicate "unsupported clock rate" when setup clock failed.
But it is unclear what kind of rate was failed. Indicate it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://patch.msgid.link/874j192qej.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/renesas/rcar/ssi.c

index b3d4e8ae07eff8a70662495cbbbabdfef3898688..0c6424a1fcac04d3e63b9de455c155b561e72d8c 100644 (file)
@@ -336,7 +336,8 @@ static int rsnd_ssi_master_clk_start(struct rsnd_mod *mod,
        return 0;
 
 rate_err:
-       dev_err(dev, "unsupported clock rate\n");
+       dev_err(dev, "unsupported clock rate (%d)\n", rate);
+
        return ret;
 }