diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-20 07:59:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-20 07:59:35 -0400 |
commit | f648de832dbf6d1947ce5a7c0ed24a3a71d8545b (patch) | |
tree | 1c7b4854b8a1ed51b1c186409990b49492dd0b98 /sound/soc | |
parent | 26806a4266c5d3301d3858317e67b1cca7ccfebb (diff) | |
parent | f93dc4b6c975baeef9267a62451b370fbc586f3f (diff) |
Merge branch 'for-3.1' into for-3.2
Diffstat (limited to 'sound/soc')
-rw-r--r-- | 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 8e397b286aa3..3676b38838d8 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3660,31 +3660,6 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) | |||
3660 | } | 3660 | } |
3661 | EXPORT_SYMBOL_GPL(wm8962_mic_detect); | 3661 | EXPORT_SYMBOL_GPL(wm8962_mic_detect); |
3662 | 3662 | ||
3663 | #ifdef CONFIG_PM | ||
3664 | static int wm8962_resume(struct snd_soc_codec *codec) | ||
3665 | { | ||
3666 | u16 *reg_cache = codec->reg_cache; | ||
3667 | int i; | ||
3668 | |||
3669 | /* Restore the registers */ | ||
3670 | for (i = 1; i < codec->driver->reg_cache_size; i++) { | ||
3671 | switch (i) { | ||
3672 | case WM8962_SOFTWARE_RESET: | ||
3673 | continue; | ||
3674 | default: | ||
3675 | break; | ||
3676 | } | ||
3677 | |||
3678 | if (reg_cache[i] != wm8962_reg[i]) | ||
3679 | snd_soc_write(codec, i, reg_cache[i]); | ||
3680 | } | ||
3681 | |||
3682 | return 0; | ||
3683 | } | ||
3684 | #else | ||
3685 | #define wm8962_resume NULL | ||
3686 | #endif | ||
3687 | |||
3688 | #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) | 3663 | #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) |
3689 | static int beep_rates[] = { | 3664 | static int beep_rates[] = { |
3690 | 500, 1000, 2000, 4000, | 3665 | 500, 1000, 2000, 4000, |
@@ -4196,7 +4171,6 @@ static int wm8962_remove(struct snd_soc_codec *codec) | |||
4196 | static struct snd_soc_codec_driver soc_codec_dev_wm8962 = { | 4171 | static struct snd_soc_codec_driver soc_codec_dev_wm8962 = { |
4197 | .probe = wm8962_probe, | 4172 | .probe = wm8962_probe, |
4198 | .remove = wm8962_remove, | 4173 | .remove = wm8962_remove, |
4199 | .resume = wm8962_resume, | ||
4200 | .set_bias_level = wm8962_set_bias_level, | 4174 | .set_bias_level = wm8962_set_bias_level, |
4201 | .reg_cache_size = WM8962_MAX_REGISTER + 1, | 4175 | .reg_cache_size = WM8962_MAX_REGISTER + 1, |
4202 | .reg_word_size = sizeof(u16), | 4176 | .reg_word_size = sizeof(u16), |