[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150106173711.GH2634@sirena.org.uk>
Date: Tue, 6 Jan 2015 17:37:11 +0000
From: Mark Brown <broonie@...nel.org>
To: Zidan Wang <b50113@...escale.com>
Cc: lgirdwood@...il.com, perex@...ex.cz, tiwai@...e.de,
lars@...afoo.de, ckeepax@...nsource.wolfsonmicro.com,
Li.Xiubo@...escale.com, patches@...nsource.wolfsonmicro.com,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [alsa-devel][PATCH 1/4] ASoC: wm8960: Let wm8960 codec driver
manage its own MCLK
On Wed, Dec 31, 2014 at 11:39:11AM +0800, Zidan Wang wrote:
> + if (!IS_ERR(wm8960->mclk)) {
> + if (codec->dapm.bias_level == SND_SOC_BIAS_ON)
> + clk_disable_unprepare(wm8960->mclk);
> + else {
Both sides of the if statement should have braces if one does, though in
this case nesting a second switch statement would probably be clearer.
> @@ -661,6 +678,7 @@ static int wm8960_set_bias_level_out3(struct snd_soc_codec *codec,
>
> /* Disable VMID and VREF, let them discharge */
> snd_soc_write(codec, WM8960_POWER1, 0);
> +
> msleep(600);
> break;
> }
Random while space change here and in a couple of other places.
> + wm8960->mclk = devm_clk_get(&i2c->dev, "codec_mclk");
> + if (IS_ERR(wm8960->mclk)) {
> + if (PTR_ERR(wm8960->mclk) == -EPROBE_DEFER)
> + return -EPROBE_DEFER;
> + }
> +
Why name this "codec_mclk" - the device calls it just MCLK?
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists