[alsa-devel] [PATCH] ASoC: wm8993: Refactor set_pll code to avoid GCC warnings

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Dec 12 04:21:31 CET 2012


On Wed, Dec 12, 2012 at 01:19:52AM -0200, Fabio Estevam wrote:

> -	if (freq_in && freq_out) {
> +	if (!freq_in || !freq_out) {
> +		/* disable the PLL before re-programming it */
> +		snd_soc_update_bits(codec, WM8983_POWER_MANAGEMENT_1,
> +				    WM8983_PLLEN_MASK, 0);
> +		return 0;

This comment clearly doesn't match the code.


More information about the Alsa-devel mailing list