diff options
author | Mayuresh Kulkarni <mkulkarni@nvidia.com> | 2012-03-26 18:18:54 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-04-05 09:10:36 -0700 |
commit | ab1f075e4c6afff574f3626be08f32ca51cc4a98 (patch) | |
tree | 52ae7a9b5bfa57c68dd92ac24f42a76dbfaf3ad7 /include | |
parent | d529521e727928245cf16df01f440d3857a8f53d (diff) |
tegra_audio: add default implementation for tegra_is_voice_call_active()
- mods kernel do not enable audio related configs in kernel
- tegra_is_voice_call_active() is defined only when audio
related configs are enabled
- this commit adds a default implementation for tegra_is_voice_call_active()
which can be called from generic pm code in mach-tegra
- it also makes the default implementation inline
Bug 924817
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/92312
(cherry picked from commit 1b7507db6f2266d5cac10fcd4b3e7b06f6d2f3bd)
Change-Id: I286237b838c39cf5c7784c014459bdcaf50c31ef
Reviewed-on: http://git-master/r/94394
Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_audio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/tegra_audio.h b/include/linux/tegra_audio.h index 6416cd01861c..904dde998fc4 100644 --- a/include/linux/tegra_audio.h +++ b/include/linux/tegra_audio.h @@ -75,6 +75,13 @@ struct dam_srate { #define I2S_LOOPBACK _IOW(TEGRA_AUDIO_MAGIC, 17, unsigned int *) #define I2S_MODE_I2S _IOW(TEGRA_AUDIO_MAGIC, 18, unsigned int *) +#ifdef CONFIG_SND_SOC_TEGRA extern bool tegra_is_voice_call_active(); +#else +inline bool tegra_is_voice_call_active() +{ + return false; +} +#endif #endif/*_CPCAP_AUDIO_H*/ |