summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorvivek mehta <mvivek@codeaurora.org>2015-09-03 18:25:56 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:25:00 -0600
commit831a6bb5319b51759b0b059c1f29635801102caa (patch)
treea5b55b387692ae1274462b7960607d8340df628a /services/audioflinger/AudioFlinger.cpp
parent562092cd2ad4cadc6555d582945c78465f613a12 (diff)
downloadframeworks_av-831a6bb5319b51759b0b059c1f29635801102caa.zip
frameworks_av-831a6bb5319b51759b0b059c1f29635801102caa.tar.gz
frameworks_av-831a6bb5319b51759b0b059c1f29635801102caa.tar.bz2
audio: add support to enable Direct PCM output
allow effects in case outout is direct pcm Change-Id: I2ad7eacf11642a4ca9f892b61124293d0dc503a9
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 4b73d73..5089bd3 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1840,7 +1840,11 @@ sp<AudioFlinger::PlaybackThread> AudioFlinger::openOutput_l(audio_module_handle_
|| !isValidPcmSinkFormat(config->format)
|| !isValidPcmSinkChannelMask(config->channel_mask)) {
thread = new DirectOutputThread(this, outputStream, *output, devices, mSystemReady);
- ALOGV("openOutput_l() created direct output: ID %d thread %p", *output, thread);
+ ALOGV("openOutput_l() created direct output: ID %d thread %p ", *output, thread);
+ //Check if this is DirectPCM, if so
+ if (flags & AUDIO_OUTPUT_FLAG_DIRECT_PCM) {
+ thread->mIsDirectPcm = true;
+ }
} else {
thread = new MixerThread(this, outputStream, *output, devices, mSystemReady);
ALOGV("openOutput_l() created mixer output: ID %d thread %p", *output, thread);