OSDN Git Service

Use audio_stream_type_t consistently
authorGlenn Kasten <gkasten@google.com>
Thu, 12 Jan 2012 22:56:21 +0000 (14:56 -0800)
committerGlenn Kasten <gkasten@google.com>
Fri, 13 Jan 2012 00:55:03 +0000 (16:55 -0800)
Change-Id: I1e92f018a07e4b1b73ef8d4de461ef1e08bc48e7

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

index fc56e5e..add14f8 100644 (file)
@@ -215,7 +215,7 @@ struct audio_policy {
     int (*set_effect_enabled)(struct audio_policy *pol, int id, bool enabled);
 
     bool (*is_stream_active)(const struct audio_policy *pol,
-                             int stream,
+                             audio_stream_type_t stream,
                              uint32_t in_past_ms);
 
     /* dump state */
index 409f0a1..3313d48 100644 (file)
@@ -201,7 +201,7 @@ static int ap_set_effect_enabled(struct audio_policy *pol, int id, bool enabled)
     return -ENOSYS;
 }
 
-static bool ap_is_stream_active(const struct audio_policy *pol, int stream,
+static bool ap_is_stream_active(const struct audio_policy *pol, audio_stream_type_t stream,
                                 uint32_t in_past_ms)
 {
     return false;