From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Olaya, Margarita" <magi.olaya@ti.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: Re: [PATCHv4 2/7] ASoC: TWL6030: Add twl6030 codec driver
Date: Wed, 24 Feb 2010 13:38:36 +0000 [thread overview]
Message-ID: <20100224133835.GP18896@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <1889FA7136B567478A67D4B0F85B0CCE65DD1B14@dlee06.ent.ti.com>
On Tue, Feb 23, 2010 at 06:10:27PM -0600, Olaya, Margarita wrote:
> +static int twl6030_set_bias_level(struct snd_soc_codec *codec,
> + enum snd_soc_bias_level level)
> +{
> + struct twl6030_data *priv = codec->private_data;
> + int audpwron = priv->audpwron;
> +
> + switch (level) {
> + case SND_SOC_BIAS_ON:
> + case SND_SOC_BIAS_PREPARE:
> + case SND_SOC_BIAS_STANDBY:
> + if (priv->codec_powered)
> + break;
> +
It'd be better to restructure this code so that the powerup triggers on
the OFF->STANDBY transition rather than going in here on transitions
like PREPARE->ON or ON->PREPARE which should never occur and where the
expectation is strongly that the device will already be powered.
> +#ifdef CONFIG_PM
> +static int twl6030_codec_suspend(struct platform_device *pdev,
> + pm_message_t msg)
> +{
> + return snd_soc_suspend_device(&pdev->dev);
> +}
> +
> +static int twl6030_codec_resume(struct platform_device *pdev)
> +{
> + return snd_soc_resume_device(&pdev->dev);
> +}
> +#else
> +#define twl6030_codec_suspend NULL
> +#define twl6030_codec_resume NULL
> +#endif
This won't compile, those functions have been removed so these functions
can just be dropped. Please test against the branch you're submitting
against (or -next).
prev parent reply other threads:[~2010-02-24 13:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-24 0:10 [PATCHv4 2/7] ASoC: TWL6030: Add twl6030 codec driver Olaya, Margarita
2010-02-24 10:38 ` Liam Girdwood
2010-02-24 10:42 ` [alsa-devel] " Mark Brown
2010-02-24 23:57 ` Olaya, Margarita
2010-02-25 10:17 ` Mark Brown
2010-02-24 23:37 ` Olaya, Margarita
2010-02-25 9:06 ` [alsa-devel] " Liam Girdwood
2010-02-25 10:17 ` Mark Brown
2010-02-26 19:42 ` Olaya, Margarita
2010-02-26 21:21 ` Mark Brown
2010-02-24 13:38 ` Mark Brown [this message]
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=20100224133835.GP18896@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
--cc=magi.olaya@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox