Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rsnd: indicate necessary error when clock start failed

rsnd_ssi_master_clk_start() indicates error message if it couldn't
handle requested clock/rate, but it is not caring all cases.
This patch cares it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/874js66t7g.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
c12dc0f6 e5a3c491

+8 -5
+8 -5
sound/soc/sh/rcar/ssi.c
··· 303 303 return 0; 304 304 } 305 305 306 + ret = -EIO; 306 307 main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx); 307 - if (!main_rate) { 308 - dev_err(dev, "unsupported clock rate\n"); 309 - return -EIO; 310 - } 308 + if (!main_rate) 309 + goto rate_err; 311 310 312 311 ret = rsnd_adg_ssi_clk_try_start(mod, main_rate); 313 312 if (ret < 0) 314 - return ret; 313 + goto rate_err; 315 314 316 315 /* 317 316 * SSI clock will be output contiguously ··· 332 333 rsnd_mod_name(mod), chan, rate); 333 334 334 335 return 0; 336 + 337 + rate_err: 338 + dev_err(dev, "unsupported clock rate\n"); 339 + return ret; 335 340 } 336 341 337 342 static void rsnd_ssi_master_clk_stop(struct rsnd_mod *mod,