summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-12 14:56:21 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-12 16:55:03 -0800
commit5161a847dd2108bec49f1ce3fa1d1c3e3cd0c851 (patch)
treeead16b364fc0a3299d002379b78f7ff0e8d6509b
parent60d056bf2926357260592409dee31374fa8e301b (diff)
downloadhardware_libhardware-5161a847dd2108bec49f1ce3fa1d1c3e3cd0c851.zip
hardware_libhardware-5161a847dd2108bec49f1ce3fa1d1c3e3cd0c851.tar.gz
hardware_libhardware-5161a847dd2108bec49f1ce3fa1d1c3e3cd0c851.tar.bz2
Use audio_stream_type_t consistently
Change-Id: I1e92f018a07e4b1b73ef8d4de461ef1e08bc48e7
-rw-r--r--include/hardware/audio_policy.h2
-rw-r--r--modules/audio/audio_policy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/hardware/audio_policy.h b/include/hardware/audio_policy.h
index fc56e5e..add14f8 100644
--- a/include/hardware/audio_policy.h
+++ b/include/hardware/audio_policy.h
@@ -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 */
diff --git a/modules/audio/audio_policy.c b/modules/audio/audio_policy.c
index 409f0a1..3313d48 100644
--- a/modules/audio/audio_policy.c
+++ b/modules/audio/audio_policy.c
@@ -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;