summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNikesh Oswal <noswal@nvidia.com>2012-01-25 12:17:52 +0530
committerVarun Colbert <vcolbert@nvidia.com>2012-01-30 13:21:01 -0800
commit1b4416a47933312bf69f1ec945a759fef75f2da9 (patch)
tree5936be55df97ecc6b64ce7c147ea591883836a95 /sound
parent85c8c9b28336e60869cb723861925b707415a55f (diff)
asoc: tegra: max98088: implement an api to get voice call state
Bug: 924817 Reviewed-on: http://git-master/r/77238 Change-Id: Ife3bb3439b4b00d042684500d7ffb6bc00100ba6 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77756 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra_max98088.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_max98088.c b/sound/soc/tegra/tegra_max98088.c
index d9308ba54b99..d666a953a394 100644
--- a/sound/soc/tegra/tegra_max98088.c
+++ b/sound/soc/tegra/tegra_max98088.c
@@ -81,6 +81,8 @@ const char *tegra_max98088_i2s_dai_name[TEGRA30_NR_I2S_IFC] = {
};
#endif
+static int g_is_call_mode;
+
struct tegra_max98088 {
struct tegra_asoc_utils_data util_data;
struct tegra_max98088_platform_data *pdata;
@@ -95,6 +97,15 @@ struct tegra_max98088 {
struct snd_soc_card *pcard;
};
+bool tegra_is_voice_call_active()
+{
+ if (g_is_call_mode)
+ return true;
+ else
+ return false;
+}
+EXPORT_SYMBOL_GPL(tegra_is_voice_call_active);
+
static int tegra_call_mode_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
@@ -156,6 +167,7 @@ static int tegra_call_mode_put(struct snd_kcontrol *kcontrol,
}
machine->is_call_mode = is_call_mode_new;
+ g_is_call_mode = machine->is_call_mode;
return 1;
}