summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5640.c
diff options
context:
space:
mode:
authorManoj Gangwal <mgangwal@nvidia.com>2012-01-05 18:02:56 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-10 08:21:19 -0800
commitb577a4822b263dcddd34390a0d3340c759ab2370 (patch)
treefaac663f3f7f42a956f13f98dd0518ac8daeff48 /sound/soc/codecs/rt5640.c
parentb195f57909e5553e99f9418ba3c776a2d116aa5a (diff)
asoc: codecs: Remove suspend/resume for ALC5640
Implementation of suspend/resume functionality is not proper for ALC5640 codec , so remove it temporarily. Bug 910788 Change-Id: I243c327602a45a3084befd17a1e722e4d844e502 Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/73478 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 3e24bcc4df716bd1e1f3772300aaa9988319f91a) Reviewed-on: http://git-master/r/73962 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r--sound/soc/codecs/rt5640.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index c6f0ad011a67..040f866ade64 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2339,23 +2339,6 @@ static int rt5640_remove(struct snd_soc_codec *codec)
return 0;
}
-#ifdef CONFIG_PM
-static int rt5640_suspend(struct snd_soc_codec *codec, pm_message_t state)
-{
- rt5640_set_bias_level(codec, SND_SOC_BIAS_OFF);
- return 0;
-}
-
-static int rt5640_resume(struct snd_soc_codec *codec)
-{
- rt5640_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
- return 0;
-}
-#else
-#define rt5640_suspend NULL
-#define rt5640_resume NULL
-#endif
-
#define RT5640_STEREO_RATES SNDRV_PCM_RATE_8000_96000
#define RT5640_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8)
@@ -2434,8 +2417,6 @@ struct snd_soc_dai_driver rt5640_dai[] = {
static struct snd_soc_codec_driver soc_codec_dev_rt5640 = {
.probe = rt5640_probe,
.remove = rt5640_remove,
- .suspend = rt5640_suspend,
- .resume = rt5640_resume,
.set_bias_level = rt5640_set_bias_level,
.reg_cache_size = RT5640_VENDOR_ID2 + 1,
.reg_word_size = sizeof(u16),