summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioSystem.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-03-08 13:42:42 -0800
committerEric Laurent <elaurent@google.com>2012-03-08 15:57:09 -0800
commit6374252107fd6539397598195ea6defd5870fafb (patch)
treeab13f5d0fd4aeaee695d58d7f8f4723d923754ae /media/libmedia/AudioSystem.cpp
parentf2eda12fb968829ee6f67e9b45e01eb4e2105c09 (diff)
downloadframeworks_av-6374252107fd6539397598195ea6defd5870fafb.zip
frameworks_av-6374252107fd6539397598195ea6defd5870fafb.tar.gz
frameworks_av-6374252107fd6539397598195ea6defd5870fafb.tar.bz2
audio policy: use audio_devices_t when appropriate
Change-Id: I1b3a5879e81c789fb53d356af3d3a1ee2dca955f
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r--media/libmedia/AudioSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index ec4c044..404853c 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -701,10 +701,10 @@ uint32_t AudioSystem::getStrategyForStream(audio_stream_type_t stream)
return aps->getStrategyForStream(stream);
}
-uint32_t AudioSystem::getDevicesForStream(audio_stream_type_t stream)
+audio_devices_t AudioSystem::getDevicesForStream(audio_stream_type_t stream)
{
const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
- if (aps == 0) return 0;
+ if (aps == 0) return (audio_devices_t)0;
return aps->getDevicesForStream(stream);
}