diff options
author | Glenn Kasten <gkasten@google.com> | 2014-07-15 15:31:26 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-07-17 12:13:07 -0700 |
commit | ec40d284218466d8f0e832e7eb88e6ea6c479c88 (patch) | |
tree | 46ae774a4f3535d07374bed459b1dcf2bb9d8803 /services/audiopolicy/AudioPolicyClientImplLegacy.cpp | |
parent | 6e6704c06d61bc356e30c164081e5bcffb37920c (diff) | |
download | frameworks_av-ec40d284218466d8f0e832e7eb88e6ea6c479c88.zip frameworks_av-ec40d284218466d8f0e832e7eb88e6ea6c479c88.tar.gz frameworks_av-ec40d284218466d8f0e832e7eb88e6ea6c479c88.tar.bz2 |
Add audio_input_flags_t to IAudioFlinger::openInput
For backward compatibility, until flags are correctly calculated,
we will assume that the request is for a low latency input stream.
Change-Id: I76746834e870df00833dc77cbdaa2edd2ffeec95
Diffstat (limited to 'services/audiopolicy/AudioPolicyClientImplLegacy.cpp')
-rw-r--r-- | services/audiopolicy/AudioPolicyClientImplLegacy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/audiopolicy/AudioPolicyClientImplLegacy.cpp b/services/audiopolicy/AudioPolicyClientImplLegacy.cpp index 53f3e2d..97e12cc 100644 --- a/services/audiopolicy/AudioPolicyClientImplLegacy.cpp +++ b/services/audiopolicy/AudioPolicyClientImplLegacy.cpp @@ -158,7 +158,8 @@ audio_io_handle_t aps_open_input(void *service __unused, return 0; } - return af->openInput((audio_module_handle_t)0, pDevices, pSamplingRate, pFormat, pChannelMask); + return af->openInput((audio_module_handle_t)0, pDevices, pSamplingRate, pFormat, pChannelMask, + AUDIO_INPUT_FLAG_FAST /*FIXME*/); } audio_io_handle_t aps_open_input_on_module(void *service __unused, @@ -174,7 +175,8 @@ audio_io_handle_t aps_open_input_on_module(void *service __unused, return 0; } - return af->openInput(module, pDevices, pSamplingRate, pFormat, pChannelMask); + return af->openInput(module, pDevices, pSamplingRate, pFormat, pChannelMask, + AUDIO_INPUT_FLAG_FAST /*FIXME*/); } int aps_close_input(void *service __unused, audio_io_handle_t input) |