summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-04-03 12:13:24 -0700
committerEric Laurent <elaurent@google.com>2015-04-08 12:38:08 -0700
commit3bcf8597189c592713675ec58326ecbef0ac4ae9 (patch)
tree5656987c2e9d6fe9c99bb632865318489432fe36 /services/audioflinger/Tracks.cpp
parent322b4d25387a04c9afebe998326d005bbdf17ede (diff)
downloadframeworks_av-3bcf8597189c592713675ec58326ecbef0ac4ae9.zip
frameworks_av-3bcf8597189c592713675ec58326ecbef0ac4ae9.tar.gz
frameworks_av-3bcf8597189c592713675ec58326ecbef0ac4ae9.tar.bz2
audio flinger: improve device to device audio patches
Allow creation of audio patches between input and output devices managed by the same audio HW module. Change-Id: I4b83268a4d5c41f3d5905d7581202cf5193efd32
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index dc9f249..5625661 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -1861,13 +1861,14 @@ void AudioFlinger::PlaybackThread::OutputTrack::clearBufferQueue()
AudioFlinger::PlaybackThread::PatchTrack::PatchTrack(PlaybackThread *playbackThread,
+ audio_stream_type_t streamType,
uint32_t sampleRate,
audio_channel_mask_t channelMask,
audio_format_t format,
size_t frameCount,
void *buffer,
IAudioFlinger::track_flags_t flags)
- : Track(playbackThread, NULL, AUDIO_STREAM_PATCH,
+ : Track(playbackThread, NULL, streamType,
sampleRate, format, channelMask, frameCount,
buffer, 0, 0, getuid(), flags, TYPE_PATCH),
mProxy(new ClientProxy(mCblk, mBuffer, frameCount, mFrameSize, true, true))