summaryrefslogtreecommitdiffstats
path: root/audio/audio_policy_hal.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-09 10:41:59 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-12 10:49:45 -0800
commit5c1ebdc9db8d7e5ff51704f80c55f460638eb095 (patch)
tree12cd769f0210038c20a68b7a0ea1a56508418789 /audio/audio_policy_hal.cpp
parentc6e7b3d9e65c18df980d181ee4cf2deedab89169 (diff)
downloadhardware_libhardware_legacy-5c1ebdc9db8d7e5ff51704f80c55f460638eb095.zip
hardware_libhardware_legacy-5c1ebdc9db8d7e5ff51704f80c55f460638eb095.tar.gz
hardware_libhardware_legacy-5c1ebdc9db8d7e5ff51704f80c55f460638eb095.tar.bz2
Use audio_mode_t consistently
Change-Id: I62e23b81e3a411a0d9f012b363373d938827a2e4
Diffstat (limited to 'audio/audio_policy_hal.cpp')
-rw-r--r--audio/audio_policy_hal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/audio_policy_hal.cpp b/audio/audio_policy_hal.cpp
index aa70037..f68ea1b 100644
--- a/audio/audio_policy_hal.cpp
+++ b/audio/audio_policy_hal.cpp
@@ -84,10 +84,11 @@ static audio_policy_dev_state_t ap_get_device_connection_state(
device_address);
}
-static void ap_set_phone_state(struct audio_policy *pol, int state)
+static void ap_set_phone_state(struct audio_policy *pol, audio_mode_t state)
{
struct legacy_audio_policy *lap = to_lap(pol);
- lap->apm->setPhoneState(state);
+ // as this is the legacy API, don't change it to use audio_mode_t instead of int
+ lap->apm->setPhoneState((int) state);
}
/* indicate a change in ringer mode */