[alsa-devel] [PATCH 1/2] ASoC: fsl_spdif: Fix clock source for rxclk rate measurement
Mark Brown
broonie at kernel.org
Fri Apr 25 18:10:15 CEST 2014
On Fri, Apr 25, 2014 at 07:58:19PM +0800, Nicolin Chen wrote:
> + /* Get system clock for rx clock rate calculation */
> + sprintf(tmp, "rxtx%d", SPDIF_CLK_SRC_SYSCLK);
> + spdif_priv->sysclk = devm_clk_get(&pdev->dev, tmp);
> + if (IS_ERR(spdif_priv->sysclk)) {
> + dev_err(&pdev->dev, "no sys clock (%s) in devicetree\n", tmp);
> + return PTR_ERR(spdif_priv->sysclk);
> + }
> +
Why is this not just a fixed string - it seems like the clock name is a
constant anyway?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140425/fdd4de62/attachment.sig>
More information about the Alsa-devel
mailing list