summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/common
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2015-05-04 17:14:15 -0700
committerChih-hung Hsieh <chh@google.com>2015-05-06 21:09:45 +0000
commit5603d28707ef0f19b2b915756809424698e93d9c (patch)
tree311bb61b9d80ba3ec231a8c22bc7d44d1518b6ab /services/audiopolicy/common
parent7b4df6a3c4016d3f4f481af46d4e0d19fa48ad06 (diff)
downloadframeworks_av-5603d28707ef0f19b2b915756809424698e93d9c.zip
frameworks_av-5603d28707ef0f19b2b915756809424698e93d9c.tar.gz
frameworks_av-5603d28707ef0f19b2b915756809424698e93d9c.tar.bz2
Make header functions "inline" to avoid warning when unused.
Change-Id: Iefac44f3c0e1c3fd4b19833d9692744100f92e00 (cherry picked from commit 5e9febef197a9852c833a0aedc6bfee179c4ae9e)
Diffstat (limited to 'services/audiopolicy/common')
-rwxr-xr-xservices/audiopolicy/common/include/policy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audiopolicy/common/include/policy.h b/services/audiopolicy/common/include/policy.h
index a2327ee..e6a767f 100755
--- a/services/audiopolicy/common/include/policy.h
+++ b/services/audiopolicy/common/include/policy.h
@@ -60,7 +60,7 @@ static inline bool is_state_in_call(int state)
*
* @return true if the device is a virtual one, false otherwise.
*/
-static bool is_virtual_input_device(audio_devices_t device)
+static inline bool is_virtual_input_device(audio_devices_t device)
{
if ((device & AUDIO_DEVICE_BIT_IN) != 0) {
device &= ~AUDIO_DEVICE_BIT_IN;
@@ -78,7 +78,7 @@ static bool is_virtual_input_device(audio_devices_t device)
*
* @return true if the device needs distinguish on address, false otherwise..
*/
-static bool device_distinguishes_on_address(audio_devices_t device)
+static inline bool device_distinguishes_on_address(audio_devices_t device)
{
return ((device & APM_AUDIO_DEVICE_MATCH_ADDRESS_ALL & ~AUDIO_DEVICE_BIT_IN) != 0);
}