summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-07-15 15:34:27 -0700
committerGlenn Kasten <gkasten@google.com>2014-07-15 15:53:19 -0700
commitda3bd9f12883f8344d2db00ce2fa47511ed9bef6 (patch)
treea570ee165ca19b3fd27afd543eeca77fa1e8ba52 /services/audioflinger/AudioFlinger.cpp
parentefebe3974d4ad5870f957b77450c26a499fc467e (diff)
downloadframeworks_av-da3bd9f12883f8344d2db00ce2fa47511ed9bef6.zip
frameworks_av-da3bd9f12883f8344d2db00ce2fa47511ed9bef6.tar.gz
frameworks_av-da3bd9f12883f8344d2db00ce2fa47511ed9bef6.tar.bz2
Add audio_input_flags_t to HAL open_input_stream
For backward compatibility, until flags are added to openInput(), we will assume that the request is for a low latency input stream. Change-Id: I5e6f7e574418917ff1b41b0a47199203c69cb40f
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 5fed0c1..5fd7ce8 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1847,8 +1847,9 @@ audio_io_handle_t AudioFlinger::openInput(audio_module_handle_t module,
audio_io_handle_t id = nextUniqueId();
audio_stream_in_t *inStream = NULL;
+ audio_input_flags_t flags = AUDIO_INPUT_FLAG_FAST; // FIXME until added to openInput()
status_t status = inHwHal->open_input_stream(inHwHal, id, *pDevices, &config,
- &inStream);
+ &inStream, flags);
ALOGV("openInput() openInputStream returned input %p, SamplingRate %d, Format %#x, Channels %x, "
"status %d",
inStream,
@@ -1868,7 +1869,7 @@ audio_io_handle_t AudioFlinger::openInput(audio_module_handle_t module,
// FIXME describe the change proposed by HAL (save old values so we can log them here)
ALOGV("openInput() reopening with proposed sampling rate and channel mask");
inStream = NULL;
- status = inHwHal->open_input_stream(inHwHal, id, *pDevices, &config, &inStream);
+ status = inHwHal->open_input_stream(inHwHal, id, *pDevices, &config, &inStream, flags);
// FIXME log this new status; HAL should not propose any further changes
}