[alsa-devel] [PATCH 1/3] ASoC: simple-card: set cpu dai clk in hw_params

Mark Brown broonie at kernel.org
Tue May 29 13:16:32 CEST 2018


On Mon, May 28, 2018 at 09:35:01PM +0200, Daniel Mack wrote:

>  	if (mclk_fs) {
>  		mclk = params_rate(params) * mclk_fs;
> +
> +		if (dai_props->cpu_dai.clk)
> +			clk_set_rate(dai_props->cpu_dai.clk, mclk);
> +

We're ignoring the return value here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180529/87a83e92/attachment.sig>


More information about the Alsa-devel mailing list