projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6662ff5
)
ASoC: alc5632: Fix compile without CONFIG_PM
author
Leon Romanovsky
<leon@leon.nu>
Wed, 16 Nov 2011 10:07:00 +0000
(12:07 +0200)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 16 Nov 2011 10:41:55 +0000
(10:41 +0000)
Signed-off-by: Leon Romanovsky <leon@leon.nu>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/alc5632.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/alc5632.c
b/sound/soc/codecs/alc5632.c
index 07e958aeea5c44ff2acb84dcf37f351abe81c70c..e560a2119b12cbc7f53d51a60c814e0784cd4204 100644
(file)
--- a/
sound/soc/codecs/alc5632.c
+++ b/
sound/soc/codecs/alc5632.c
@@
-939,6
+939,7
@@
static struct snd_soc_dai_driver alc5632_dai = {
.symmetric_rates = 1,
};
+#ifdef CONFIG_PM
static int alc5632_suspend(struct snd_soc_codec *codec, pm_message_t mesg)
{
alc5632_set_bias_level(codec, SND_SOC_BIAS_OFF);
@@
-961,6
+962,10
@@
static int alc5632_resume(struct snd_soc_codec *codec)
alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
return 0;
}
+#else
+#define alc5632_suspend NULL
+#define alc5632_resume NULL
+#endif
static int alc5632_probe(struct snd_soc_codec *codec)
{