diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-12-02 04:18:28 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-02 05:32:03 -0500 |
commit | 84b315ee893676e9a9ce8ac42ab5ef44e2af3ee1 (patch) | |
tree | c781bee632abab75bcf9780b7efa4ba7ee5e750c /sound | |
parent | 36c6b54cb0ec1908bc98c4d2d3b8584219f4d532 (diff) |
ASoC: Drop unused state parameter from CODEC suspend callback
The existence of this parameter is purely historical. None of the CODEC drivers
uses it and we always pass in the same value anyway, so it should be safe to
remove it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
66 files changed, 66 insertions, 71 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index 221ec29f68e3..1bbad4c16d28 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
@@ -99,7 +99,7 @@ static int ac97_soc_remove(struct snd_soc_codec *codec) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | #ifdef CONFIG_PM | 101 | #ifdef CONFIG_PM |
102 | static int ac97_soc_suspend(struct snd_soc_codec *codec, pm_message_t msg) | 102 | static int ac97_soc_suspend(struct snd_soc_codec *codec) |
103 | { | 103 | { |
104 | snd_ac97_suspend(codec->ac97); | 104 | snd_ac97_suspend(codec->ac97); |
105 | 105 | ||
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index fab0948f7a54..919322daf6dd 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -223,7 +223,7 @@ static struct snd_soc_dai_driver ad183x_dais[] = { | |||
223 | }; | 223 | }; |
224 | 224 | ||
225 | #ifdef CONFIG_PM | 225 | #ifdef CONFIG_PM |
226 | static int ad1836_suspend(struct snd_soc_codec *codec, pm_message_t state) | 226 | static int ad1836_suspend(struct snd_soc_codec *codec) |
227 | { | 227 | { |
228 | /* reset clock control mode */ | 228 | /* reset clock control mode */ |
229 | return snd_soc_update_bits(codec, AD1836_ADC_CTRL2, | 229 | return snd_soc_update_bits(codec, AD1836_ADC_CTRL2, |
diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c index 45c63028b40d..637b114bea7f 100644 --- a/sound/soc/codecs/adau1373.c +++ b/sound/soc/codecs/adau1373.c | |||
@@ -1321,7 +1321,7 @@ static int adau1373_remove(struct snd_soc_codec *codec) | |||
1321 | return 0; | 1321 | return 0; |
1322 | } | 1322 | } |
1323 | 1323 | ||
1324 | static int adau1373_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1324 | static int adau1373_suspend(struct snd_soc_codec *codec) |
1325 | { | 1325 | { |
1326 | return adau1373_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1326 | return adau1373_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1327 | } | 1327 | } |
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c index f9f08948e5e8..ebd7b37b902b 100644 --- a/sound/soc/codecs/adav80x.c +++ b/sound/soc/codecs/adav80x.c | |||
@@ -798,7 +798,7 @@ static int adav80x_probe(struct snd_soc_codec *codec) | |||
798 | return adav80x_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 798 | return adav80x_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
799 | } | 799 | } |
800 | 800 | ||
801 | static int adav80x_suspend(struct snd_soc_codec *codec, pm_message_t state) | 801 | static int adav80x_suspend(struct snd_soc_codec *codec) |
802 | { | 802 | { |
803 | return adav80x_set_bias_level(codec, SND_SOC_BIAS_OFF); | 803 | return adav80x_set_bias_level(codec, SND_SOC_BIAS_OFF); |
804 | } | 804 | } |
diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c index e1f531085453..96296fd172f9 100644 --- a/sound/soc/codecs/ak4535.c +++ b/sound/soc/codecs/ak4535.c | |||
@@ -354,7 +354,7 @@ static struct snd_soc_dai_driver ak4535_dai = { | |||
354 | .ops = &ak4535_dai_ops, | 354 | .ops = &ak4535_dai_ops, |
355 | }; | 355 | }; |
356 | 356 | ||
357 | static int ak4535_suspend(struct snd_soc_codec *codec, pm_message_t state) | 357 | static int ak4535_suspend(struct snd_soc_codec *codec) |
358 | { | 358 | { |
359 | ak4535_set_bias_level(codec, SND_SOC_BIAS_OFF); | 359 | ak4535_set_bias_level(codec, SND_SOC_BIAS_OFF); |
360 | return 0; | 360 | return 0; |
diff --git a/sound/soc/codecs/ak4641.c b/sound/soc/codecs/ak4641.c index f53f31480565..90184701480d 100644 --- a/sound/soc/codecs/ak4641.c +++ b/sound/soc/codecs/ak4641.c | |||
@@ -498,7 +498,7 @@ static struct snd_soc_dai_driver ak4641_dai[] = { | |||
498 | }, | 498 | }, |
499 | }; | 499 | }; |
500 | 500 | ||
501 | static int ak4641_suspend(struct snd_soc_codec *codec, pm_message_t state) | 501 | static int ak4641_suspend(struct snd_soc_codec *codec) |
502 | { | 502 | { |
503 | ak4641_set_bias_level(codec, SND_SOC_BIAS_OFF); | 503 | ak4641_set_bias_level(codec, SND_SOC_BIAS_OFF); |
504 | return 0; | 504 | return 0; |
diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c index 6a5c001e8ba8..da97f024ec74 100644 --- a/sound/soc/codecs/alc5623.c +++ b/sound/soc/codecs/alc5623.c | |||
@@ -868,7 +868,7 @@ static struct snd_soc_dai_driver alc5623_dai = { | |||
868 | .ops = &alc5623_dai_ops, | 868 | .ops = &alc5623_dai_ops, |
869 | }; | 869 | }; |
870 | 870 | ||
871 | static int alc5623_suspend(struct snd_soc_codec *codec, pm_message_t mesg) | 871 | static int alc5623_suspend(struct snd_soc_codec *codec) |
872 | { | 872 | { |
873 | alc5623_set_bias_level(codec, SND_SOC_BIAS_OFF); | 873 | alc5623_set_bias_level(codec, SND_SOC_BIAS_OFF); |
874 | return 0; | 874 | return 0; |
diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c index 3f750def8967..08613c7e1091 100644 --- a/sound/soc/codecs/alc5632.c +++ b/sound/soc/codecs/alc5632.c | |||
@@ -956,7 +956,7 @@ static struct snd_soc_dai_driver alc5632_dai = { | |||
956 | }; | 956 | }; |
957 | 957 | ||
958 | #ifdef CONFIG_PM | 958 | #ifdef CONFIG_PM |
959 | static int alc5632_suspend(struct snd_soc_codec *codec, pm_message_t mesg) | 959 | static int alc5632_suspend(struct snd_soc_codec *codec) |
960 | { | 960 | { |
961 | alc5632_set_bias_level(codec, SND_SOC_BIAS_OFF); | 961 | alc5632_set_bias_level(codec, SND_SOC_BIAS_OFF); |
962 | return 0; | 962 | return 0; |
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index dc77ff7ba339..fef0f48330e4 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c | |||
@@ -578,7 +578,7 @@ static int cs4270_remove(struct snd_soc_codec *codec) | |||
578 | * and all registers are written back to the hardware when resuming. | 578 | * and all registers are written back to the hardware when resuming. |
579 | */ | 579 | */ |
580 | 580 | ||
581 | static int cs4270_soc_suspend(struct snd_soc_codec *codec, pm_message_t mesg) | 581 | static int cs4270_soc_suspend(struct snd_soc_codec *codec) |
582 | { | 582 | { |
583 | struct cs4270_private *cs4270 = snd_soc_codec_get_drvdata(codec); | 583 | struct cs4270_private *cs4270 = snd_soc_codec_get_drvdata(codec); |
584 | int reg, ret; | 584 | int reg, ret; |
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index a6f77a855f45..f6fe846b6a6c 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c | |||
@@ -430,7 +430,7 @@ static struct snd_soc_dai_driver cs4271_dai = { | |||
430 | }; | 430 | }; |
431 | 431 | ||
432 | #ifdef CONFIG_PM | 432 | #ifdef CONFIG_PM |
433 | static int cs4271_soc_suspend(struct snd_soc_codec *codec, pm_message_t mesg) | 433 | static int cs4271_soc_suspend(struct snd_soc_codec *codec) |
434 | { | 434 | { |
435 | int ret; | 435 | int ret; |
436 | /* Set power-down bit */ | 436 | /* Set power-down bit */ |
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index da3125aa55f9..9d38db8f1919 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c | |||
@@ -1262,7 +1262,7 @@ static struct snd_soc_dai_driver cs42l73_dai[] = { | |||
1262 | } | 1262 | } |
1263 | }; | 1263 | }; |
1264 | 1264 | ||
1265 | static int cs42l73_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1265 | static int cs42l73_suspend(struct snd_soc_codec *codec) |
1266 | { | 1266 | { |
1267 | cs42l73_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1267 | cs42l73_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1268 | 1268 | ||
diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index 4fca8bccd535..517e2a516daf 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c | |||
@@ -311,7 +311,7 @@ static int jz4740_codec_dev_remove(struct snd_soc_codec *codec) | |||
311 | 311 | ||
312 | #ifdef CONFIG_PM_SLEEP | 312 | #ifdef CONFIG_PM_SLEEP |
313 | 313 | ||
314 | static int jz4740_codec_suspend(struct snd_soc_codec *codec, pm_message_t state) | 314 | static int jz4740_codec_suspend(struct snd_soc_codec *codec) |
315 | { | 315 | { |
316 | return jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_OFF); | 316 | return jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_OFF); |
317 | } | 317 | } |
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 9b6036e5738a..ba4f6f167a13 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c | |||
@@ -1946,7 +1946,7 @@ static void max98088_handle_pdata(struct snd_soc_codec *codec) | |||
1946 | } | 1946 | } |
1947 | 1947 | ||
1948 | #ifdef CONFIG_PM | 1948 | #ifdef CONFIG_PM |
1949 | static int max98088_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1949 | static int max98088_suspend(struct snd_soc_codec *codec) |
1950 | { | 1950 | { |
1951 | max98088_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1951 | max98088_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1952 | 1952 | ||
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index 01f4ad725149..c69dd022bea8 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c | |||
@@ -2174,7 +2174,7 @@ static void max98095_handle_pdata(struct snd_soc_codec *codec) | |||
2174 | } | 2174 | } |
2175 | 2175 | ||
2176 | #ifdef CONFIG_PM | 2176 | #ifdef CONFIG_PM |
2177 | static int max98095_suspend(struct snd_soc_codec *codec, pm_message_t state) | 2177 | static int max98095_suspend(struct snd_soc_codec *codec) |
2178 | { | 2178 | { |
2179 | max98095_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2179 | max98095_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2180 | 2180 | ||
diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c index 94c2b586ed5d..7dfd6e84796d 100644 --- a/sound/soc/codecs/max9850.c +++ b/sound/soc/codecs/max9850.c | |||
@@ -273,7 +273,7 @@ static struct snd_soc_dai_driver max9850_dai = { | |||
273 | }; | 273 | }; |
274 | 274 | ||
275 | #ifdef CONFIG_PM | 275 | #ifdef CONFIG_PM |
276 | static int max9850_suspend(struct snd_soc_codec *codec, pm_message_t state) | 276 | static int max9850_suspend(struct snd_soc_codec *codec) |
277 | { | 277 | { |
278 | max9850_set_bias_level(codec, SND_SOC_BIAS_OFF); | 278 | max9850_set_bias_level(codec, SND_SOC_BIAS_OFF); |
279 | 279 | ||
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c index b12d01f67990..edcaa7ea5487 100644 --- a/sound/soc/codecs/pcm3008.c +++ b/sound/soc/codecs/pcm3008.c | |||
@@ -118,7 +118,7 @@ static int pcm3008_soc_remove(struct snd_soc_codec *codec) | |||
118 | } | 118 | } |
119 | 119 | ||
120 | #ifdef CONFIG_PM | 120 | #ifdef CONFIG_PM |
121 | static int pcm3008_soc_suspend(struct snd_soc_codec *codec, pm_message_t msg) | 121 | static int pcm3008_soc_suspend(struct snd_soc_codec *codec) |
122 | { | 122 | { |
123 | struct pcm3008_setup_data *setup = codec->dev->platform_data; | 123 | struct pcm3008_setup_data *setup = codec->dev->platform_data; |
124 | 124 | ||
diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c index 9fd50bd77c49..f6e4f5ed9286 100644 --- a/sound/soc/codecs/rt5631.c +++ b/sound/soc/codecs/rt5631.c | |||
@@ -1641,7 +1641,7 @@ static int rt5631_remove(struct snd_soc_codec *codec) | |||
1641 | } | 1641 | } |
1642 | 1642 | ||
1643 | #ifdef CONFIG_PM | 1643 | #ifdef CONFIG_PM |
1644 | static int rt5631_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1644 | static int rt5631_suspend(struct snd_soc_codec *codec) |
1645 | { | 1645 | { |
1646 | rt5631_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1646 | rt5631_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1647 | return 0; | 1647 | return 0; |
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index ff0a1079efec..250175755eb2 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c | |||
@@ -967,7 +967,7 @@ static int sgtl5000_volatile_register(struct snd_soc_codec *codec, | |||
967 | } | 967 | } |
968 | 968 | ||
969 | #ifdef CONFIG_SUSPEND | 969 | #ifdef CONFIG_SUSPEND |
970 | static int sgtl5000_suspend(struct snd_soc_codec *codec, pm_message_t state) | 970 | static int sgtl5000_suspend(struct snd_soc_codec *codec) |
971 | { | 971 | { |
972 | sgtl5000_set_bias_level(codec, SND_SOC_BIAS_OFF); | 972 | sgtl5000_set_bias_level(codec, SND_SOC_BIAS_OFF); |
973 | 973 | ||
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index 0d43e4b4a586..7dfc7b08114c 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c | |||
@@ -523,7 +523,7 @@ static struct snd_soc_dai_driver ssm2602_dai = { | |||
523 | .ops = &ssm2602_dai_ops, | 523 | .ops = &ssm2602_dai_ops, |
524 | }; | 524 | }; |
525 | 525 | ||
526 | static int ssm2602_suspend(struct snd_soc_codec *codec, pm_message_t state) | 526 | static int ssm2602_suspend(struct snd_soc_codec *codec) |
527 | { | 527 | { |
528 | ssm2602_set_bias_level(codec, SND_SOC_BIAS_OFF); | 528 | ssm2602_set_bias_level(codec, SND_SOC_BIAS_OFF); |
529 | return 0; | 529 | return 0; |
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index b3d1c78e361f..6648af6656c8 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c | |||
@@ -801,7 +801,7 @@ static struct snd_soc_dai_driver sta32x_dai = { | |||
801 | }; | 801 | }; |
802 | 802 | ||
803 | #ifdef CONFIG_PM | 803 | #ifdef CONFIG_PM |
804 | static int sta32x_suspend(struct snd_soc_codec *codec, pm_message_t state) | 804 | static int sta32x_suspend(struct snd_soc_codec *codec) |
805 | { | 805 | { |
806 | sta32x_set_bias_level(codec, SND_SOC_BIAS_OFF); | 806 | sta32x_set_bias_level(codec, SND_SOC_BIAS_OFF); |
807 | return 0; | 807 | return 0; |
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index 55819537b677..e34969cdc0e8 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c | |||
@@ -256,8 +256,7 @@ static int stac9766_reset(struct snd_soc_codec *codec, int try_warm) | |||
256 | return 0; | 256 | return 0; |
257 | } | 257 | } |
258 | 258 | ||
259 | static int stac9766_codec_suspend(struct snd_soc_codec *codec, | 259 | static int stac9766_codec_suspend(struct snd_soc_codec *codec) |
260 | pm_message_t state) | ||
261 | { | 260 | { |
262 | stac9766_set_bias_level(codec, SND_SOC_BIAS_OFF); | 261 | stac9766_set_bias_level(codec, SND_SOC_BIAS_OFF); |
263 | return 0; | 262 | return 0; |
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index cba798e1a07e..60d08aeac22a 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c | |||
@@ -528,8 +528,7 @@ static struct snd_soc_dai_driver tlv320aic23_dai = { | |||
528 | .ops = &tlv320aic23_dai_ops, | 528 | .ops = &tlv320aic23_dai_ops, |
529 | }; | 529 | }; |
530 | 530 | ||
531 | static int tlv320aic23_suspend(struct snd_soc_codec *codec, | 531 | static int tlv320aic23_suspend(struct snd_soc_codec *codec) |
532 | pm_message_t state) | ||
533 | { | 532 | { |
534 | tlv320aic23_set_bias_level(codec, SND_SOC_BIAS_OFF); | 533 | tlv320aic23_set_bias_level(codec, SND_SOC_BIAS_OFF); |
535 | 534 | ||
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c index f55337567379..81a26e1090b3 100644 --- a/sound/soc/codecs/tlv320aic32x4.c +++ b/sound/soc/codecs/tlv320aic32x4.c | |||
@@ -621,7 +621,7 @@ static struct snd_soc_dai_driver aic32x4_dai = { | |||
621 | .symmetric_rates = 1, | 621 | .symmetric_rates = 1, |
622 | }; | 622 | }; |
623 | 623 | ||
624 | static int aic32x4_suspend(struct snd_soc_codec *codec, pm_message_t state) | 624 | static int aic32x4_suspend(struct snd_soc_codec *codec) |
625 | { | 625 | { |
626 | aic32x4_set_bias_level(codec, SND_SOC_BIAS_OFF); | 626 | aic32x4_set_bias_level(codec, SND_SOC_BIAS_OFF); |
627 | return 0; | 627 | return 0; |
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index 21625dddde23..6f963c50e76e 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c | |||
@@ -1268,7 +1268,7 @@ static struct snd_soc_dai_driver aic3x_dai = { | |||
1268 | .symmetric_rates = 1, | 1268 | .symmetric_rates = 1, |
1269 | }; | 1269 | }; |
1270 | 1270 | ||
1271 | static int aic3x_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1271 | static int aic3x_suspend(struct snd_soc_codec *codec) |
1272 | { | 1272 | { |
1273 | aic3x_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1273 | aic3x_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1274 | 1274 | ||
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index 6b0f0e220f85..c7a61fbdae4b 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c | |||
@@ -1460,7 +1460,7 @@ static int dac33_soc_remove(struct snd_soc_codec *codec) | |||
1460 | return 0; | 1460 | return 0; |
1461 | } | 1461 | } |
1462 | 1462 | ||
1463 | static int dac33_soc_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1463 | static int dac33_soc_suspend(struct snd_soc_codec *codec) |
1464 | { | 1464 | { |
1465 | dac33_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1465 | dac33_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1466 | 1466 | ||
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 61d8a9065ff3..18e71014cc2e 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -2202,7 +2202,7 @@ static struct snd_soc_dai_driver twl4030_dai[] = { | |||
2202 | }, | 2202 | }, |
2203 | }; | 2203 | }; |
2204 | 2204 | ||
2205 | static int twl4030_soc_suspend(struct snd_soc_codec *codec, pm_message_t state) | 2205 | static int twl4030_soc_suspend(struct snd_soc_codec *codec) |
2206 | { | 2206 | { |
2207 | twl4030_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2207 | twl4030_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2208 | return 0; | 2208 | return 0; |
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index a4a65dc9e33a..3376e6fad2a2 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -1470,7 +1470,7 @@ static struct snd_soc_dai_driver twl6040_dai[] = { | |||
1470 | }; | 1470 | }; |
1471 | 1471 | ||
1472 | #ifdef CONFIG_PM | 1472 | #ifdef CONFIG_PM |
1473 | static int twl6040_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1473 | static int twl6040_suspend(struct snd_soc_codec *codec) |
1474 | { | 1474 | { |
1475 | twl6040_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1475 | twl6040_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1476 | 1476 | ||
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c index d0f9d904ce8f..8f4f469d6411 100644 --- a/sound/soc/codecs/uda134x.c +++ b/sound/soc/codecs/uda134x.c | |||
@@ -571,8 +571,7 @@ static int uda134x_soc_remove(struct snd_soc_codec *codec) | |||
571 | } | 571 | } |
572 | 572 | ||
573 | #if defined(CONFIG_PM) | 573 | #if defined(CONFIG_PM) |
574 | static int uda134x_soc_suspend(struct snd_soc_codec *codec, | 574 | static int uda134x_soc_suspend(struct snd_soc_codec *codec) |
575 | pm_message_t state) | ||
576 | { | 575 | { |
577 | uda134x_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 576 | uda134x_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
578 | uda134x_set_bias_level(codec, SND_SOC_BIAS_OFF); | 577 | uda134x_set_bias_level(codec, SND_SOC_BIAS_OFF); |
diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c index 6b933efc7ed3..d08b91dde53d 100644 --- a/sound/soc/codecs/uda1380.c +++ b/sound/soc/codecs/uda1380.c | |||
@@ -705,7 +705,7 @@ static struct snd_soc_dai_driver uda1380_dai[] = { | |||
705 | }, | 705 | }, |
706 | }; | 706 | }; |
707 | 707 | ||
708 | static int uda1380_suspend(struct snd_soc_codec *codec, pm_message_t state) | 708 | static int uda1380_suspend(struct snd_soc_codec *codec) |
709 | { | 709 | { |
710 | uda1380_set_bias_level(codec, SND_SOC_BIAS_OFF); | 710 | uda1380_set_bias_level(codec, SND_SOC_BIAS_OFF); |
711 | return 0; | 711 | return 0; |
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 3f1ed5f5ccf4..f39497fc13e0 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -1315,7 +1315,7 @@ static int wm8350_set_bias_level(struct snd_soc_codec *codec, | |||
1315 | return 0; | 1315 | return 0; |
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | static int wm8350_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1318 | static int wm8350_suspend(struct snd_soc_codec *codec) |
1319 | { | 1319 | { |
1320 | wm8350_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1320 | wm8350_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1321 | return 0; | 1321 | return 0; |
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index a1173eb7936d..56a7b7256efa 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
@@ -1352,7 +1352,7 @@ static struct snd_soc_dai_driver wm8400_dai = { | |||
1352 | .ops = &wm8400_dai_ops, | 1352 | .ops = &wm8400_dai_ops, |
1353 | }; | 1353 | }; |
1354 | 1354 | ||
1355 | static int wm8400_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1355 | static int wm8400_suspend(struct snd_soc_codec *codec) |
1356 | { | 1356 | { |
1357 | wm8400_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1357 | wm8400_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1358 | 1358 | ||
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c index 3a655719ba2c..5e847506138e 100644 --- a/sound/soc/codecs/wm8510.c +++ b/sound/soc/codecs/wm8510.c | |||
@@ -534,7 +534,7 @@ static struct snd_soc_dai_driver wm8510_dai = { | |||
534 | .symmetric_rates = 1, | 534 | .symmetric_rates = 1, |
535 | }; | 535 | }; |
536 | 536 | ||
537 | static int wm8510_suspend(struct snd_soc_codec *codec, pm_message_t state) | 537 | static int wm8510_suspend(struct snd_soc_codec *codec) |
538 | { | 538 | { |
539 | wm8510_set_bias_level(codec, SND_SOC_BIAS_OFF); | 539 | wm8510_set_bias_level(codec, SND_SOC_BIAS_OFF); |
540 | return 0; | 540 | return 0; |
diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c index 0c89f8e2daaf..7fea2c3bf7e7 100644 --- a/sound/soc/codecs/wm8523.c +++ b/sound/soc/codecs/wm8523.c | |||
@@ -384,7 +384,7 @@ static struct snd_soc_dai_driver wm8523_dai = { | |||
384 | }; | 384 | }; |
385 | 385 | ||
386 | #ifdef CONFIG_PM | 386 | #ifdef CONFIG_PM |
387 | static int wm8523_suspend(struct snd_soc_codec *codec, pm_message_t state) | 387 | static int wm8523_suspend(struct snd_soc_codec *codec) |
388 | { | 388 | { |
389 | wm8523_set_bias_level(codec, SND_SOC_BIAS_OFF); | 389 | wm8523_set_bias_level(codec, SND_SOC_BIAS_OFF); |
390 | return 0; | 390 | return 0; |
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index 760080e43015..b9b1a2f8360f 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c | |||
@@ -338,7 +338,7 @@ static struct snd_soc_dai_driver wm8711_dai = { | |||
338 | .ops = &wm8711_ops, | 338 | .ops = &wm8711_ops, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static int wm8711_suspend(struct snd_soc_codec *codec, pm_message_t state) | 341 | static int wm8711_suspend(struct snd_soc_codec *codec) |
342 | { | 342 | { |
343 | snd_soc_write(codec, WM8711_ACTIVE, 0x0); | 343 | snd_soc_write(codec, WM8711_ACTIVE, 0x0); |
344 | wm8711_set_bias_level(codec, SND_SOC_BIAS_OFF); | 344 | wm8711_set_bias_level(codec, SND_SOC_BIAS_OFF); |
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c index 085c2f81d8c2..b1f01d9273be 100644 --- a/sound/soc/codecs/wm8728.c +++ b/sound/soc/codecs/wm8728.c | |||
@@ -214,7 +214,7 @@ static struct snd_soc_dai_driver wm8728_dai = { | |||
214 | .ops = &wm8728_dai_ops, | 214 | .ops = &wm8728_dai_ops, |
215 | }; | 215 | }; |
216 | 216 | ||
217 | static int wm8728_suspend(struct snd_soc_codec *codec, pm_message_t state) | 217 | static int wm8728_suspend(struct snd_soc_codec *codec) |
218 | { | 218 | { |
219 | wm8728_set_bias_level(codec, SND_SOC_BIAS_OFF); | 219 | wm8728_set_bias_level(codec, SND_SOC_BIAS_OFF); |
220 | 220 | ||
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index c18dee06f29c..8821af70e660 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c | |||
@@ -490,7 +490,7 @@ static struct snd_soc_dai_driver wm8731_dai = { | |||
490 | }; | 490 | }; |
491 | 491 | ||
492 | #ifdef CONFIG_PM | 492 | #ifdef CONFIG_PM |
493 | static int wm8731_suspend(struct snd_soc_codec *codec, pm_message_t state) | 493 | static int wm8731_suspend(struct snd_soc_codec *codec) |
494 | { | 494 | { |
495 | wm8731_set_bias_level(codec, SND_SOC_BIAS_OFF); | 495 | wm8731_set_bias_level(codec, SND_SOC_BIAS_OFF); |
496 | 496 | ||
diff --git a/sound/soc/codecs/wm8737.c b/sound/soc/codecs/wm8737.c index c13e4f7809cf..ff95e62c56b9 100644 --- a/sound/soc/codecs/wm8737.c +++ b/sound/soc/codecs/wm8737.c | |||
@@ -539,7 +539,7 @@ static struct snd_soc_dai_driver wm8737_dai = { | |||
539 | }; | 539 | }; |
540 | 540 | ||
541 | #ifdef CONFIG_PM | 541 | #ifdef CONFIG_PM |
542 | static int wm8737_suspend(struct snd_soc_codec *codec, pm_message_t state) | 542 | static int wm8737_suspend(struct snd_soc_codec *codec) |
543 | { | 543 | { |
544 | wm8737_set_bias_level(codec, SND_SOC_BIAS_OFF); | 544 | wm8737_set_bias_level(codec, SND_SOC_BIAS_OFF); |
545 | return 0; | 545 | return 0; |
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c index b312fccbf67a..48cb78fd0103 100644 --- a/sound/soc/codecs/wm8750.c +++ b/sound/soc/codecs/wm8750.c | |||
@@ -666,7 +666,7 @@ static struct snd_soc_dai_driver wm8750_dai = { | |||
666 | .ops = &wm8750_dai_ops, | 666 | .ops = &wm8750_dai_ops, |
667 | }; | 667 | }; |
668 | 668 | ||
669 | static int wm8750_suspend(struct snd_soc_codec *codec, pm_message_t state) | 669 | static int wm8750_suspend(struct snd_soc_codec *codec) |
670 | { | 670 | { |
671 | wm8750_set_bias_level(codec, SND_SOC_BIAS_OFF); | 671 | wm8750_set_bias_level(codec, SND_SOC_BIAS_OFF); |
672 | return 0; | 672 | return 0; |
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index dc3153852d8a..b114c19f530a 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c | |||
@@ -1380,7 +1380,7 @@ static void wm8753_work(struct work_struct *work) | |||
1380 | wm8753_set_bias_level(codec, dapm->bias_level); | 1380 | wm8753_set_bias_level(codec, dapm->bias_level); |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | static int wm8753_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1383 | static int wm8753_suspend(struct snd_soc_codec *codec) |
1384 | { | 1384 | { |
1385 | wm8753_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1385 | wm8753_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1386 | return 0; | 1386 | return 0; |
diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c index 391c385ec43e..8976eb5796d3 100644 --- a/sound/soc/codecs/wm8770.c +++ b/sound/soc/codecs/wm8770.c | |||
@@ -555,7 +555,7 @@ static struct snd_soc_dai_driver wm8770_dai = { | |||
555 | }; | 555 | }; |
556 | 556 | ||
557 | #ifdef CONFIG_PM | 557 | #ifdef CONFIG_PM |
558 | static int wm8770_suspend(struct snd_soc_codec *codec, pm_message_t state) | 558 | static int wm8770_suspend(struct snd_soc_codec *codec) |
559 | { | 559 | { |
560 | wm8770_set_bias_level(codec, SND_SOC_BIAS_OFF); | 560 | wm8770_set_bias_level(codec, SND_SOC_BIAS_OFF); |
561 | return 0; | 561 | return 0; |
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c index af542a2f5941..fbf80c5220d0 100644 --- a/sound/soc/codecs/wm8776.c +++ b/sound/soc/codecs/wm8776.c | |||
@@ -371,7 +371,7 @@ static struct snd_soc_dai_driver wm8776_dai[] = { | |||
371 | }; | 371 | }; |
372 | 372 | ||
373 | #ifdef CONFIG_PM | 373 | #ifdef CONFIG_PM |
374 | static int wm8776_suspend(struct snd_soc_codec *codec, pm_message_t state) | 374 | static int wm8776_suspend(struct snd_soc_codec *codec) |
375 | { | 375 | { |
376 | wm8776_set_bias_level(codec, SND_SOC_BIAS_OFF); | 376 | wm8776_set_bias_level(codec, SND_SOC_BIAS_OFF); |
377 | 377 | ||
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index d99c6a0a0a2d..ae4b8fb3c3e5 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c | |||
@@ -542,7 +542,7 @@ static int wm8804_set_bias_level(struct snd_soc_codec *codec, | |||
542 | } | 542 | } |
543 | 543 | ||
544 | #ifdef CONFIG_PM | 544 | #ifdef CONFIG_PM |
545 | static int wm8804_suspend(struct snd_soc_codec *codec, pm_message_t state) | 545 | static int wm8804_suspend(struct snd_soc_codec *codec) |
546 | { | 546 | { |
547 | wm8804_set_bias_level(codec, SND_SOC_BIAS_OFF); | 547 | wm8804_set_bias_level(codec, SND_SOC_BIAS_OFF); |
548 | return 0; | 548 | return 0; |
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index 6ac80cf80b31..85632ffcb872 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c | |||
@@ -1106,7 +1106,7 @@ static int wm8900_set_bias_level(struct snd_soc_codec *codec, | |||
1106 | return 0; | 1106 | return 0; |
1107 | } | 1107 | } |
1108 | 1108 | ||
1109 | static int wm8900_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1109 | static int wm8900_suspend(struct snd_soc_codec *codec) |
1110 | { | 1110 | { |
1111 | struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); | 1111 | struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); |
1112 | int fll_out = wm8900->fll_out; | 1112 | int fll_out = wm8900->fll_out; |
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 70a2268c5498..d663c97785d7 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c | |||
@@ -1758,7 +1758,7 @@ static struct snd_soc_dai_driver wm8903_dai = { | |||
1758 | .symmetric_rates = 1, | 1758 | .symmetric_rates = 1, |
1759 | }; | 1759 | }; |
1760 | 1760 | ||
1761 | static int wm8903_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1761 | static int wm8903_suspend(struct snd_soc_codec *codec) |
1762 | { | 1762 | { |
1763 | wm8903_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1763 | wm8903_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1764 | 1764 | ||
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index babca49c8766..f0ae01bbaa94 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c | |||
@@ -2234,7 +2234,7 @@ static struct snd_soc_dai_driver wm8904_dai = { | |||
2234 | }; | 2234 | }; |
2235 | 2235 | ||
2236 | #ifdef CONFIG_PM | 2236 | #ifdef CONFIG_PM |
2237 | static int wm8904_suspend(struct snd_soc_codec *codec, pm_message_t state) | 2237 | static int wm8904_suspend(struct snd_soc_codec *codec) |
2238 | { | 2238 | { |
2239 | wm8904_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2239 | wm8904_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2240 | 2240 | ||
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 9f1cce8d105d..0fe4545eef89 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c | |||
@@ -672,7 +672,7 @@ static struct snd_soc_dai_driver wm8940_dai = { | |||
672 | .symmetric_rates = 1, | 672 | .symmetric_rates = 1, |
673 | }; | 673 | }; |
674 | 674 | ||
675 | static int wm8940_suspend(struct snd_soc_codec *codec, pm_message_t state) | 675 | static int wm8940_suspend(struct snd_soc_codec *codec) |
676 | { | 676 | { |
677 | return wm8940_set_bias_level(codec, SND_SOC_BIAS_OFF); | 677 | return wm8940_set_bias_level(codec, SND_SOC_BIAS_OFF); |
678 | } | 678 | } |
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index ca38722bc3fe..cdd51398e1f4 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c | |||
@@ -878,7 +878,7 @@ static struct snd_soc_dai_driver wm8955_dai = { | |||
878 | }; | 878 | }; |
879 | 879 | ||
880 | #ifdef CONFIG_PM | 880 | #ifdef CONFIG_PM |
881 | static int wm8955_suspend(struct snd_soc_codec *codec, pm_message_t state) | 881 | static int wm8955_suspend(struct snd_soc_codec *codec) |
882 | { | 882 | { |
883 | wm8955_set_bias_level(codec, SND_SOC_BIAS_OFF); | 883 | wm8955_set_bias_level(codec, SND_SOC_BIAS_OFF); |
884 | 884 | ||
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index ed2773f623ca..55b9a25cd1b3 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c | |||
@@ -894,7 +894,7 @@ static struct snd_soc_dai_driver wm8960_dai = { | |||
894 | .symmetric_rates = 1, | 894 | .symmetric_rates = 1, |
895 | }; | 895 | }; |
896 | 896 | ||
897 | static int wm8960_suspend(struct snd_soc_codec *codec, pm_message_t state) | 897 | static int wm8960_suspend(struct snd_soc_codec *codec) |
898 | { | 898 | { |
899 | struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec); | 899 | struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec); |
900 | 900 | ||
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index c0587013fdfa..9bcf846e93b0 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c | |||
@@ -1038,7 +1038,7 @@ static int wm8961_remove(struct snd_soc_codec *codec) | |||
1038 | } | 1038 | } |
1039 | 1039 | ||
1040 | #ifdef CONFIG_PM | 1040 | #ifdef CONFIG_PM |
1041 | static int wm8961_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1041 | static int wm8961_suspend(struct snd_soc_codec *codec) |
1042 | { | 1042 | { |
1043 | wm8961_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1043 | wm8961_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1044 | 1044 | ||
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c index b01df56b824a..aadd14a14661 100644 --- a/sound/soc/codecs/wm8971.c +++ b/sound/soc/codecs/wm8971.c | |||
@@ -599,7 +599,7 @@ static void wm8971_work(struct work_struct *work) | |||
599 | wm8971_set_bias_level(codec, codec->dapm.bias_level); | 599 | wm8971_set_bias_level(codec, codec->dapm.bias_level); |
600 | } | 600 | } |
601 | 601 | ||
602 | static int wm8971_suspend(struct snd_soc_codec *codec, pm_message_t state) | 602 | static int wm8971_suspend(struct snd_soc_codec *codec) |
603 | { | 603 | { |
604 | wm8971_set_bias_level(codec, SND_SOC_BIAS_OFF); | 604 | wm8971_set_bias_level(codec, SND_SOC_BIAS_OFF); |
605 | return 0; | 605 | return 0; |
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index e41f9993c652..a5fd017c4332 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c | |||
@@ -582,7 +582,7 @@ static struct snd_soc_dai_driver wm8974_dai = { | |||
582 | .symmetric_rates = 1, | 582 | .symmetric_rates = 1, |
583 | }; | 583 | }; |
584 | 584 | ||
585 | static int wm8974_suspend(struct snd_soc_codec *codec, pm_message_t state) | 585 | static int wm8974_suspend(struct snd_soc_codec *codec) |
586 | { | 586 | { |
587 | wm8974_set_bias_level(codec, SND_SOC_BIAS_OFF); | 587 | wm8974_set_bias_level(codec, SND_SOC_BIAS_OFF); |
588 | return 0; | 588 | return 0; |
diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c index 649a2e3c02ae..85d514d63a4c 100644 --- a/sound/soc/codecs/wm8978.c +++ b/sound/soc/codecs/wm8978.c | |||
@@ -892,7 +892,7 @@ static struct snd_soc_dai_driver wm8978_dai = { | |||
892 | .ops = &wm8978_dai_ops, | 892 | .ops = &wm8978_dai_ops, |
893 | }; | 893 | }; |
894 | 894 | ||
895 | static int wm8978_suspend(struct snd_soc_codec *codec, pm_message_t state) | 895 | static int wm8978_suspend(struct snd_soc_codec *codec) |
896 | { | 896 | { |
897 | wm8978_set_bias_level(codec, SND_SOC_BIAS_OFF); | 897 | wm8978_set_bias_level(codec, SND_SOC_BIAS_OFF); |
898 | /* Also switch PLL off */ | 898 | /* Also switch PLL off */ |
diff --git a/sound/soc/codecs/wm8983.c b/sound/soc/codecs/wm8983.c index 362298cce92c..cebde568d191 100644 --- a/sound/soc/codecs/wm8983.c +++ b/sound/soc/codecs/wm8983.c | |||
@@ -974,7 +974,7 @@ static int wm8983_set_bias_level(struct snd_soc_codec *codec, | |||
974 | } | 974 | } |
975 | 975 | ||
976 | #ifdef CONFIG_PM | 976 | #ifdef CONFIG_PM |
977 | static int wm8983_suspend(struct snd_soc_codec *codec, pm_message_t state) | 977 | static int wm8983_suspend(struct snd_soc_codec *codec) |
978 | { | 978 | { |
979 | wm8983_set_bias_level(codec, SND_SOC_BIAS_OFF); | 979 | wm8983_set_bias_level(codec, SND_SOC_BIAS_OFF); |
980 | return 0; | 980 | return 0; |
diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c index 9e4481bb1223..c0c86b3c6adf 100644 --- a/sound/soc/codecs/wm8985.c +++ b/sound/soc/codecs/wm8985.c | |||
@@ -945,7 +945,7 @@ static int wm8985_set_bias_level(struct snd_soc_codec *codec, | |||
945 | } | 945 | } |
946 | 946 | ||
947 | #ifdef CONFIG_PM | 947 | #ifdef CONFIG_PM |
948 | static int wm8985_suspend(struct snd_soc_codec *codec, pm_message_t state) | 948 | static int wm8985_suspend(struct snd_soc_codec *codec) |
949 | { | 949 | { |
950 | wm8985_set_bias_level(codec, SND_SOC_BIAS_OFF); | 950 | wm8985_set_bias_level(codec, SND_SOC_BIAS_OFF); |
951 | return 0; | 951 | return 0; |
diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c index 608c6721e4f1..093884705b01 100644 --- a/sound/soc/codecs/wm8988.c +++ b/sound/soc/codecs/wm8988.c | |||
@@ -728,7 +728,7 @@ static struct snd_soc_dai_driver wm8988_dai = { | |||
728 | .symmetric_rates = 1, | 728 | .symmetric_rates = 1, |
729 | }; | 729 | }; |
730 | 730 | ||
731 | static int wm8988_suspend(struct snd_soc_codec *codec, pm_message_t state) | 731 | static int wm8988_suspend(struct snd_soc_codec *codec) |
732 | { | 732 | { |
733 | wm8988_set_bias_level(codec, SND_SOC_BIAS_OFF); | 733 | wm8988_set_bias_level(codec, SND_SOC_BIAS_OFF); |
734 | return 0; | 734 | return 0; |
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c index 58d7f0bff990..b417d2e0cdfd 100644 --- a/sound/soc/codecs/wm8990.c +++ b/sound/soc/codecs/wm8990.c | |||
@@ -1313,7 +1313,7 @@ static struct snd_soc_dai_driver wm8990_dai = { | |||
1313 | .ops = &wm8990_dai_ops, | 1313 | .ops = &wm8990_dai_ops, |
1314 | }; | 1314 | }; |
1315 | 1315 | ||
1316 | static int wm8990_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1316 | static int wm8990_suspend(struct snd_soc_codec *codec) |
1317 | { | 1317 | { |
1318 | wm8990_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1318 | wm8990_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1319 | return 0; | 1319 | return 0; |
diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c index 35c5389e5ef7..7ee40da8dbb5 100644 --- a/sound/soc/codecs/wm8991.c +++ b/sound/soc/codecs/wm8991.c | |||
@@ -1240,7 +1240,7 @@ static int wm8991_set_bias_level(struct snd_soc_codec *codec, | |||
1240 | return 0; | 1240 | return 0; |
1241 | } | 1241 | } |
1242 | 1242 | ||
1243 | static int wm8991_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1243 | static int wm8991_suspend(struct snd_soc_codec *codec) |
1244 | { | 1244 | { |
1245 | wm8991_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1245 | wm8991_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1246 | return 0; | 1246 | return 0; |
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 780c24cdab6d..0f8278b4f0ad 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c | |||
@@ -1544,7 +1544,7 @@ static int wm8993_remove(struct snd_soc_codec *codec) | |||
1544 | } | 1544 | } |
1545 | 1545 | ||
1546 | #ifdef CONFIG_PM | 1546 | #ifdef CONFIG_PM |
1547 | static int wm8993_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1547 | static int wm8993_suspend(struct snd_soc_codec *codec) |
1548 | { | 1548 | { |
1549 | struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec); | 1549 | struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec); |
1550 | int fll_fout = wm8993->fll_fout; | 1550 | int fll_fout = wm8993->fll_fout; |
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 0699ed2fb793..d9faa39d826d 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -2801,7 +2801,7 @@ static struct snd_soc_dai_driver wm8994_dai[] = { | |||
2801 | }; | 2801 | }; |
2802 | 2802 | ||
2803 | #ifdef CONFIG_PM | 2803 | #ifdef CONFIG_PM |
2804 | static int wm8994_suspend(struct snd_soc_codec *codec, pm_message_t state) | 2804 | static int wm8994_suspend(struct snd_soc_codec *codec) |
2805 | { | 2805 | { |
2806 | struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); | 2806 | struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); |
2807 | struct wm8994 *control = wm8994->wm8994; | 2807 | struct wm8994 *control = wm8994->wm8994; |
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index 8f6a36d7c75b..5863406b459d 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c | |||
@@ -2009,7 +2009,7 @@ static int wm8995_set_bias_level(struct snd_soc_codec *codec, | |||
2009 | } | 2009 | } |
2010 | 2010 | ||
2011 | #ifdef CONFIG_PM | 2011 | #ifdef CONFIG_PM |
2012 | static int wm8995_suspend(struct snd_soc_codec *codec, pm_message_t state) | 2012 | static int wm8995_suspend(struct snd_soc_codec *codec) |
2013 | { | 2013 | { |
2014 | wm8995_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2014 | wm8995_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2015 | return 0; | 2015 | return 0; |
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c index 8a4b97060444..1f2672b1e03e 100644 --- a/sound/soc/codecs/wm9081.c +++ b/sound/soc/codecs/wm9081.c | |||
@@ -1302,7 +1302,7 @@ static int wm9081_remove(struct snd_soc_codec *codec) | |||
1302 | } | 1302 | } |
1303 | 1303 | ||
1304 | #ifdef CONFIG_PM | 1304 | #ifdef CONFIG_PM |
1305 | static int wm9081_suspend(struct snd_soc_codec *codec, pm_message_t state) | 1305 | static int wm9081_suspend(struct snd_soc_codec *codec) |
1306 | { | 1306 | { |
1307 | wm9081_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1307 | wm9081_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1308 | 1308 | ||
diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c index f94c06057c64..5cb8759868df 100644 --- a/sound/soc/codecs/wm9090.c +++ b/sound/soc/codecs/wm9090.c | |||
@@ -604,7 +604,7 @@ static int wm9090_probe(struct snd_soc_codec *codec) | |||
604 | } | 604 | } |
605 | 605 | ||
606 | #ifdef CONFIG_PM | 606 | #ifdef CONFIG_PM |
607 | static int wm9090_suspend(struct snd_soc_codec *codec, pm_message_t state) | 607 | static int wm9090_suspend(struct snd_soc_codec *codec) |
608 | { | 608 | { |
609 | wm9090_set_bias_level(codec, SND_SOC_BIAS_OFF); | 609 | wm9090_set_bias_level(codec, SND_SOC_BIAS_OFF); |
610 | 610 | ||
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index b720a43c422c..40c92ead85a3 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -306,7 +306,7 @@ static int wm9705_reset(struct snd_soc_codec *codec) | |||
306 | } | 306 | } |
307 | 307 | ||
308 | #ifdef CONFIG_PM | 308 | #ifdef CONFIG_PM |
309 | static int wm9705_soc_suspend(struct snd_soc_codec *codec, pm_message_t msg) | 309 | static int wm9705_soc_suspend(struct snd_soc_codec *codec) |
310 | { | 310 | { |
311 | soc_ac97_ops.write(codec->ac97, AC97_POWERDOWN, 0xffff); | 311 | soc_ac97_ops.write(codec->ac97, AC97_POWERDOWN, 0xffff); |
312 | 312 | ||
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 4ce73f59df20..b7b31f84c10b 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
@@ -583,8 +583,7 @@ err: | |||
583 | return -EIO; | 583 | return -EIO; |
584 | } | 584 | } |
585 | 585 | ||
586 | static int wm9712_soc_suspend(struct snd_soc_codec *codec, | 586 | static int wm9712_soc_suspend(struct snd_soc_codec *codec) |
587 | pm_message_t state) | ||
588 | { | 587 | { |
589 | wm9712_set_bias_level(codec, SND_SOC_BIAS_OFF); | 588 | wm9712_set_bias_level(codec, SND_SOC_BIAS_OFF); |
590 | return 0; | 589 | return 0; |
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index edb598182c69..2b8479bfcd93 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c | |||
@@ -1140,8 +1140,7 @@ static int wm9713_set_bias_level(struct snd_soc_codec *codec, | |||
1140 | return 0; | 1140 | return 0; |
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | static int wm9713_soc_suspend(struct snd_soc_codec *codec, | 1143 | static int wm9713_soc_suspend(struct snd_soc_codec *codec) |
1144 | pm_message_t state) | ||
1145 | { | 1144 | { |
1146 | u16 reg; | 1145 | u16 reg; |
1147 | 1146 | ||
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index ec783f0a27e9..5195f0653b35 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -572,7 +572,7 @@ int snd_soc_suspend(struct device *dev) | |||
572 | switch (codec->dapm.bias_level) { | 572 | switch (codec->dapm.bias_level) { |
573 | case SND_SOC_BIAS_STANDBY: | 573 | case SND_SOC_BIAS_STANDBY: |
574 | case SND_SOC_BIAS_OFF: | 574 | case SND_SOC_BIAS_OFF: |
575 | codec->driver->suspend(codec, PMSG_SUSPEND); | 575 | codec->driver->suspend(codec); |
576 | codec->suspended = 1; | 576 | codec->suspended = 1; |
577 | codec->cache_sync = 1; | 577 | codec->cache_sync = 1; |
578 | break; | 578 | break; |