OSDN Git Service

audio policy: use audio_devices_t when appropriate
authorEric Laurent <elaurent@google.com>
Thu, 8 Mar 2012 21:44:18 +0000 (13:44 -0800)
committerEric Laurent <elaurent@google.com>
Thu, 8 Mar 2012 21:45:03 +0000 (13:45 -0800)
Change-Id: Iee57cf5c3bdfefd981e1ed5958df10171f8716e6

include/hardware/audio_policy.h
modules/audio/audio_policy.c

index f31bea8..43d9e83 100644 (file)
@@ -210,7 +210,7 @@ struct audio_policy {
                                         audio_stream_type_t stream);
 
     /* return the enabled output devices for the given stream type */
-    uint32_t (*get_devices_for_stream)(const struct audio_policy *pol,
+    audio_devices_t (*get_devices_for_stream)(const struct audio_policy *pol,
                                        audio_stream_type_t stream);
 
     /* Audio effect management */
index 5fb6095..8d7e5c3 100644 (file)
@@ -186,7 +186,7 @@ static uint32_t ap_get_strategy_for_stream(const struct audio_policy *pol,
     return 0;
 }
 
-static uint32_t ap_get_devices_for_stream(const struct audio_policy *pol,
+static audio_devices_t ap_get_devices_for_stream(const struct audio_policy *pol,
                                           audio_stream_type_t stream)
 {
     return 0;