From: Liam Girdwood <lrg@ti.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"patches@opensource.wolfsonmicro.com"
<patches@opensource.wolfsonmicro.com>
Subject: Re: [PATCH] ASoC: Allow idle_bias_off to be specified in CODEC drivers
Date: Mon, 22 Aug 2011 21:07:35 +0100 [thread overview]
Message-ID: <4E52B707.8070607@ti.com> (raw)
In-Reply-To: <1314034854-24549-1-git-send-email-broonie@opensource.wolfsonmicro.com>
On 22/08/11 18:40, Mark Brown wrote:
> If devices can unconditionally support idle_bias_off let them flag it in
> their driver structure.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
> ---
> include/sound/soc.h | 1 +
> sound/soc/soc-core.c | 2 ++
> 2 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/include/sound/soc.h b/include/sound/soc.h
> index 3fe658e..6da55a1 100644
> --- a/include/sound/soc.h
> +++ b/include/sound/soc.h
> @@ -633,6 +633,7 @@ struct snd_soc_codec_driver {
> /* codec bias level */
> int (*set_bias_level)(struct snd_soc_codec *,
> enum snd_soc_bias_level level);
> + bool idle_bias_off;
>
> void (*seq_notifier)(struct snd_soc_dapm_context *,
> enum snd_soc_dapm_type, int);
> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
> index ae93aa8..f8f985a 100644
> --- a/sound/soc/soc-core.c
> +++ b/sound/soc/soc-core.c
> @@ -956,6 +956,8 @@ static int soc_probe_codec(struct snd_soc_card *card,
> snd_soc_dapm_new_controls(&codec->dapm, driver->dapm_widgets,
> driver->num_dapm_widgets);
>
> + codec->dapm.idle_bias_off = driver->idle_bias_off;
> +
> if (driver->probe) {
> ret = driver->probe(codec);
> if (ret < 0) {
prev parent reply other threads:[~2011-08-22 20:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 17:40 [PATCH] ASoC: Allow idle_bias_off to be specified in CODEC drivers Mark Brown
2011-08-22 20:07 ` Liam Girdwood [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=4E52B707.8070607@ti.com \
--to=lrg@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=patches@opensource.wolfsonmicro.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.