summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorVijay Mali <vmali@nvidia.com>2013-06-21 10:37:02 +0530
committerGabby Lee <galee@nvidia.com>2013-06-24 20:05:10 -0700
commit9a5737e650290d0a43d6e73fb329bf7a9f446218 (patch)
tree8e940161eac2461872990afb66ee7cdb91162930 /sound
parent394787d5886fc248b68db1d7c35cb02321a2f966 (diff)
asoc: rt5640 codec: Fix compilation warnigs
Remove unused variables Bug 1274537 Change-Id: I9ca17020c101fa56bcb829d9a9fc71b0d78cc96f Signed-off-by: Vijay Mali <vmali@nvidia.com> (cherry picked from commit cf92ab606734e44f4ab0ac0b6554fb20b5d3b7f0) Reviewed-on: http://git-master/r/241367 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Simon Je <sje@nvidia.com> Tested-by: Simon Je <sje@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5640.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 8f71124233be..94c1ab1e3b94 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -1534,7 +1534,6 @@ static int rt5640_set_dmic1_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_codec *codec = w->codec;
- unsigned int val, mask;
struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec);
mutex_lock(&rt5640->lock);
CHECK_I2C_SHUTDOWN(rt5640, codec)
@@ -1564,7 +1563,6 @@ static int rt5640_set_dmic2_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_codec *codec = w->codec;
- unsigned int val, mask;
struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec);
mutex_lock(&rt5640->lock);
CHECK_I2C_SHUTDOWN(rt5640, codec)
@@ -2831,7 +2829,7 @@ 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)
+static int rt5640_suspend(struct snd_soc_codec *codec)
{
rt5640_reset(codec);
rt5640_set_bias_level(codec, SND_SOC_BIAS_OFF);