aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/alc5632.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leon@leon.nu>2011-11-16 05:07:00 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-16 05:41:55 -0500
commitc9be8427b1dbd5e9d0313762fb80b2633abb694b (patch)
tree13a45bbe5648f4fa07a32d12d7cc454bbdb662ef /sound/soc/codecs/alc5632.c
parent6662ff5c3b8efe8c107118d9506ad65daf3e3a1b (diff)
ASoC: alc5632: Fix compile without CONFIG_PM
Signed-off-by: Leon Romanovsky <leon@leon.nu> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/alc5632.c')
-rw-r--r--sound/soc/codecs/alc5632.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c
index 07e958aeea5c..e560a2119b12 100644
--- a/sound/soc/codecs/alc5632.c
+++ b/sound/soc/codecs/alc5632.c
@@ -939,6 +939,7 @@ static struct snd_soc_dai_driver alc5632_dai = {
939 .symmetric_rates = 1, 939 .symmetric_rates = 1,
940}; 940};
941 941
942#ifdef CONFIG_PM
942static int alc5632_suspend(struct snd_soc_codec *codec, pm_message_t mesg) 943static int alc5632_suspend(struct snd_soc_codec *codec, pm_message_t mesg)
943{ 944{
944 alc5632_set_bias_level(codec, SND_SOC_BIAS_OFF); 945 alc5632_set_bias_level(codec, SND_SOC_BIAS_OFF);
@@ -961,6 +962,10 @@ static int alc5632_resume(struct snd_soc_codec *codec)
961 alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 962 alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
962 return 0; 963 return 0;
963} 964}
965#else
966#define alc5632_suspend NULL
967#define alc5632_resume NULL
968#endif
964 969
965static int alc5632_probe(struct snd_soc_codec *codec) 970static int alc5632_probe(struct snd_soc_codec *codec)
966{ 971{