alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Liam Girdwood <lrg@ti.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com
Subject: Re: [PATCH] ASoC: Remove bitrotted wm8962_resume()
Date: Tue, 20 Sep 2011 12:20:20 +0100	[thread overview]
Message-ID: <1316517620.8314.2.camel@odin> (raw)
In-Reply-To: <1316471660-17892-1-git-send-email-broonie@opensource.wolfsonmicro.com>

On Mon, 2011-09-19 at 23:34 +0100, Mark Brown wrote:
> This functionality is now subsumed within the bias management, using the
> standard cache management functionality, without assuming the cache type.
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>  sound/soc/codecs/wm8962.c |   26 --------------------------
>  1 files changed, 0 insertions(+), 26 deletions(-)
> 
> diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
> index ae7a263..ac2a859 100644
> --- a/sound/soc/codecs/wm8962.c
> +++ b/sound/soc/codecs/wm8962.c
> @@ -3680,31 +3680,6 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack)
>  }
>  EXPORT_SYMBOL_GPL(wm8962_mic_detect);
>  
> -#ifdef CONFIG_PM
> -static int wm8962_resume(struct snd_soc_codec *codec)
> -{
> -	u16 *reg_cache = codec->reg_cache;
> -	int i;
> -
> -	/* Restore the registers */
> -	for (i = 1; i < codec->driver->reg_cache_size; i++) {
> -		switch (i) {
> -		case WM8962_SOFTWARE_RESET:
> -			continue;
> -		default:
> -			break;
> -		}
> -
> -		if (reg_cache[i] != wm8962_reg[i])
> -			snd_soc_write(codec, i, reg_cache[i]);
> -	}
> -
> -	return 0;
> -}
> -#else
> -#define wm8962_resume NULL
> -#endif
> -
>  #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
>  static int beep_rates[] = {
>  	500, 1000, 2000, 4000,
> @@ -4228,7 +4203,6 @@ static int wm8962_remove(struct snd_soc_codec *codec)
>  static struct snd_soc_codec_driver soc_codec_dev_wm8962 = {
>  	.probe =	wm8962_probe,
>  	.remove =	wm8962_remove,
> -	.resume =	wm8962_resume,
>  	.set_bias_level = wm8962_set_bias_level,
>  	.reg_cache_size = WM8962_MAX_REGISTER + 1,
>  	.reg_word_size = sizeof(u16),


Acked-by: Liam Girdwood <lrg@ti.com>

      reply	other threads:[~2011-09-20 11:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19 22:34 [PATCH] ASoC: Remove bitrotted wm8962_resume() Mark Brown
2011-09-20 11:20 ` 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=1316517620.8314.2.camel@odin \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).