summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-05-07 11:17:52 -0700
committerGlenn Kasten <gkasten@google.com>2014-05-07 11:28:13 -0700
commit828f883a43f66f77d776a75d0ea2b87c7c826071 (patch)
treeab16e918df8275d8460a00b72cdd6ced890350bb /services/audioflinger
parent8e085cbeccb1138d52a0a423af02e6ab41b4fee4 (diff)
downloadframeworks_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 'services/audioflinger')
-rw-r--r--services/audioflinger/Threads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index be37436..a916b32 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -5102,8 +5102,8 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe
// PCM data
audio_is_linear_pcm(format) &&
// mono or stereo
- ( (channelMask == AUDIO_CHANNEL_OUT_MONO) ||
- (channelMask == AUDIO_CHANNEL_OUT_STEREO) ) &&
+ ( (channelMask == AUDIO_CHANNEL_IN_MONO) ||
+ (channelMask == AUDIO_CHANNEL_IN_STEREO) ) &&
// hardware sample rate
// FIXME actually the native hardware sample rate
(sampleRate == mSampleRate) &&