summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-07-22 09:15:17 -0700
committerGlenn Kasten <gkasten@google.com>2015-07-22 12:20:43 -0700
commiteb9487e10294a4e73977f460f30eeaff503acd21 (patch)
treefdd7dfd6fd2074f9d0684ed9b11dd851dc469d50 /services/audioflinger/AudioFlinger.cpp
parent8f0547a954b39d5750488be7e060ebe1ebfdf666 (diff)
downloadframeworks_av-eb9487e10294a4e73977f460f30eeaff503acd21.zip
frameworks_av-eb9487e10294a4e73977f460f30eeaff503acd21.tar.gz
frameworks_av-eb9487e10294a4e73977f460f30eeaff503acd21.tar.bz2
Fix capture overruns at non-primary sample rate
and small buffer size. Also: Pull out the magic number "12 ms" to a named constant. Remove obsolete AudioFlinger::mPrimaryOutputSampleRate. Bug: 22662814 Change-Id: I261f75a222c4505a84aad2493d251bd2dea59f68
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 8f1e050..9ec5802 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -181,7 +181,6 @@ AudioFlinger::AudioFlinger()
mIsLowRamDevice(true),
mIsDeviceTypeKnown(false),
mGlobalEffectEnableTime(0),
- mPrimaryOutputSampleRate(0),
mSystemReady(false)
{
getpid_cached = getpid();
@@ -1869,8 +1868,6 @@ status_t AudioFlinger::openOutput(audio_module_handle_t module,
mHardwareStatus = AUDIO_HW_SET_MODE;
mPrimaryHardwareDev->hwDevice()->set_mode(mPrimaryHardwareDev->hwDevice(), mMode);
mHardwareStatus = AUDIO_HW_IDLE;
-
- mPrimaryOutputSampleRate = config->sample_rate;
}
return NO_ERROR;
}