All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: alsa-devel@alsa-project.org, lrg@slimlogic.co.uk
Subject: Re: [PATCHv2 1/2] ASoC: TWL4030: AIF/APLL fix in DAPM domain
Date: Wed, 28 Apr 2010 14:12:35 +0100	[thread overview]
Message-ID: <20100428131235.GH31400@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1272459015-22789-2-git-send-email-peter.ujfalusi@nokia.com>

On Wed, Apr 28, 2010 at 03:50:14PM +0300, Peter Ujfalusi wrote:

> +	if (enable && twl4030->apll_enabled == 1)
>  		/* Enable PLL */
>  		status = twl4030_codec_enable_resource(TWL4030_CODEC_RES_APLL);
> -	else
> +	else if (!enable && twl4030->apll_enabled == 0)

This logic looks funny, especially the test for !enable in the second
case (which should always be true).  I think the intention here is to
look for "apll_enabled has done an interesting transition (0->1 or
1->0)" - it'd probably be clearer to look for that directly.

> +	/* AIF and APLL clocks for running DAIs (including loopback) */
> +	SND_SOC_DAPM_OUTPUT("AIF DAC"),
> +	SND_SOC_DAPM_INPUT("AIF ADC"),
> +	SND_SOC_DAPM_OUTPUT("APLL"),

The use of INPUT and OUTPUT widgets here looks really odd - I'd at least
except the AIF widgets to be actual AIF widgets.

  reply	other threads:[~2010-04-28 13:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28 12:50 [PATCHv2 0/2] ASoC: TWL4030: APLL/AIF ordering and DAPM updates Peter Ujfalusi
2010-04-28 12:50 ` [PATCHv2 1/2] ASoC: TWL4030: AIF/APLL fix in DAPM domain Peter Ujfalusi
2010-04-28 13:12   ` Mark Brown [this message]
2010-04-29  6:46     ` Peter Ujfalusi
2010-04-28 12:50 ` [PATCHv2 2/2] ASoC: TWL4030: Remove OUTL/R outputs Peter Ujfalusi
2010-04-28 13:12   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100428131235.GH31400@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=peter.ujfalusi@nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.