diff options
author | Glenn Kasten <gkasten@google.com> | 2014-05-07 11:17:52 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-05-07 11:28:13 -0700 |
commit | 828f883a43f66f77d776a75d0ea2b87c7c826071 (patch) | |
tree | ab16e918df8275d8460a00b72cdd6ced890350bb /media | |
parent | 8e085cbeccb1138d52a0a423af02e6ab41b4fee4 (diff) | |
download | frameworks_av-828f883a43f66f77d776a75d0ea2b87c7c826071.zip frameworks_av-828f883a43f66f77d776a75d0ea2b87c7c826071.tar.gz frameworks_av-828f883a43f66f77d776a75d0ea2b87c7c826071.tar.bz2 |
Fix a couple of fast capture typo bugs
AudioRecord constructor was not passing flags through to set().
Server-side check was using wrong kind of channel mask.
Change-Id: Ifaa880ec323771e9fd168262be05f3e539f53390
Diffstat (limited to 'media')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index a7bf380..2c8605c 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -79,14 +79,14 @@ AudioRecord::AudioRecord( uint32_t notificationFrames, int sessionId, transfer_type transferType, - audio_input_flags_t flags __unused) + audio_input_flags_t flags) : mStatus(NO_INIT), mSessionId(AUDIO_SESSION_ALLOCATE), mPreviousPriority(ANDROID_PRIORITY_NORMAL), mPreviousSchedulingGroup(SP_DEFAULT), mProxy(NULL) { mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user, - notificationFrames, false /*threadCanCallJava*/, sessionId, transferType); + notificationFrames, false /*threadCanCallJava*/, sessionId, transferType, flags); } AudioRecord::~AudioRecord() |